Skip to content

Commit 95b4c8c

Browse files
committed
migrate simulator section
1 parent 61c9348 commit 95b4c8c

File tree

1 file changed

+12
-33
lines changed

1 file changed

+12
-33
lines changed

src/pages/wallets/index.tsx

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { GetStaticProps } from "next"
33
import { useRouter } from "next/router"
44
import { useTranslation } from "next-i18next"
55
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
6-
import { Box, Flex, Heading, Text as ChakraText } from "@chakra-ui/react"
6+
import { Box, Flex } from "@chakra-ui/react"
77

88
import { BasePageProps, Lang } from "@/lib/types"
99

@@ -13,7 +13,7 @@ import Card from "@/components/Card"
1313
import CardList from "@/components/CardList"
1414
import FeedbackCard from "@/components/FeedbackCard"
1515
import HorizontalCard from "@/components/HorizontalCard"
16-
import { Image } from "@/components/Image"
16+
import { TwImage } from "@/components/Image"
1717
import MainArticle from "@/components/MainArticle"
1818
import Text from "@/components/OldText"
1919
import PageHero from "@/components/PageHero"
@@ -305,41 +305,24 @@ const WalletsPage = () => {
305305
{locale === "en" ? (
306306
<div className="my-20 w-full px-0 py-4">
307307
<Simulator data={walletOnboardingSimData}>
308-
<ChakraText
309-
fontSize={{ base: "lg", md: "xl", lg: "2xl" }}
310-
fontStyle="italic"
311-
color="body.medium"
312-
mb={2}
313-
>
308+
<p className="mb-2 text-lg italic leading-base text-body-medium md:text-xl lg:text-2xl">
314309
Interactive tutorial
315-
</ChakraText>
316-
<Heading
317-
as="h2"
318-
size={{ base: "xl", lg: "2xl" }}
319-
lineHeight="115%"
320-
fontWeight="bold"
321-
m={0}
322-
>
310+
</p>
311+
<h2 className="m-0 text-3xl font-bold leading-[115%] lg:text-5xl">
323312
How to use a wallet
324-
</Heading>
313+
</h2>
325314
</Simulator>
326315
</div>
327316
) : (
328317
<div className="my-12 mt-4 w-full bg-[linear-gradient(49deg,rgba(127,127,213,0.2)_0%,rgba(134,168,231,0.2)_50%,rgba(145,234,228,0.2)_100%)] px-0 py-16 shadow-[inset_0px_1px_0px_var(--eth-colors-tableItemBoxShadow)] lg:mt-8">
329318
<div className="w-full px-8 py-4">
330-
<Flex flexDirection="column" alignItems="center" mb="8">
319+
<div className="mb-8 flex flex-col items-center">
331320
<h2 className="mb-8 mt-12 text-2xl leading-[1.4] md:text-[2rem]">
332321
{t("page-wallets-features-title")}
333322
</h2>
334-
<Box
335-
fontSize="xl"
336-
lineHeight={1.4}
337-
color="text"
338-
textAlign="center"
339-
mb={6}
340-
>
323+
<div className="mb-6 text-center text-xl leading-base">
341324
{t("page-wallets-features-desc")}
342-
</Box>
325+
</div>
343326
<ButtonLink
344327
href="/wallets/find-wallet/"
345328
customEventOptions={{
@@ -350,16 +333,12 @@ const WalletsPage = () => {
350333
>
351334
{t("page-wallets-find-wallet-btn")}
352335
</ButtonLink>
353-
<Image
336+
<TwImage
354337
src={FindWalletImage}
355338
alt=""
356-
mt={8}
357-
maxW="800px"
358-
backgroundSize="cover"
359-
backgroundRepeat="no-repeat"
360-
w="full"
339+
className="mt-8 w-full max-w-[800px] bg-cover bg-no-repeat"
361340
/>
362-
</Flex>
341+
</div>
363342
</div>
364343
</div>
365344
)}

0 commit comments

Comments
 (0)