Skip to content

Commit

Permalink
added ecosystem
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff committed Feb 6, 2024
1 parent fd38292 commit 761cc1f
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 42 deletions.
2 changes: 2 additions & 0 deletions pages/governance.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Head from 'next/head';
import { PageLayout } from 'src/components';
import GovernanceCallout from 'src/sections/governance/callout';
import GovernanceEcosystem from 'src/sections/governance/ecosystem';
import GovernanceHeader from 'src/sections/governance/header';

export default function Governance() {
Expand All @@ -12,6 +13,7 @@ export default function Governance() {
<PageLayout>
<GovernanceHeader />
<GovernanceCallout />
<GovernanceEcosystem />
</PageLayout>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Home = ({
<Head>
<title>Synthetix</title>
</Head>
<PageLayout useChakra>
<PageLayout>
<Hero />
{totalStakedValue && tradingVolume && swapsVolumeTotal && (
<Volume
Expand Down
2 changes: 1 addition & 1 deletion pages/perps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function DecentralizedPerpetualFutures() {
<Head>
<title>Synthetix - Decentralized Perps</title>
</Head>
<PageLayout useChakra>
<PageLayout>
<FuturesMain />
<Callout />
<USP />
Expand Down
62 changes: 22 additions & 40 deletions src/components/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,30 @@ import { Divider, Flex, FlexProps } from '@chakra-ui/react';
import { PropsWithChildren } from 'react';
import { Footer, Header } from '..';

interface PageLayoutProps extends PropsWithChildren, FlexProps {
useChakra?: boolean;
}

export function PageLayout({ children, useChakra, ...props }: PageLayoutProps) {
if (useChakra) {
return (
<Flex minW="100vw" bg="navy.900" justifyContent="center">
<Flex
direction="column"
alignItems="center"
w="100%"
maxW={{
base: '100vw',
md: '48rem',
lg: '62rem',
xl: '80rem',
'2xl': '96rem',
}}
px={{ base: '16px', lg: '24px' }}
{...props}
>
<Header />
{children}
<Divider minW="100vw" borderColor="gray.900" />
<Footer />
</Flex>
</Flex>
);
}
interface PageLayoutProps extends PropsWithChildren, FlexProps {}

export function PageLayout({ children, ...props }: PageLayoutProps) {
return (
<Flex
direction="column"
alignItems="center"
bg="navy.900"
px="2"
{...props}
>
<Header />
{children}
<Footer />
<Flex minW="100vw" bg="navy.900" justifyContent="center">
<Flex
direction="column"
alignItems="center"
w="100%"
maxW={{
base: '100vw',
md: '48rem',
lg: '62rem',
xl: '80rem',
'2xl': '96rem',
}}
px={{ base: '16px', lg: '24px' }}
{...props}
>
<Header />
{children}
<Divider minW="100vw" borderColor="gray.900" />
<Footer />
</Flex>
</Flex>
);
}
41 changes: 41 additions & 0 deletions src/sections/governance/ecosystem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { Box, Flex, Heading, Text } from '@chakra-ui/react';

export default function GovernanceEcosystem() {
return (
<Flex flexDir="column" w="100%" my={{ base: 10 }}>
<Box
position="absolute"
top="0px"
right="0px"
bottom="0px"
left="0px"
bgGradient="radial-gradient(to-tr, pink.500, cyan.500)"
></Box>
<Text
color="gray.500"
fontSize={{ base: '16px' }}
mb={{ base: 1 }}
zIndex={10}
>
SYNTHETIX ECOSYSTEM
</Text>
<Heading
fontSize={{ base: '48px' }}
lineHeight={{ base: '120%' }}
mb={{ base: 1 }}
zIndex={10}
>
Governing Councils
</Heading>
<Text
color="gray.500"
fontSize={{ base: '14px' }}
mb={{ base: 4 }}
zIndex={10}
>
The Synthetix Protocol is governed by four councils, each responsible
for a core aspect of a DAO.
</Text>
</Flex>
);
}

0 comments on commit 761cc1f

Please sign in to comment.