@@ -38,12 +38,10 @@ export function code({ children, ...props }: ParentComponentProps) {
38
38
? ""
39
39
: clsx ( [
40
40
"bg-grey" ,
41
- "px-[14px]" ,
42
- "pt-[6px]" ,
43
- "pb-[2px]" ,
44
- "rounded-xl" ,
41
+ "px-[7px]" ,
42
+ "py-[2px]" ,
43
+ "rounded" ,
45
44
"text-sm" ,
46
- "desktop:text-base" ,
47
45
"leading-[1.5em]" ,
48
46
] ) ;
49
47
return children ? (
@@ -62,16 +60,15 @@ export function pre({ children, ...props }: ParentComponentProps) {
62
60
< CodeBlockContext . Provider value = { true } >
63
61
< div
64
62
className = { clsx ( [
65
- "rounded-2xl " ,
63
+ "rounded-lg " ,
66
64
"bg-grey/60" ,
67
65
"shadow" ,
68
66
"text-sm" ,
69
- "desktop:text-base" ,
70
67
"overflow-hidden" ,
71
68
"leading-[1.5em]" ,
72
69
] ) }
73
70
>
74
- < pre className = "overflow-scroll p-4 " { ...props } >
71
+ < pre className = "overflow-scroll p-2 " { ...props } >
75
72
{ children }
76
73
</ pre >
77
74
</ div >
@@ -81,7 +78,7 @@ export function pre({ children, ...props }: ParentComponentProps) {
81
78
82
79
export function p ( { children, ...props } : ParentComponentProps ) {
83
80
return (
84
- < p { ...props } className = "py-[13px] desktop:py-[20px] " >
81
+ < p { ...props } className = "py-[13px]" >
85
82
{ children }
86
83
</ p >
87
84
) ;
@@ -95,3 +92,37 @@ export function h2({ children, ...props }: ParentComponentProps) {
95
92
</ >
96
93
) ;
97
94
}
95
+
96
+ export function h3 ( { children, ...props } : ParentComponentProps ) {
97
+ return (
98
+ < >
99
+ < h3 { ...props } className = "text-lg" >
100
+ { children }
101
+ </ h3 >
102
+ </ >
103
+ ) ;
104
+ }
105
+
106
+ export function a ( { children, ...props } : ParentComponentProps ) {
107
+ return (
108
+ < a { ...props } className = "text-blue underline visited:text-purple" >
109
+ { children }
110
+ </ a >
111
+ ) ;
112
+ }
113
+
114
+ export function ul ( { children, ...props } : ParentComponentProps ) {
115
+ return (
116
+ < ul { ...props } className = "list-inside list-disc" >
117
+ { children }
118
+ </ ul >
119
+ ) ;
120
+ }
121
+
122
+ export function li ( { children, ...props } : ParentComponentProps ) {
123
+ return (
124
+ < li { ...props } >
125
+ < span className = "-ml-3" > { children } </ span >
126
+ </ li >
127
+ ) ;
128
+ }
0 commit comments