@@ -43,52 +43,16 @@ function Wrapper({ content, context }: FileBlockProps) {
43
43
) ;
44
44
45
45
return (
46
- < div className = { tw ( `p-8 mt-10 grid grid-cols-1 lg:grid-cols-2 gap-20` ) } >
47
- < div className = { tw ( `` ) } >
48
- < style dangerouslySetInnerHTML = { { __html : content } } />
49
- < h1 className = { tw ( `text-6xl font-medium mb-4` ) } > Colors</ h1 >
50
- < div
51
- className = { tw (
52
- `grid grid-cols-2 lg:grid-cols-3 min-w-[27em] max-w-[50em] mt-6`
53
- ) }
54
- >
55
- { colors . map ( ( [ color , shades ] ) => {
56
- const isSingleShade = shades . length === 1 ;
57
- const mainShade = isSingleShade ? shades [ 0 ] : shades [ 4 ] ;
58
- return (
59
- < div className = { tw ( `flex-1 flex flex-col my-2 ml-0 mr-3` ) } >
60
- { /* <h2 className={tw(`text-md font-medium`)}>{color}</h2> */ }
61
- < div className = { tw ( `` ) } >
62
- < div
63
- className = { tw ( `w-full h-40` ) }
64
- style = { { backgroundColor : mainShade } }
65
- />
66
- < div className = { tw ( `w-full h-12 flex flex-wrap mt-4` ) } >
67
- { ! isSingleShade &&
68
- shades . map ( ( shade ) => {
69
- return (
70
- < div
71
- className = { tw ( `w-[20%] h-[50%]` ) }
72
- style = { { backgroundColor : shade } }
73
- > </ div >
74
- ) ;
75
- } ) }
76
- </ div >
77
- </ div >
78
- < div className = { tw ( `text-sm mt-2 font-mono` ) } > { color } </ div >
79
- </ div >
80
- ) ;
81
- } ) }
82
- </ div >
83
- </ div >
84
-
46
+ < div className = { tw ( `p-8 mt-[3vh] grid grid-cols-1 sm:grid-cols-2 gap-10` ) } >
85
47
< div className = { tw ( `w-full flex flex-col m-2` ) } >
86
- < h2 className = { tw ( `text-6xl font-medium mb-4` ) } > Fonts</ h2 >
48
+ < h2 className = { tw ( `text-4xl font-medium mb-4` ) } > Fonts</ h2 >
87
49
< div className = { tw ( `flex flex-wrap` ) } >
88
50
{ fonts . map ( ( [ name , value ] ) => {
89
51
return (
90
52
< div
91
- className = { tw ( `flex-1 flex flex-col my-2 mr-10 max-w-[20em]` ) }
53
+ className = { tw (
54
+ `flex-1 flex flex-col mt-2 mb-10 mr-10 min-w-[10em]`
55
+ ) }
92
56
>
93
57
< div className = { tw ( `text-sm font-mono` ) } > { name } </ div >
94
58
< div
@@ -113,7 +77,7 @@ function Wrapper({ content, context }: FileBlockProps) {
113
77
) ) }
114
78
</ p >
115
79
< p
116
- className = { tw ( `flex flex-wrap mt-1 text-sm mt-2` ) }
80
+ className = { tw ( `flex flex-wrap mt-1 text-xs mt-2` ) }
117
81
style = { {
118
82
fontFamily : value ,
119
83
} }
@@ -134,6 +98,39 @@ function Wrapper({ content, context }: FileBlockProps) {
134
98
} ) }
135
99
</ div >
136
100
</ div >
101
+ < div className = { tw ( `` ) } >
102
+ < style dangerouslySetInnerHTML = { { __html : content } } />
103
+ < h1 className = { tw ( `text-4xl font-medium mb-4` ) } > Colors</ h1 >
104
+ < div className = { tw ( `grid grid-cols-2 mt-6` ) } >
105
+ { colors . map ( ( [ color , shades ] ) => {
106
+ const isSingleShade = shades . length === 1 ;
107
+ const mainShade = isSingleShade ? shades [ 0 ] : shades [ 4 ] ;
108
+ return (
109
+ < div className = { tw ( `flex-1 flex flex-col my-2 ml-0 mr-3` ) } >
110
+ { /* <h2 className={tw(`text-md font-medium`)}>{color}</h2> */ }
111
+ < div className = { tw ( `` ) } >
112
+ < div
113
+ className = { tw ( `w-full h-40` ) }
114
+ style = { { backgroundColor : mainShade } }
115
+ />
116
+ < div className = { tw ( `w-full h-12 flex flex-wrap mt-4` ) } >
117
+ { ! isSingleShade &&
118
+ shades . map ( ( shade ) => {
119
+ return (
120
+ < div
121
+ className = { tw ( `w-[20%] h-[50%]` ) }
122
+ style = { { backgroundColor : shade } }
123
+ > </ div >
124
+ ) ;
125
+ } ) }
126
+ </ div >
127
+ </ div >
128
+ < div className = { tw ( `text-sm mt-2 font-mono` ) } > { color } </ div >
129
+ </ div >
130
+ ) ;
131
+ } ) }
132
+ </ div >
133
+ </ div >
137
134
</ div >
138
135
) ;
139
136
}
0 commit comments