@@ -8,17 +8,18 @@ import Text from "@/components/OldText"
8
8
import { getTranslation } from "@/storybook-utils"
9
9
10
10
import { langViewportModes } from "../../../.storybook/modes"
11
+ import { ContentContainer } from "../MdComponents"
11
12
12
13
import {
13
- Banner as BannerComponent , BannerBody as BannerBodyComponent ,
14
+ Banner as BannerComponent ,
15
+ BannerBody as BannerBodyComponent ,
14
16
BannerGrid as BannerGridComponent ,
15
17
BannerGridCell as BannerGridCellComponent ,
16
18
BannerImage as BannerImageComponent ,
17
19
} from "."
18
20
19
21
import stats from "@/public/images/upgrades/newrings.png"
20
22
21
-
22
23
const meta = {
23
24
title : "Molecules / Display Content / Banner" ,
24
25
component : BannerComponent ,
@@ -33,17 +34,17 @@ const meta = {
33
34
decorators : [
34
35
( Story ) => (
35
36
< Box position = "relative" w = "full" >
36
- { /* <ContentContainer> */ }
37
+ < ContentContainer >
37
38
< Story />
38
- { /* </ContentContainer> */ }
39
+ </ ContentContainer >
39
40
</ Box >
40
- )
41
- ]
41
+ ) ,
42
+ ] ,
42
43
} satisfies Meta < typeof BannerComponent >
43
44
44
45
export default meta
45
46
46
- type Story = StoryObj < typeof meta > ;
47
+ type Story = StoryObj < typeof meta >
47
48
48
49
export const Banner : Story = {
49
50
render : ( ) => {
@@ -52,7 +53,7 @@ export const Banner: Story = {
52
53
< div > What </ div >
53
54
</ BannerComponent >
54
55
)
55
- }
56
+ } ,
56
57
}
57
58
58
59
export const BannerBody : Story = {
@@ -62,7 +63,7 @@ export const BannerBody: Story = {
62
63
< div > What </ div >
63
64
</ BannerBodyComponent >
64
65
)
65
- }
66
+ } ,
66
67
}
67
68
68
69
export const BannerImage : Story = {
@@ -72,29 +73,34 @@ export const BannerImage: Story = {
72
73
< Image src = { stats } alt = "" width = { 400 } />
73
74
</ BannerImageComponent >
74
75
)
75
- }
76
+ } ,
76
77
}
77
78
78
79
export const BannerGrid : Story = {
79
80
render : ( ) => {
80
81
const PAGE_WHAT_IS_ETH = "page-what-is-ethereum"
81
82
return (
82
83
< BannerGridComponent >
83
- { Array . from ( { length : 6 } , ( _ , i ) => i + 1 ) . map ( item => < BannerGridCellComponent key = { item } >
84
- < Box fontSize = "5xl" mb = { 4 } lineHeight = { 1 } >
85
- { item } k+
86
- </ Box >
87
- < Box fontSize = "md" color = "text200" >
88
- { getTranslation ( "page-what-is-ethereum-ethereum-in-numbers-stat-1-desc" , PAGE_WHAT_IS_ETH ) }
89
- < Text as = "span" whiteSpace = "nowrap" >
90
-
91
- < Box as = "span" >
92
- < Icon as = { MdInfoOutline } verticalAlign = "middle" />
93
- </ Box >
94
- </ Text >
95
- </ Box >
96
- </ BannerGridCellComponent > ) }
84
+ { Array . from ( { length : 6 } , ( _ , i ) => i + 1 ) . map ( ( item ) => (
85
+ < BannerGridCellComponent key = { item } >
86
+ < Box fontSize = "5xl" mb = { 4 } lineHeight = { 1 } >
87
+ { item } k+
88
+ </ Box >
89
+ < Box fontSize = "md" color = "text200" >
90
+ { getTranslation (
91
+ "page-what-is-ethereum-ethereum-in-numbers-stat-1-desc" ,
92
+ PAGE_WHAT_IS_ETH
93
+ ) }
94
+ < Text as = "span" whiteSpace = "nowrap" >
95
+
96
+ < Box as = "span" >
97
+ < Icon as = { MdInfoOutline } verticalAlign = "middle" />
98
+ </ Box >
99
+ </ Text >
100
+ </ Box >
101
+ </ BannerGridCellComponent >
102
+ ) ) }
97
103
</ BannerGridComponent >
98
104
)
99
- }
100
- }
105
+ } ,
106
+ }
0 commit comments