Skip to content

Commit

Permalink
wip extension rebates
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Oct 24, 2024
1 parent 30410fa commit 32184b1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
6 changes: 5 additions & 1 deletion public/locales/en/migrate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"title": {
"landing": "ENSv2: The Next Generation of ENS",
"migration": "Upgrade to ENSv2 Seamlessly"
"migration": "Upgrade to ENSv2 Seamlessly",
"extension": {
"part1": "Extend names for",
"part2": "Governance Power"
}
},
"caption": {
"ensv2": "Approve your ENS names for ENSv2 now and enjoy automatic migration, paid for by ENS DAO.",
Expand Down
33 changes: 27 additions & 6 deletions src/pages/migrate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ const Heading = styled.h1(
color: ${theme.colors.textPrimary};
text-align: center;
line-height: 104%;
& > span {
font-weight: inherit;
font-size: inherit;
line-height: inherit;
background: linear-gradient(90deg, #199c75 2.87%, #9b9ba7 97.95%);
background-clip: text;
-webkit-text-fill-color: transparent;
}
@media (min-width: 360px) {
font-size: 60px;
}
Expand Down Expand Up @@ -321,9 +329,19 @@ export default function Page() {
<Caption fontVariant="bodyLarge">{t('caption.migration')}</Caption>
</>
))
.otherwise(() => (
<div>bloop</div>
))}
.with('extension', () => (
<>
<Head>
<title>
{t('title.extension.part1')} {t('title.extension.part2')}
</title>
</Head>
<Heading>
{t('title.extension.part1')} <span>{t('title.extension.part2')}</span>
</Heading>
</>
))
.exhaustive()}
<ButtonContainer>
{match(currentTab)
.with('ensv2', () => (
Expand Down Expand Up @@ -385,9 +403,12 @@ export default function Page() {
{isConnected ? t('cta.begin') : t('cta.unconnected')}
</Button>
))
.otherwise(() => (
<div>bloop</div>
))}
.with('extension', () => (
<Button colorStyle="greenPrimary">
{isConnected ? t('cta.begin') : t('cta.unconnected')}
</Button>
))
.exhaustive()}

<Button colorStyle="greenSecondary">{t('cta.learn-more')}</Button>
</ButtonContainer>
Expand Down

0 comments on commit 32184b1

Please sign in to comment.