Skip to content

Commit

Permalink
Remove carousel for now
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonmanRolls committed Nov 10, 2024
1 parent 1f43589 commit e2ae3b9
Showing 1 changed file with 50 additions and 8 deletions.
58 changes: 50 additions & 8 deletions src/pages/ens-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
GasPumpSVG,
// InfoCircleSVG,
KeySVG,
mq,
// QuestionBubbleSVG,
// QuestionCircleSVG,
// RightArrowSVG,
Expand All @@ -17,8 +18,6 @@ import {
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'

Expand Down Expand Up @@ -120,7 +119,8 @@ const Main = styled.main(

const AnnouncementBanner = styled.div(
({ theme }) => css`
height: ${theme.space.full};
width: 312px;
height: 182px;
text-align: center;
& > a {
height: ${theme.space.full};
Expand Down Expand Up @@ -182,7 +182,23 @@ const CardHeader = styled.h3(
`,
)

const AnnouncementSlide = ({
// const AnnouncementSlide = ({
// title,
// text,
// href = '#',
// }: {
// title: string
// text: string
// href?: string
// }) => (
// <AnnouncementBanner>
// <Banner as="a" alert="info" target="_blank" rel="noopener noreferrer" href={href} title={title}>
// {text}
// </Banner>
// </AnnouncementBanner>
// )

const AnnouncementSlideTemp = ({
title,
text,
href = '#',
Expand All @@ -198,6 +214,20 @@ const AnnouncementSlide = ({
</AnnouncementBanner>
)

const AnnouncementContainer = styled.div(
({ theme }) => css`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: ${theme.space['4']};
${mq.sm.min(css`
flex-direction: row;
`)}
`,
)

const SlideshowContainer = styled.div(
({ theme }) => css`
display: flex;
Expand Down Expand Up @@ -295,11 +325,11 @@ export default function ENSv2() {
<Typography asProp="h3" fontVariant="headingThree">
{t('announcement.title')}
</Typography>
<Carousel>
{/* <AnnouncementSlide
{/* <Carousel>
<AnnouncementSlide
title={t('announcement.l2.title')}
text={t('announcement.l2.caption')}
/> */}
/>
<AnnouncementSlide
title={t('announcement.ensv2.title')}
text={t('announcement.ensv2.caption')}
Expand All @@ -310,7 +340,19 @@ export default function ENSv2() {
text={t('announcement.nextgen.caption')}
href="https://blog.ens.domains/post/ensv2"
/>
</Carousel>
</Carousel> */}
<AnnouncementContainer>
<AnnouncementSlideTemp
title={t('announcement.ensv2.title')}
text={t('announcement.ensv2.caption')}
href="https://blog.ens.domains/post/ensv2-update"
/>
<AnnouncementSlideTemp
title={t('announcement.nextgen.title')}
text={t('announcement.nextgen.caption')}
href="https://blog.ens.domains/post/ensv2"
/>
</AnnouncementContainer>
</SlideshowContainer>
{/* <Footer as="footer">
<Typography asProp="h3" fontVariant="headingThree">
Expand Down

0 comments on commit e2ae3b9

Please sign in to comment.