-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
272 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
import React, { useEffect } from 'react'; | ||
import { hot } from 'react-hot-loader/root'; | ||
import { Link } from 'react-navi'; | ||
import PageContentLayout from 'layouts/PageContentLayout'; | ||
import { Routes } from 'utils/constants'; | ||
import { | ||
buildQuestionsFromLangObj, | ||
ConnectHero, | ||
Features, | ||
FixedHeaderTrigger, | ||
FullWidth, | ||
Questions, | ||
QuotesBox, | ||
ThickUnderline, | ||
Parallaxed, | ||
FadeIn, | ||
FilledButton | ||
} from '../components/Marketing'; | ||
import { Box, Text } from '@makerdao/ui-components-core'; | ||
import useLanguage from 'hooks/useLanguage'; | ||
import styled from 'styled-components'; | ||
import { ReactComponent as FrontParallelogramsBase } from 'images/landing/trade/front-parallelograms.svg'; | ||
import { ReactComponent as BackParallelogramsBase } from 'images/landing/trade/back-parallelograms.svg'; | ||
import { ReactComponent as QuotesImg } from 'images/landing/trade/quotes.svg'; | ||
import { ReactComponent as Feat1 } from 'images/landing/trade/feature-1.svg'; | ||
import { ReactComponent as Feat2 } from 'images/landing/trade/feature-2.svg'; | ||
import { ReactComponent as Feat3 } from 'images/landing/trade/feature-3.svg'; | ||
import { ReactComponent as Feat4 } from 'images/landing/trade/feature-4.svg'; | ||
|
||
const HeroBackground = (() => { | ||
const BackParallelograms = styled(BackParallelogramsBase)` | ||
position: absolute; | ||
left: -184px; | ||
top: -196px; | ||
`; | ||
|
||
const FrontParallelograms = styled(FrontParallelogramsBase)` | ||
position: absolute; | ||
left: -174px; | ||
top: -108px; | ||
`; | ||
|
||
return () => ( | ||
<FullWidth zIndex="-1" height="670px" style={{ position: 'absolute' }}> | ||
<Box maxWidth="866px" m="0 auto"> | ||
<BackParallelograms /> | ||
<Parallaxed style={{ zIndex: 10 }}> | ||
<FrontParallelograms /> | ||
</Parallaxed> | ||
</Box> | ||
</FullWidth> | ||
); | ||
})(); | ||
|
||
const StyledQuotesBox = styled(QuotesBox)` | ||
background: linear-gradient(125.71deg, #e7fcfa 0%, #e7fce9 100%); | ||
:after { | ||
content: ''; | ||
display: block; | ||
background: #bffff8; | ||
height: 100%; | ||
width: 100%; | ||
position: absolute; | ||
top: 40px; | ||
left: 40px; | ||
z-index: -1; | ||
} | ||
`; | ||
|
||
function TradeLanding() { | ||
const { lang } = useLanguage(); | ||
|
||
return ( | ||
<PageContentLayout enableNotifications={false}> | ||
<FixedHeaderTrigger button={0}> | ||
<ConnectHero> | ||
<HeroBackground /> | ||
<ThickUnderline background="linear-gradient(176.45deg, #ECFFDA 18.9%, #AFFFFA 100%)"> | ||
<Text.h4>{lang.trade_landing.page_name}</Text.h4> | ||
</ThickUnderline> | ||
<Text.h1 mt="16px" mb="18px" maxWidth="700px"> | ||
{lang.trade_landing.headline} | ||
</Text.h1> | ||
<Box height="150px" maxWidth="690px"> | ||
<Text>{lang.trade_landing.subheadline}</Text> | ||
</Box> | ||
<Text fontSize="19px">{lang.trade_landing.connect_to_start}</Text> | ||
<Link href="https://oasis.app/trade/market/"> | ||
<FilledButton width="248px" mt="17px" mb="8px"> | ||
{lang.trade_landing.cta_button} | ||
</FilledButton> | ||
</Link> | ||
</ConnectHero> | ||
</FixedHeaderTrigger> | ||
<Box height="200px" /> | ||
<FadeIn triggerOffset={100} moveDistance="120px"> | ||
<StyledQuotesBox | ||
title={lang.trade_landing.quotes_block.title} | ||
body={<Box mb="95px">{lang.trade_landing.quotes_block.body}</Box>} | ||
quote={lang.trade_landing.quotes_block.quote1} | ||
author={lang.trade_landing.quotes_block.author1} | ||
url="https://chat.makerdao.com/group/team-marketing-internal" | ||
quotesImg={<QuotesImg />} | ||
/> | ||
</FadeIn> | ||
<Features | ||
mt="200px" | ||
features={[<Feat1 />, <Feat2 />, <Feat3 />, <Feat4 />].map( | ||
(img, index) => ({ | ||
img: img, | ||
title: lang.trade_landing[`feature${index + 1}_heading`], | ||
content: lang.trade_landing[`feature${index + 1}_content`] | ||
}) | ||
)} | ||
/> | ||
<Box mt="153px" mb="126px"> | ||
<Text.h2>{lang.landing_page.questions_title}</Text.h2> | ||
<Questions | ||
questions={buildQuestionsFromLangObj(lang.landing_page, lang)} | ||
/> | ||
</Box> | ||
</PageContentLayout> | ||
); | ||
} | ||
|
||
export default hot(TradeLanding); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters