Skip to content

Commit 11d9aac

Browse files
committed
Refactor CSS styles
1 parent c712049 commit 11d9aac

File tree

2 files changed

+55
-57
lines changed

2 files changed

+55
-57
lines changed

app/page.module.css

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
.main {
2-
display: flex;
3-
flex-direction: column;
4-
height: 100%;
5-
gap: 64px;
6-
justify-content: center;
7-
align-items: center;
2+
display: flex;
3+
flex-direction: column;
4+
height: inherit;
5+
gap: 64px;
6+
justify-content: center;
7+
align-items: center;
88
}
99

1010
.wrapper {
11-
display: flex;
12-
flex-direction: column;
13-
height: 100%;
14-
gap: 64px;
15-
justify-content: center;
16-
align-items: center;
11+
display: flex;
12+
flex-direction: column;
13+
height: 100%;
14+
gap: 64px;
15+
justify-content: center;
16+
align-items: center;
1717
}
1818
.title {
19-
font-size: xx-large;
20-
font-weight: bold;
21-
display: flex;
22-
flex-direction: column;
23-
gap: 0px;
19+
font-size: xx-large;
20+
font-weight: bold;
21+
display: flex;
22+
flex-direction: column;
23+
gap: 0px;
2424
}
2525

2626
.title > div {
27-
line-height: 90%;
27+
line-height: 90%;
2828
}
2929
.iconAndTitle {
30-
display: flex;
31-
flex-direction: row;
30+
display: flex;
31+
flex-direction: row;
3232

33-
gap: 8px;
34-
justify-content: center;
35-
align-items: center;
33+
gap: 8px;
34+
justify-content: center;
35+
align-items: center;
3636
}
3737
.subtitle {
38-
font-size: large;
39-
font-weight: bold;
40-
display: flex;
41-
flex-direction: column;
42-
gap: 0px;
38+
font-size: large;
39+
font-weight: bold;
40+
display: flex;
41+
flex-direction: column;
42+
gap: 0px;
4343
}
4444

4545
.subtitleWrapper {
46-
display: flex;
47-
flex-direction: column;
48-
gap: 8px;
49-
justify-content: center;
50-
align-items: center;
46+
display: flex;
47+
flex-direction: column;
48+
gap: 8px;
49+
justify-content: center;
50+
align-items: center;
5151
}

app/page.tsx

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@ import styles from "./page.module.css";
33
import JsonIcon from "@/public/icons/json-schema-blue.png";
44

55
export default function Home() {
6-
return (
7-
<div className={styles.main}>
8-
<div className={styles.wrapper}>
9-
<div className={styles.iconAndTitle}>
10-
<img
11-
alt="logo"
12-
src={JsonIcon.src}
13-
style={{ width: "64px", height: "64px" }}
14-
/>
15-
<div className={styles.title}>
16-
<div>Tour of</div>
17-
<div>JSON</div>
18-
<div>Schema</div>
19-
</div>
20-
</div>
21-
<div className={styles.subtitleWrapper}>
22-
<div className={styles.subtitle}>
23-
Learn JSON Schema by Examples.
24-
</div>
25-
Work in progress.
26-
</div>
27-
</div>
28-
</div>
29-
);
6+
return (
7+
<div className={styles.main}>
8+
<div className={styles.wrapper}>
9+
<div className={styles.iconAndTitle}>
10+
<img
11+
alt="logo"
12+
src={JsonIcon.src}
13+
style={{ width: "64px", height: "64px" }}
14+
/>
15+
<div className={styles.title}>
16+
<div>Tour of</div>
17+
<div>JSON</div>
18+
<div>Schema</div>
19+
</div>
20+
</div>
21+
<div className={styles.subtitleWrapper}>
22+
<div className={styles.subtitle}>Learn JSON Schema by Examples.</div>
23+
Work in progress ...
24+
</div>
25+
</div>
26+
</div>
27+
);
3028
}

0 commit comments

Comments
 (0)