diff --git a/src/pages/eth.tsx b/src/pages/eth.tsx index c4f162a44cd..7a132a61422 100644 --- a/src/pages/eth.tsx +++ b/src/pages/eth.tsx @@ -1,21 +1,11 @@ import { GetStaticProps } from "next" import { useTranslation } from "next-i18next" import { serverSideTranslations } from "next-i18next/serverSideTranslations" -import type { ComponentProps } from "react" -import { - Box, - Flex, - type FlexProps, - Heading, - type HeadingProps, - ListItem, - UnorderedList, -} from "@chakra-ui/react" +import type { ComponentProps, HTMLAttributes } from "react" import type { BasePageProps, ChildOnlyProp, Lang } from "@/lib/types" import ActionCard from "@/components/ActionCard" -import ButtonLink from "@/components/Buttons/ButtonLink" import CalloutBanner from "@/components/CalloutBanner" import Card from "@/components/Card" import CardList from "@/components/CardList" @@ -23,16 +13,17 @@ import EthPriceCard from "@/components/EthPriceCard" import EthVideo from "@/components/EthVideo" import FeedbackCard from "@/components/FeedbackCard" import HorizontalCard from "@/components/HorizontalCard" -import { Image } from "@/components/Image" +import { TwImage } from "@/components/Image" import InfoBanner from "@/components/InfoBanner" -import InlineLink from "@/components/Link" import MainArticle from "@/components/MainArticle" -import OldHeading from "@/components/OldHeading" -import Text from "@/components/OldText" import PageMetadata from "@/components/PageMetadata" import { StandaloneQuizWidget } from "@/components/Quiz/QuizWidget" import Translation from "@/components/Translation" +import { ButtonLink } from "@/components/ui/buttons/Button" import { Divider } from "@/components/ui/divider" +import { Flex, VStack } from "@/components/ui/flex" +import InlineLink from "@/components/ui/Link" +import { ListItem, UnorderedList } from "@/components/ui/list" import { cn } from "@/lib/utils/cn" import { existsNamespace } from "@/lib/utils/existsNamespace" @@ -46,166 +37,119 @@ import defi from "@/public/images/finance_transparent.png" import ethereum from "@/public/images/what-is-ethereum.png" const Page = (props: ChildOnlyProp) => ( - ) const Content = (props: ChildOnlyProp) => ( - +
) const GrayContainer = (props: ChildOnlyProp) => ( - ) const Intro = (props: ChildOnlyProp) => ( - +
) const StyledCard = (props: ComponentProps) => ( ) const Slogan = (props: ChildOnlyProp) => ( - +

) const Title = (props: ChildOnlyProp) => ( - ) const Subtitle = (props: ChildOnlyProp) => ( - + +) + +const Text = ({ className, ...props }: HTMLAttributes) => ( +

) -export const TwoColumnContent = (props: FlexProps) => ( +export const TwoColumnContent = ({ + className, + ...props +}: HTMLAttributes) => ( ) export const LeftColumn = (props: ChildOnlyProp) => ( - ) export const RightColumn = (props: ChildOnlyProp) => ( ) const SubtitleTwo = (props: ChildOnlyProp) => ( - + ) const HeroContainer = (props: ChildOnlyProp) => ( ) const Hero = (props: ChildOnlyProp) => ( - ) const Header = (props: ChildOnlyProp) => ( - +

) -const H2 = (prop: HeadingProps) => ( - +const H2 = (props: ChildOnlyProp) => ( +

) -const H3 = (props: HeadingProps) => ( - +const H3 = (props: ChildOnlyProp) => ( +

) -const H4 = (props: HeadingProps) => ( - +const H4 = (props: ChildOnlyProp) => ( +

) -const CardContainer = (props: FlexProps) => ( - +const CardContainer = ({ + className, + ...props +}: HTMLAttributes) => ( + ) const TokenCard = (props: ComponentProps) => ( @@ -216,24 +160,11 @@ const TokenCard = (props: ComponentProps) => ( /> ) const TextDivider = () => ( - +
) const CentralColumn = (props: ChildOnlyProp) => ( - + ) const CentralActionCard = (props: ComponentProps) => ( @@ -375,7 +306,7 @@ const EthPage = () => { - { {t("page-eth-description")} - + {benefits.map((benefits, idx) => ( { ))} - {t("page-eth-buy-some")}{" "} + {t("page-eth-buy-some")}{" "} {" "} {t("page-eth-more-on-ethereum-link")} @@ -415,13 +346,13 @@ const EthPage = () => {

{t("page-eth-whats-unique")}

{t("page-eth-whats-unique-desc")} - +

{t("page-eth-fuels")}

{t("page-eth-fuels-desc")} {t("page-eth-fuels-desc-2")} {" "} - {t("page-eth-powers-ethereum")} + {t("page-eth-powers-ethereum")} {t("page-eth-period")} @@ -430,7 +361,7 @@ const EthPage = () => { {t("page-eth-fuels-more-staking")} - +
{ image={ethereum} /> - +

{t("page-eth-underpins")}

@@ -453,9 +384,9 @@ const EthPage = () => { - +
- +

{t("page-eth-uses")}

{t("page-eth-uses-desc")} {t("page-eth-uses-desc-2")} @@ -485,7 +416,7 @@ const EthPage = () => { – {t("page-eth-uses-desc-6")} - +
{ alt={t("page-eth-cat-img-alt")} imageWidth={300} > - +
{t("page-eth-get-eth-btn")} - +
@@ -517,12 +448,12 @@ const EthPage = () => { - +

{t("page-eth-not-only-crypto")}

{t("page-eth-not-only-crypto-desc")} {t("page-eth-not-only-crypto-desc-2")} -

{t("page-eth-more-on-tokens")}

+

{t("page-eth-more-on-tokens")}