Skip to content

Commit 6343bfa

Browse files
fix(Trilemma): adjust structure and spacing
1 parent 1ab06f9 commit 6343bfa

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

src/components/Trilemma/Triangle.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export const TriangleSVG = ({
112112
viewBox="-100 100 850 915"
113113
fill="background.base"
114114
width={{ base: "full", lg: "auto" }}
115-
my={{ base: -28, sm: -16, lg: 0 }}
116115
mt={{ lg: 32 }}
117116
me={{ lg: 32 }}
118117
>

src/components/Trilemma/index.tsx

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import {
55
DrawerContent,
66
DrawerOverlay,
77
Flex,
8+
Heading,
89
Hide,
910
Stack,
11+
Text,
1012
} from "@chakra-ui/react"
1113

1214
import Card from "@/components/Card"
13-
import OldHeading from "@/components/OldHeading"
14-
import Text from "@/components/OldText"
1515

1616
import { TriangleSVG, TriangleSVGProps } from "./Triangle"
1717
import { useTrilemma } from "./useTrilemma"
@@ -36,29 +36,32 @@ const Trilemma = () => {
3636
<Flex
3737
alignItems="center"
3838
flexDirection={{ base: "column", lg: "row" }}
39-
gap={12}
40-
py={12}
41-
pl={{ lg: 12 }}
42-
pr={{ lg: 32 }}
39+
justifyContent="space-between"
40+
columnGap="12"
41+
rowGap="8"
4342
>
4443
<Stack
45-
gap={8}
46-
py={{ lg: 8 }}
47-
px={{ base: 12, lg: 0 }}
44+
spacing="8"
45+
mt={{ base: "16", md: "20" }}
46+
mb={{ lg: "20" }}
47+
ms={{ md: "12" }}
48+
me={{ md: "12", lg: 0 }}
4849
flex={{
4950
lg: "0 1 500px",
5051
}}
5152
>
52-
<OldHeading fontSize="2rem" mt={0}>
53+
<Heading fontSize="2rem">
5354
{t("page-roadmap-vision-trilemma-h2")}
54-
</OldHeading>
55-
<Text>{t("page-roadmap-vision-trilemma-p")}</Text>
56-
<Text>{t("page-roadmap-vision-trilemma-p-1")}</Text>
57-
<Text>{t("page-roadmap-vision-trilemma-p-2")}</Text>
58-
<Text fontWeight={600} hideFrom="lg">
59-
{t("page-roadmap-vision-trilemma-modal-tip")}:
60-
</Text>
61-
<Card {...cardDetail} mt={8} minH="300px" hideBelow="lg" />
55+
</Heading>
56+
<Flex flexDir="column" gap="6">
57+
<Text>{t("page-roadmap-vision-trilemma-p")}</Text>
58+
<Text>{t("page-roadmap-vision-trilemma-p-1")}</Text>
59+
<Text>{t("page-roadmap-vision-trilemma-p-2")}</Text>
60+
<Text fontWeight={600} hideFrom="lg">
61+
{t("page-roadmap-vision-trilemma-modal-tip")}:
62+
</Text>
63+
</Flex>
64+
<Card {...cardDetail} minH="300px" hideBelow="lg" />
6265
</Stack>
6366
<Hide above="lg">
6467
<Drawer
@@ -67,7 +70,7 @@ const Trilemma = () => {
6770
placement="bottom"
6871
>
6972
<DrawerOverlay background="rgba(0,0,0,0.3)" />
70-
<DrawerContent borderTopRadius="2xl" background="background.base">
73+
<DrawerContent borderTopRadius="1rem" background="background.base">
7174
<Card {...cardDetail} background="none" border="none" my="8" />
7275
<DrawerCloseButton top="6" insetInlineEnd="6" />
7376
</DrawerContent>

0 commit comments

Comments
 (0)