Skip to content

Commit

Permalink
Refactor CSS styles
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed May 9, 2024
1 parent c712049 commit 11d9aac
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 57 deletions.
66 changes: 33 additions & 33 deletions app/page.module.css
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
.main {
display: flex;
flex-direction: column;
height: 100%;
gap: 64px;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
height: inherit;
gap: 64px;
justify-content: center;
align-items: center;
}

.wrapper {
display: flex;
flex-direction: column;
height: 100%;
gap: 64px;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
height: 100%;
gap: 64px;
justify-content: center;
align-items: center;
}
.title {
font-size: xx-large;
font-weight: bold;
display: flex;
flex-direction: column;
gap: 0px;
font-size: xx-large;
font-weight: bold;
display: flex;
flex-direction: column;
gap: 0px;
}

.title > div {
line-height: 90%;
line-height: 90%;
}
.iconAndTitle {
display: flex;
flex-direction: row;
display: flex;
flex-direction: row;

gap: 8px;
justify-content: center;
align-items: center;
gap: 8px;
justify-content: center;
align-items: center;
}
.subtitle {
font-size: large;
font-weight: bold;
display: flex;
flex-direction: column;
gap: 0px;
font-size: large;
font-weight: bold;
display: flex;
flex-direction: column;
gap: 0px;
}

.subtitleWrapper {
display: flex;
flex-direction: column;
gap: 8px;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
gap: 8px;
justify-content: center;
align-items: center;
}
46 changes: 22 additions & 24 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,26 @@ import styles from "./page.module.css";
import JsonIcon from "@/public/icons/json-schema-blue.png";

export default function Home() {
return (
<div className={styles.main}>
<div className={styles.wrapper}>
<div className={styles.iconAndTitle}>
<img
alt="logo"
src={JsonIcon.src}
style={{ width: "64px", height: "64px" }}
/>
<div className={styles.title}>
<div>Tour of</div>
<div>JSON</div>
<div>Schema</div>
</div>
</div>
<div className={styles.subtitleWrapper}>
<div className={styles.subtitle}>
Learn JSON Schema by Examples.
</div>
Work in progress.
</div>
</div>
</div>
);
return (
<div className={styles.main}>
<div className={styles.wrapper}>
<div className={styles.iconAndTitle}>
<img
alt="logo"
src={JsonIcon.src}
style={{ width: "64px", height: "64px" }}
/>
<div className={styles.title}>
<div>Tour of</div>
<div>JSON</div>
<div>Schema</div>
</div>
</div>
<div className={styles.subtitleWrapper}>
<div className={styles.subtitle}>Learn JSON Schema by Examples.</div>
Work in progress ...
</div>
</div>
</div>
);
}

0 comments on commit 11d9aac

Please sign in to comment.