Skip to content

Commit 31cb396

Browse files
committed
Fixed spacing issue on home page
1 parent 6d3e862 commit 31cb396

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/app/globals.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ body {
2424
rgb(var(--background-end-rgb))
2525
)
2626
rgb(var(--background-start-rgb));
27-
background-attachment: fixed;
28-
height: 200vh;
2927
}
3028

3129
@layer utilities {
@@ -79,6 +77,12 @@ input[type=button]{
7977
height: 100%;
8078
}
8179

80+
.session-background {
81+
background: radial-gradient(#315b25, #0a2602, #000000);
82+
background-attachment: fixed;
83+
height: 200vh;
84+
}
85+
8286

8387
.heading{
8488
line-height: 200px;

src/app/session/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default function SessionPage({ params } : { params: { id: string} }) {
9999
}, [isHostNameSet]); //if it mounts on start, this useEffect runs before the username + hostID is set in the database
100100

101101
return (
102-
<main id="session-main" className="background flex min-h-screen flex-col items-center justify-between p-24">
102+
<main id="session-main" className="session-background flex min-h-screen flex-col items-center justify-between p-24">
103103
<Session
104104
isHost={(sessionStorage.getItem('isHost') === "true") ? true : false}
105105
sid={sid}

0 commit comments

Comments
 (0)