Adds sa bit of polish to landing page

This commit is contained in:
Ezekiel Aquino
2018-12-04 16:41:01 +01:00
parent 3c7dca37f5
commit 871ec6cfbc
3 changed files with 55 additions and 13 deletions

View File

@@ -61,6 +61,11 @@ const GlobalStyles = withTheme(createGlobalStyle<GlobalStyle> `
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
svg + p,
img + p {
padding-top: 30px;
}
`); `);
export { GlobalStyles }; export { GlobalStyles };

View File

@@ -9,6 +9,7 @@ interface PaddingSizes {
const PADDING_SIZES: PaddingSizes = { const PADDING_SIZES: PaddingSizes = {
'default': '30px', 'default': '30px',
'large': '60px', 'large': '60px',
'small': '15px',
}; };
export const getCSSPadding = (value: number | Array<string | number>): string => { export const getCSSPadding = (value: number | Array<string | number>): string => {

View File

@@ -119,27 +119,45 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
873,435 873,435
</Heading> </Heading>
<Paragraph isMuted={0.4} isCentered={true} isNoMargin={true}> <Paragraph
isMuted={0.4}
isCentered={true}
isNoMargin={true}
>
Number of transactions Number of transactions
</Paragraph> </Paragraph>
</Column> </Column>
<Column colWidth="1/3" isNoPadding={true}> <Column colWidth="1/3" isNoPadding={true}>
<Heading size="medium" isCentered={true}> <Heading
size="medium"
isCentered={true}
>
$203M $203M
</Heading> </Heading>
<Paragraph isMuted={0.4} isCentered={true} isNoMargin={true}> <Paragraph
isMuted={0.4}
isCentered={true}
isNoMargin={true}
>
Total volume Total volume
</Paragraph> </Paragraph>
</Column> </Column>
<Column colWidth="1/3" isNoPadding={true}> <Column colWidth="1/3" isNoPadding={true}>
<Heading size="medium" isCentered={true}> <Heading
size="medium"
isCentered={true}
>
227,372 227,372
</Heading> </Heading>
<Paragraph isMuted={0.4} isCentered={true} isNoMargin={true}> <Paragraph
isMuted={0.4}
isCentered={true}
isNoMargin={true}
>
Number of relayers Number of relayers
</Paragraph> </Paragraph>
</Column> </Column>
@@ -151,9 +169,13 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
<Heading size="small">You're in good company</Heading> <Heading size="small">You're in good company</Heading>
</WrapCentered> </WrapCentered>
<WrapGrid width="narrow"> <WrapGrid width="narrow" isWrapped={true}>
{_.map(projects, (item: ProjectLogo, index) => ( {_.map(projects, (item: ProjectLogo, index) => (
<Project key={index} name={item.name} imageUrl={item.imageUrl} /> <Project
key={index}
name={item.name}
imageUrl={item.imageUrl}
/>
))} ))}
</WrapGrid> </WrapGrid>
</Section> </Section>
@@ -167,7 +189,14 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
> >
<WrapCentered> <WrapCentered>
<ReadyToBuildIcon width="150" /> <ReadyToBuildIcon width="150" />
Ready to build on 0x?
<Paragraph>
Ready to build on 0x?
</Paragraph>
<Button isTransparent={true}>
Get Started
</Button>
</WrapCentered> </WrapCentered>
</Column> </Column>
@@ -178,7 +207,14 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
> >
<WrapCentered> <WrapCentered>
<SupportIcon width="150" /> <SupportIcon width="150" />
Want help from the 0x team?
<Paragraph>
Want help from the 0x team?
</Paragraph>
<Button isTransparent={true}>
Get in Touch
</Button>
</WrapCentered> </WrapCentered>
</Column> </Column>
</Wrap> </Wrap>
@@ -193,10 +229,10 @@ const Project = ({ name, imageUrl }: ProjectLogo) => (
); );
const StyledProject = styled.div` const StyledProject = styled.div`
width: 80px; width: 90px;
height: 116px; height: 90px;
border: 1px solid blue; flex-shrink: 0;
margin: 30px 60px; margin: 30px;
img { img {
object-fit: contain; object-fit: contain;