Skip to content

Commit 806380e

Browse files
committed
Fixed padding inconsistencies with sticky navbar
1 parent 77a78da commit 806380e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

frontend/src/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Navbar = () => {
1212
}, []);
1313

1414
return (
15-
<nav className="sticky top-10 flex justify-between items-center relative z-10 shadow-lg rounded-md bg-white/15 backdrop-blur-md px-6 py-6">
15+
<nav className="sticky top-0 flex justify-between items-center relative z-10 shadow-lg rounded-md bg-white/15 backdrop-blur-md xl:px-24 md:px-10 px-5 py-6">
1616
<Link href="/">
1717
<Image
1818
src="/assets/csesoc_logo.svg"

frontend/src/pages/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ import EventsBrief from '@/components/Event/EventsBrief';
66

77
export default function HomePage() {
88
return (
9-
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative">
9+
<section>
10+
<div className="h-8"></div>
11+
1012
<Navbar />
11-
<Landing />
13+
14+
<div className="-mt-36">
15+
<Landing />
16+
</div>
17+
1218
<AboutHomePage />
1319
<EventsBrief />
1420
<Sponsors />

0 commit comments

Comments
 (0)