File tree Expand file tree Collapse file tree 1 file changed +5
-29
lines changed
site/src/components/Welcome Expand file tree Collapse file tree 1 file changed +5
-29
lines changed Original file line number Diff line number Diff line change 1
- import type { Interpolation , Theme } from "@emotion/react" ;
2
1
import type { FC , PropsWithChildren } from "react" ;
3
2
import { CoderIcon } from "../Icons/CoderIcon" ;
4
3
@@ -13,36 +12,13 @@ const Language = {
13
12
export const Welcome : FC < PropsWithChildren > = ( { children } ) => {
14
13
return (
15
14
< div >
16
- < div css = { styles . container } >
15
+ < div className = "flex justify-center pb-1" >
17
16
< CoderIcon className = "w-12 h-12" />
18
17
</ div >
19
- < h1 css = { styles . header } > { children || Language . defaultMessage } </ h1 >
18
+
19
+ < h1 className = "text-center text-3xl font-normal m-0 leading-[1.1] pb-4 [&_strong]:font-semibold" >
20
+ { children || Language . defaultMessage }
21
+ </ h1 >
20
22
</ div >
21
23
) ;
22
24
} ;
23
-
24
- const styles = {
25
- container : {
26
- display : "flex" ,
27
- justifyContent : "center" ,
28
- } ,
29
-
30
- icon : ( theme ) => ( {
31
- color : theme . palette . text . primary ,
32
- fontSize : 64 ,
33
- } ) ,
34
-
35
- header : {
36
- textAlign : "center" ,
37
- fontSize : 32 ,
38
- fontWeight : 400 ,
39
- margin : 0 ,
40
- marginTop : 16 ,
41
- marginBottom : 32 ,
42
- lineHeight : 1.25 ,
43
-
44
- "& strong" : {
45
- fontWeight : 600 ,
46
- } ,
47
- } ,
48
- } satisfies Record < string , Interpolation < Theme > > ;
You can’t perform that action at this time.
0 commit comments