@@ -5,13 +5,13 @@ import {
5
5
DrawerContent ,
6
6
DrawerOverlay ,
7
7
Flex ,
8
+ Heading ,
8
9
Hide ,
9
10
Stack ,
11
+ Text ,
10
12
} from "@chakra-ui/react"
11
13
12
14
import Card from "@/components/Card"
13
- import OldHeading from "@/components/OldHeading"
14
- import Text from "@/components/OldText"
15
15
16
16
import { TriangleSVG , TriangleSVGProps } from "./Triangle"
17
17
import { useTrilemma } from "./useTrilemma"
@@ -36,29 +36,32 @@ const Trilemma = () => {
36
36
< Flex
37
37
alignItems = "center"
38
38
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"
43
42
>
44
43
< 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 } }
48
49
flex = { {
49
50
lg : "0 1 500px" ,
50
51
} }
51
52
>
52
- < OldHeading fontSize = "2rem" mt = { 0 } >
53
+ < Heading fontSize = "2rem" >
53
54
{ 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" />
62
65
</ Stack >
63
66
< Hide above = "lg" >
64
67
< Drawer
@@ -67,7 +70,7 @@ const Trilemma = () => {
67
70
placement = "bottom"
68
71
>
69
72
< DrawerOverlay background = "rgba(0,0,0,0.3)" />
70
- < DrawerContent borderTopRadius = "2xl " background = "background.base" >
73
+ < DrawerContent borderTopRadius = "1rem " background = "background.base" >
71
74
< Card { ...cardDetail } background = "none" border = "none" my = "8" />
72
75
< DrawerCloseButton top = "6" insetInlineEnd = "6" />
73
76
</ DrawerContent >
0 commit comments