Skip to content

Commit

Permalink
finished features
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff committed Feb 7, 2024
1 parent 1e24098 commit 1ed7312
Showing 1 changed file with 89 additions and 2 deletions.
91 changes: 89 additions & 2 deletions src/sections/governance/features.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,47 @@
import { Box, Flex, Heading } from '@chakra-ui/react';
import { Box, Flex, Heading, Text } from '@chakra-ui/react';
import { Fragment } from 'react';

const FEATURES = [
{
title: 'Voting Power',
description:
"By staking SNX tokens, users gain the authority to vote within the Synthetix protocol, directly influencing its future direction. This voting power is crucial in electing representative councils that align with their vision for Synthetix's evolution.",
},
{
title: 'Nomination Process',
description: [
'The nomination is open to all; anyone interested can self-nominate for a position on one of the four councils. Candidates must use the',
' governance app ',
'during the specified election period, providing details about their qualifications and experience.',
],
},
{
title: 'Decision-Making on Proposals',
description: [
'Once elected, Spartan Councillors have the responsibility to deliberate on',
' Synthetix Improvement Proposals ',
'(SIPs) and',
' Synthetix Configuration Change Proposals ',
'(SCCPs). These decisions are made after considering presentations and feedback from the community, gathered through the',
' Synthetix Discord',
'.',
],
},
{
title: 'Initiatives by Non-Governing Bodies ',
description:
"Apart from the governing councils, non-governing DAOs like the Treasury Council, Ambassadors, and Grants Committee undertake various initiatives within each epoch. These initiatives include allocating new grants, fostering partnerships, and managing the treasury's assets.",
},
{
title: 'Ongoing Cycle',
description:
'The Synthetix governance cycle is continuous, with each epoch marking the beginning of a new phase. This cycle includes the nomination of candidates, the electoral process, and the ongoing execution of roles, ensuring the constant evolution and management of the Synthetix Protocol.',
},
];

export default function GovernanceFeatures() {
return (
<Flex position="relative" flexDir="column">
<Flex position="relative" flexDir="column" my={{ base: 10 }}>
<Box
position="absolute"
bgGradient="linear-gradient(44deg, #34EDB3 0%, #00D1FF 100%)"
Expand All @@ -21,6 +60,54 @@ export default function GovernanceFeatures() {
>
Protocol Features
</Heading>
<Flex flexDir="column" zIndex={10} mt={{ base: 10 }}>
<Box display="inline">
{FEATURES.map(feature => {
return (
<Fragment key={feature.title}>
<Heading
fontSize={{ base: '18px' }}
lineHeight={{ base: '28px' }}
mt={{ base: 8 }}
mb={{ base: 4 }}
>
{feature.title}
</Heading>
{Array.isArray(feature.description) ? (
feature.description.map((d, index) => {
console.log(index % 2, index);
if (index % 2 === 1)
return (
<Text
fontSize={{ base: '16px' }}
color="cyan.500"
key={d.concat(index.toString())}
display="inline"
>
{d}
</Text>
);
return (
<Text
fontSize={{ base: '16px' }}
color="gray.500"
key={d.concat(index.toString())}
display="inline"
>
{d}
</Text>
);
})
) : (
<Text fontSize={{ base: '16px' }} color="gray.500">
{feature.description}
</Text>
)}
</Fragment>
);
})}
</Box>
</Flex>
</Flex>
);
}

0 comments on commit 1ed7312

Please sign in to comment.