1
- import { Box , Flex , Heading , ListItem , UnorderedList } from "@chakra-ui/react"
2
-
3
1
import { layer2Data , Rollups , RollupType } from "@/data/layer-2/layer-2"
4
2
5
3
import InlineLink from "./Link"
6
- import Text from "./OldText"
7
4
import Translation from "./Translation"
8
5
9
6
const rollups = layer2Data as Rollups
@@ -14,51 +11,45 @@ export type RollupProductDevDocProps = {
14
11
15
12
const RollupProductDevDoc = ( { rollupType } : RollupProductDevDocProps ) => {
16
13
return (
17
- < Box >
14
+ < div >
18
15
{ rollups [ rollupType ] . map (
19
16
( { name, noteKey, website, developerDocs, l2beat } , idx ) => {
20
17
return (
21
- < Flex key = { idx } my = { 4 } background = "rollupDevDocList" >
22
- < Box p = { 4 } pb = { 0 } >
23
- < Box >
24
- < Heading
25
- as = "h4"
26
- fontSize = { { base : "md" , md : "xl" } }
27
- fontWeight = "500"
28
- lineHeight = "1.4"
29
- my = { 4 }
30
- >
18
+ < div key = { idx } className = "bg-rollupDevDocList my-4" >
19
+ < div className = "p-4 pb-0" >
20
+ < div >
21
+ < h4 className = "my-4 text-md font-medium leading-relaxed md:text-xl" >
31
22
{ name }
32
- </ Heading >
23
+ </ h4 >
33
24
{ noteKey . length > 0 && (
34
- < Text >
25
+ < p >
35
26
* < Translation id = { `page-layer-2:${ noteKey } ` } />
36
- </ Text >
27
+ </ p >
37
28
) }
38
- < UnorderedList >
39
- < ListItem >
29
+ < ul className = "list-disc pl-5" >
30
+ < li >
40
31
< InlineLink href = { website } >
41
32
< Translation id = "rollup-component-website" />
42
33
</ InlineLink >
43
- </ ListItem >
44
- < ListItem >
34
+ </ li >
35
+ < li >
45
36
< InlineLink href = { developerDocs } >
46
37
< Translation id = "rollup-component-developer-docs" />
47
38
</ InlineLink >
48
- </ ListItem >
49
- < ListItem >
39
+ </ li >
40
+ < li >
50
41
< InlineLink href = { l2beat } >
51
42
< Translation id = "rollup-component-technology-and-risk-summary" />
52
43
</ InlineLink >
53
- </ ListItem >
54
- </ UnorderedList >
55
- </ Box >
56
- </ Box >
57
- </ Flex >
44
+ </ li >
45
+ </ ul >
46
+ </ div >
47
+ </ div >
48
+ </ div >
58
49
)
59
50
}
60
51
) }
61
- </ Box >
52
+ </ div >
62
53
)
63
54
}
64
55
0 commit comments