Skip to content

Commit c4b8ba8

Browse files
committed
fix: update spacing for Welcome component
1 parent 03b1a2a commit c4b8ba8

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed
Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { Interpolation, Theme } from "@emotion/react";
21
import type { FC, PropsWithChildren } from "react";
32
import { CoderIcon } from "../Icons/CoderIcon";
43

@@ -13,36 +12,13 @@ const Language = {
1312
export const Welcome: FC<PropsWithChildren> = ({ children }) => {
1413
return (
1514
<div>
16-
<div css={styles.container}>
15+
<div className="flex justify-center pb-1">
1716
<CoderIcon className="w-12 h-12" />
1817
</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>
2022
</div>
2123
);
2224
};
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>>;

0 commit comments

Comments
 (0)