Skip to content

Commit e0a4de7

Browse files
committed
make all pages full height
1 parent 74323ac commit e0a4de7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
rel="stylesheet"
1818
/>
1919
</head>
20-
<body>
21-
<div id="root" class="bg-primary"></div>
20+
<body class="h-dvh">
21+
<div id="root" class="h-full bg-primary"></div>
2222
<script type="module" src="/src/main.tsx"></script>
2323
</body>
2424
</html>

src/components/Layout/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { Outlet } from "react-router";
44

55
export default function Layout() {
66
return (
7-
<>
7+
<div className="flex h-full flex-col justify-between">
88
<Header />
99
<Outlet />
1010
<Footer />
11-
</>
11+
</div>
1212
);
1313
}

src/routes/Home/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Hero() {
22
return (
33
<section
44
id="hero"
5-
className="flex min-h-[8vh] flex-col items-center justify-evenly bg-primary py-8 text-accent"
5+
className="flex flex-col items-center justify-evenly bg-primary py-8 text-accent"
66
>
77
<div className="flex flex-wrap items-center justify-center p-8 text-center lg:p-5 xl:flex-nowrap">
88
<div className="flex flex-col items-center">

0 commit comments

Comments
 (0)