diff --git a/src/components/Layer2ProductCard.tsx b/src/components/Layer2ProductCard.tsx index a4c637fb900..844654a86ce 100644 --- a/src/components/Layer2ProductCard.tsx +++ b/src/components/Layer2ProductCard.tsx @@ -1,12 +1,11 @@ -// Libraries import { StaticImageData } from "next/image" import { useTranslation } from "next-i18next" -import { Box, Center, Flex, Heading } from "@chakra-ui/react" -import { ButtonLink } from "@/components/Buttons" -import { Image } from "@/components/Image" -import InlineLink from "@/components/Link" -import Text from "@/components/OldText" +import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card" + +import { ButtonLink } from "./ui/buttons/Button" +import InlineLink from "./ui/Link" +import { TwImage } from "./Image" export type Layer2ProductCardProps = { children?: React.ReactNode @@ -38,72 +37,75 @@ const Layer2ProductCard = ({ const { t } = useTranslation("page-layer-2") return ( - -
+
- {alt} -
- - - - {name} - - {children && ( - - {children} - - )} - - {description} - - {note.length > 0 && ( - + + + +
+

{name}

+ {children &&
{children}
} +
+
+ + +
+

{description}

+ + {note && ( +

{t("layer-2-note")} {note} - +

)} - - {bridge && ( - - {name} {t("layer-2-bridge")} - - )} - {ecosystemPortal && ( - - {name} {t("layer-2-ecosystem-portal")} - - )} - {tokenLists && ( - - {name} {t("layer-2-token-lists")} - +
+ +
+ {bridge && ( + + {name} {t("layer-2-bridge")} + + )} + + {ecosystemPortal && ( + + {name} {t("layer-2-ecosystem-portal")} + + )} + + {tokenLists && ( + + {name} {t("layer-2-token-lists")} + + )} +
+
+ + + {url && ( + + {t("layer-2-explore")} {name} + )} -
- - - {t("layer-2-explore")} {name} - - -
+ + ) }