fix: align /pools CTAs to the top (#6253)
* fix: align /pools CTAs to the top * connor comments * Revert "connor comments" This reverts commit e8f25e8fa1ad013bb33084d77d1474883cd1dd9b.
This commit is contained in:
parent
267e7de2b6
commit
eb105b6ec7
@ -19,14 +19,10 @@ const CTASection = styled.section`
|
||||
`};
|
||||
`
|
||||
|
||||
const CTA1 = styled(ExternalLink)`
|
||||
const CTA = styled(ExternalLink)`
|
||||
padding: 16px;
|
||||
border-radius: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid ${({ theme }) => theme.deprecated_bg3};
|
||||
|
||||
@ -45,30 +41,6 @@ const CTA1 = styled(ExternalLink)`
|
||||
}
|
||||
`
|
||||
|
||||
const CTA2 = styled(ExternalLink)`
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: 16px;
|
||||
border-radius: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
border: 1px solid ${({ theme }) => theme.deprecated_bg3};
|
||||
|
||||
* {
|
||||
color: ${({ theme }) => theme.textPrimary};
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
:hover {
|
||||
border: 1px solid ${({ theme }) => theme.deprecated_bg4};
|
||||
text-decoration: none !important;
|
||||
* {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
const HeaderText = styled(ThemedText.DeprecatedLabel)`
|
||||
align-items: center;
|
||||
display: flex;
|
||||
@ -97,7 +69,7 @@ export default function CTACards() {
|
||||
|
||||
return (
|
||||
<CTASection>
|
||||
<CTA1 href="https://support.uniswap.org/hc/en-us/categories/8122334631437-Providing-Liquidity-">
|
||||
<CTA href="https://support.uniswap.org/hc/en-us/categories/8122334631437-Providing-Liquidity-">
|
||||
<ResponsiveColumn>
|
||||
<HeaderText>
|
||||
<Trans>Learn about providing liquidity</Trans> ↗
|
||||
@ -106,8 +78,8 @@ export default function CTACards() {
|
||||
<Trans>Check out our v3 LP walkthrough and migration guides.</Trans>
|
||||
</ThemedText.DeprecatedBody>
|
||||
</ResponsiveColumn>
|
||||
</CTA1>
|
||||
<CTA2 data-testid="cta-infolink" href={infoLink + 'pools'}>
|
||||
</CTA>
|
||||
<CTA data-testid="cta-infolink" href={infoLink + 'pools'}>
|
||||
<ResponsiveColumn>
|
||||
<HeaderText style={{ alignSelf: 'flex-start' }}>
|
||||
<Trans>Top pools</Trans> ↗
|
||||
@ -116,7 +88,7 @@ export default function CTACards() {
|
||||
<Trans>Explore Uniswap Analytics.</Trans>
|
||||
</ThemedText.DeprecatedBody>
|
||||
</ResponsiveColumn>
|
||||
</CTA2>
|
||||
</CTA>
|
||||
</CTASection>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user