Commit 0622ff30 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: remove learn more link on landing page (#5683)

* fix: remove learn more link on landing page

* lowercase
parent 982c99b0
...@@ -11,7 +11,7 @@ import styled from 'styled-components/macro' ...@@ -11,7 +11,7 @@ import styled from 'styled-components/macro'
import { BREAKPOINTS } from 'theme' import { BREAKPOINTS } from 'theme'
import { Z_INDEX } from 'theme/zIndex' import { Z_INDEX } from 'theme/zIndex'
const PageWrapper = styled.div` const PageContainer = styled.div`
width: 100%; width: 100%;
position: relative; position: relative;
display: flex; display: flex;
...@@ -48,7 +48,7 @@ const Glow = styled.div` ...@@ -48,7 +48,7 @@ const Glow = styled.div`
width: 100%; width: 100%;
` `
const ContentWrapper = styled.div<{ isDarkMode: boolean }>` const ContentContainer = styled.div<{ isDarkMode: boolean }>`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
...@@ -131,17 +131,6 @@ const ButtonCTA = styled(LandingButton)` ...@@ -131,17 +131,6 @@ const ButtonCTA = styled(LandingButton)`
} }
` `
const ButtonCTASecondary = styled(LandingButton)`
background: none;
border: ${({ theme }) => `1px solid ${theme.textPrimary}`};
color: ${({ theme }) => theme.textPrimary};
transition: ${({ theme }) => `all ${theme.transition.duration.medium} ${theme.transition.timing.ease}`};
&:hover {
border: 1px solid rgba(255, 0, 199, 1);
}
`
const ButtonCTAText = styled.p` const ButtonCTAText = styled.p`
margin: 0px; margin: 0px;
font-size: 16px; font-size: 16px;
...@@ -153,21 +142,9 @@ const ButtonCTAText = styled.p` ...@@ -153,21 +142,9 @@ const ButtonCTAText = styled.p`
} }
` `
const ActionsWrapper = styled.span` const ActionsContainer = styled.span`
display: flex; max-width: 300px;
justify-content: center;
gap: 12px;
width: 100%; width: 100%;
max-width: 600px;
& > * {
max-width: 288px;
flex: 1;
}
@media screen and (min-width: ${BREAKPOINTS.sm}px) {
gap: 24px;
}
` `
const LandingSwap = styled(Swap)` const LandingSwap = styled(Swap)`
...@@ -211,7 +188,7 @@ export default function Landing() { ...@@ -211,7 +188,7 @@ export default function Landing() {
return ( return (
<Trace page={PageName.LANDING_PAGE} shouldLogImpression> <Trace page={PageName.LANDING_PAGE} shouldLogImpression>
<PageWrapper> <PageContainer>
<TraceEvent <TraceEvent
events={[BrowserEvent.onClick]} events={[BrowserEvent.onClick]}
name={EventName.ELEMENT_CLICKED} name={EventName.ELEMENT_CLICKED}
...@@ -223,33 +200,24 @@ export default function Landing() { ...@@ -223,33 +200,24 @@ export default function Landing() {
</TraceEvent> </TraceEvent>
<Glow /> <Glow />
<Gradient isDarkMode={isDarkMode} /> <Gradient isDarkMode={isDarkMode} />
<ContentWrapper isDarkMode={isDarkMode}> <ContentContainer isDarkMode={isDarkMode}>
<TitleText isDarkMode={isDarkMode}>Trade crypto & NFTs with confidence</TitleText> <TitleText isDarkMode={isDarkMode}>Trade crypto & NFTs with confidence</TitleText>
<SubTextContainer> <SubTextContainer>
<SubText>Buy, sell, and explore tokens and NFTs</SubText> <SubText>Buy, sell, and explore tokens and NFTs</SubText>
</SubTextContainer> </SubTextContainer>
<ActionsWrapper> <ActionsContainer>
<TraceEvent <TraceEvent
events={[BrowserEvent.onClick]} events={[BrowserEvent.onClick]}
name={EventName.ELEMENT_CLICKED} name={EventName.ELEMENT_CLICKED}
element={ElementName.CONTINUE_BUTTON} element={ElementName.CONTINUE_BUTTON}
> >
<ButtonCTA as={Link} to="/swap"> <ButtonCTA as={Link} to="/swap">
<ButtonCTAText>Continue</ButtonCTAText> <ButtonCTAText>Get started</ButtonCTAText>
</ButtonCTA> </ButtonCTA>
</TraceEvent> </TraceEvent>
<TraceEvent </ActionsContainer>
events={[BrowserEvent.onClick]} </ContentContainer>
name={EventName.ELEMENT_CLICKED} </PageContainer>
element={ElementName.LEARN_MORE_LINK}
>
<ButtonCTASecondary as={Link} to="/about">
<ButtonCTAText>Learn more</ButtonCTAText>
</ButtonCTASecondary>
</TraceEvent>
</ActionsWrapper>
</ContentWrapper>
</PageWrapper>
</Trace> </Trace>
) )
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment