-
Notifications
You must be signed in to change notification settings - Fork 120
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
1 parent
3a86d20
commit 114a262
Showing
4 changed files
with
54 additions
and
1 deletion.
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
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,45 @@ | ||
import Link from 'next/link' | ||
import { useTranslation } from 'react-i18next' | ||
import styled, { css } from 'styled-components' | ||
|
||
import { Button, Typography } from '@ensdomains/thorin' | ||
|
||
const Container = styled(Link)( | ||
({ theme }) => css` | ||
display: flex; | ||
flex-direction: row; | ||
width: ${theme.space.full}; | ||
max-width: 466px; | ||
padding: ${theme.space['4']}; | ||
align-items: center; | ||
gap: ${theme.space['4']}; | ||
align-self: center; | ||
border-radius: ${theme.radii['2xLarge']}; | ||
background-color: ${theme.colors.backgroundPrimary}; | ||
`, | ||
) | ||
|
||
const Text = styled.span( | ||
({ theme }) => css` | ||
width: ${theme.space.full}; | ||
`, | ||
) | ||
|
||
export const AnnouncementBanner = () => { | ||
const { t } = useTranslation('ensv2') | ||
|
||
return ( | ||
<Container href="/ens-v2"> | ||
<img src="/migrate/confetti.png" alt="" height={33} width={33} /> | ||
<Text> | ||
<Typography fontVariant="largeBold">{t('banner.title')}</Typography> | ||
<Typography fontVariant="small" color="grey"> | ||
{t('banner.caption')} | ||
</Typography> | ||
</Text> | ||
<Button colorStyle="greenPrimary" width="max"> | ||
{t('banner.cta')} | ||
</Button> | ||
</Container> | ||
) | ||
} |
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