Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 9, 2024
1 parent a3ef737 commit c6d94c2
Showing 1 changed file with 37 additions and 20 deletions.
57 changes: 37 additions & 20 deletions src/pages/ens-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ import {
Button,
Card,
GasPumpSVG,
InfoCircleSVG,
// InfoCircleSVG,
KeySVG,
QuestionBubbleSVG,
QuestionCircleSVG,
RightArrowSVG,
SpannerAltSVG,
// QuestionBubbleSVG,
// QuestionCircleSVG,
// RightArrowSVG,
// SpannerAltSVG,
Typography,
WalletSVG,
} from '@ensdomains/thorin'

import { Carousel } from '@app/components/pages/migrate/Carousel'

import DAOSVG from '../assets/DAO.svg'
import SocialX from '../assets/social/SocialX.svg'
// import DAOSVG from '../assets/DAO.svg'
// import SocialX from '../assets/social/SocialX.svg'

const Title = styled.h1`
font-weight: 830;
Expand Down Expand Up @@ -55,7 +55,7 @@ const Main = styled.main(
`,
)

const PartnershipAnnouncement = styled.div(
/* const PartnershipAnnouncement = styled.div(
({ theme }) => css`
width: ${theme.space.full};
padding: ${theme.space['4']};
Expand All @@ -79,9 +79,9 @@ const PartnershipAnnouncement = styled.div(
border-radius: ${theme.radii['3xLarge']};
}
`,
)
) */

const Footer = styled.div(
/* const Footer = styled.div(
({ theme }) => css`
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -116,7 +116,7 @@ const Footer = styled.div(
}
}
`,
)
) */

const AnnouncementBanner = styled.div(
({ theme }) => css`
Expand All @@ -133,7 +133,7 @@ const AnnouncementBanner = styled.div(
`,
)

const TopNav = styled.div(
/* const TopNav = styled.div(
({ theme }) => css`
display: flex;
flex-direction: column;
Expand All @@ -144,7 +144,7 @@ const TopNav = styled.div(
left: 0;
z-index: 1;
`,
)
) */

const CenteredCard = styled(Card)`
display: flex;
Expand Down Expand Up @@ -182,9 +182,17 @@ const CardHeader = styled.h3(
`,
)

const AnnouncementSlide = ({ title, text }: { title: string; text: string }) => (
const AnnouncementSlide = ({
title,
text,
href = '#',
}: {
title: string
text: string
href?: string
}) => (
<AnnouncementBanner>
<Banner as="a" alert="info" href="#" title={title}>
<Banner as="a" alert="info" target="_blank" rel="noopener noreferrer" href={href} title={title}>
{text}
</Banner>
</AnnouncementBanner>
Expand Down Expand Up @@ -213,14 +221,14 @@ export default function ENSv2() {
const { t } = useTranslation('ensv2')
return (
<Main>
<TopNav>
{/* <TopNav>
<PartnershipAnnouncement>
<span>{t('partnership.text')}</span>
<a>
{t('partnership.watch')} <RightArrowSVG />
</a>
</PartnershipAnnouncement>
</TopNav>
</TopNav> */}
<Header>
<Title>{t('title')}</Title>
<Typography fontVariant="body">{t('caption')}</Typography>
Expand Down Expand Up @@ -250,7 +258,14 @@ export default function ENSv2() {
{t('accessible.title')}
</Typography>
<Typography fontVariant="body">{t('accessible.caption')}</Typography>
<Button width="max" colorStyle="greenSecondary">
<Button
as="a"
href="https://roadmap.ens.domains/l2-roadmap"
width="max"
colorStyle="greenSecondary"
target="_blank"
rel="noopener noreferrer"
>
{t('accessible.link')}
</Button>
</CardWithEmoji>
Expand Down Expand Up @@ -288,14 +303,16 @@ export default function ENSv2() {
<AnnouncementSlide
title={t('announcement.ensv2.title')}
text={t('announcement.ensv2.caption')}
href="https://blog.ens.domains/post/ensv2-update"
/>
<AnnouncementSlide
title={t('announcement.nextgen.title')}
text={t('announcement.nextgen.caption')}
href="https://blog.ens.domains/post/ensv2"
/>
</Carousel>
</SlideshowContainer>
<Footer as="footer">
{/* <Footer as="footer">
<Typography asProp="h3" fontVariant="headingThree">
{t('footer.title')}
</Typography>
Expand Down Expand Up @@ -323,7 +340,7 @@ export default function ENSv2() {
</a>
</Card>
</div>
</Footer>
</Footer> */}
</Main>
)
}

0 comments on commit c6d94c2

Please sign in to comment.