diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-12 20:24:13 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-12 20:32:42 +0800 |
commit | b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7 (patch) | |
tree | 2eeabf74cfc10ede91b7637ebd62271129de7ed4 /packages/website/ts/@next/pages | |
parent | c5db8f25d31d45ac3ff9fff78f7e1fde348d81d4 (diff) | |
download | dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.tar dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.tar.gz dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.tar.bz2 dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.tar.lz dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.tar.xz dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.tar.zst dexon-0x-contracts-b1f4bb722d9a6aaacdd3fdfe1bf7049efe043aa7.zip |
More layout changes
Diffstat (limited to 'packages/website/ts/@next/pages')
-rw-r--r-- | packages/website/ts/@next/pages/landing.tsx | 7 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/why.tsx | 108 |
2 files changed, 60 insertions, 55 deletions
diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx index 66c4138a1..fab5e62b6 100644 --- a/packages/website/ts/@next/pages/landing.tsx +++ b/packages/website/ts/@next/pages/landing.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import styled from 'styled-components'; import {SiteWrap} from 'ts/@next/components/siteWrap'; import {SectionLandingAbout} from 'ts/@next/components/sections/landing/about'; @@ -6,6 +7,12 @@ import {SectionLandingClients} from 'ts/@next/components/sections/landing/client import {SectionLandingCta} from 'ts/@next/components/sections/landing/cta'; import {SectionLandingHero} from 'ts/@next/components/sections/landing/hero'; +import {Button} from 'ts/@next/components/button'; +import {Hero} from 'ts/@next/components/hero'; +import {LandingAnimation} from 'ts/@next/components/heroImage'; + +import LogoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg'; + interface Props { theme: { bgColor: string; diff --git a/packages/website/ts/@next/pages/why.tsx b/packages/website/ts/@next/pages/why.tsx index fc24fd665..d0d909949 100644 --- a/packages/website/ts/@next/pages/why.tsx +++ b/packages/website/ts/@next/pages/why.tsx @@ -10,12 +10,12 @@ import {Hero} from 'ts/@next/components/hero'; import { Banner } from 'ts/@next/components/banner'; import { Link } from 'ts/@next/components/button'; import { Icon } from 'ts/@next/components/icon'; -import { BREAKPOINTS, Column, Section, Wrap, WrapCentered, WrapSticky } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Slide, Slider } from 'ts/@next/components/slider/slider'; import { Heading, Paragraph } from 'ts/@next/components/text'; import {Definition} from 'ts/@next/components/definition'; +import {Column, Section, WrapSticky} from 'ts/@next/components/newLayout'; const offersData = [ { @@ -95,8 +95,11 @@ export class NextWhy extends React.PureComponent { } /> - <Section bgColor={colors.backgroundDark} isPadLarge={true}> - <Wrap> + <Section + bgColor="dark" + isFlex={true} + maxWidth="1170px" + > <Definition title="Support for all Ethereum Standards" description="0x Protocol facilitates the decentralized exchange of a growing number of Ethereum-based tokens, including all ERC-20 and ERC-721 assets. Additional ERC standards can be added to the protocol..." @@ -117,12 +120,10 @@ export class NextWhy extends React.PureComponent { iconSize="large" isInline={true} /> - </Wrap> - </Section> + </Section> - <Section> - <Wrap> - <Column colWidth="1/3"> + <Section maxWidth="1170px" isFlex={true}> + <Column> <NavStickyWrap offsetTop="130px"> <ChapterLink offset="60" href="#benefits">Benefits</ChapterLink> <ChapterLink offset="60" href="#cases">Use Cases</ChapterLink> @@ -130,52 +131,49 @@ export class NextWhy extends React.PureComponent { </NavStickyWrap> </Column> - <Column colWidth="2/3"> - <SectionWrap id="benefits"> - <Heading size="medium">What 0x offers</Heading> - - {_.map(offersData, (item, index) => ( - <Definition - title={item.title} - description={item.description} - isWithMargin={true} - /> - ))} - </SectionWrap> - - <SectionWrap id="cases"> - <Heading size="medium">Use Cases</Heading> - <Slider> - {_.map(useCaseSlides, (item, index) => ( - <Slide - key={`useCaseSlide-${index}`} - heading={item.title} - text={item.description} - icon={item.icon} + <Column width="55%" maxWidth="826px"> + <Column width="100%" maxWidth="560px"> + <SectionWrap id="benefits"> + <Heading size="medium">What 0x offers</Heading> + + {_.map(offersData, (item, index) => ( + <Definition + key={`offers-${index}`} + title={item.title} + description={item.description} + isWithMargin={true} /> ))} - </Slider> - </SectionWrap> - - <SectionWrap id="functionality"> - <Heading size="medium">Exchange Functionality</Heading> - - {_.map(functionalityData, (item, index) => ( - <ChapterItemWrap key={`functionality-${index}`}> - <Icon name={item.icon} size="medium" margin={[0, 0, 22, 0]} /> - - <Heading marginBottom="15px"> - {item.title} - </Heading> - - <Paragraph isMuted={true} isNoMargin={true}> - {item.description} - </Paragraph> - </ChapterItemWrap> - ))} - </SectionWrap> - </Column> - </Wrap> + </SectionWrap> + + <SectionWrap id="cases"> + <Heading size="medium">Use Cases</Heading> + <Slider> + {_.map(useCaseSlides, (item, index) => ( + <Slide + key={`useCaseSlide-${index}`} + heading={item.title} + text={item.description} + icon={item.icon} + /> + ))} + </Slider> + </SectionWrap> + + <SectionWrap id="functionality"> + <Heading size="medium">Exchange Functionality</Heading> + + {_.map(functionalityData, (item, index) => ( + <Definition + key={`functionality-${index}`} + title={item.title} + description={item.description} + isWithMargin={true} + /> + ))} + </SectionWrap> + </Column> + </Column> </Section> <Banner @@ -206,13 +204,13 @@ const SectionWrap = styled.div` background-color: #3d3d3d; } - @media (min-width: ${BREAKPOINTS.mobile}) { + @media (min-width: 768px) { & + &:before { width: 100vw; } } - @media (max-width: ${BREAKPOINTS.mobile}) { + @media (max-width: 768px) { text-align: left; & + &:before { @@ -222,7 +220,7 @@ const SectionWrap = styled.div` `; const NavStickyWrap = styled(WrapSticky)` - @media (max-width: ${BREAKPOINTS.mobile}) { + @media (max-width: 768px) { display: none; } `; |