Skip to content

Commit 77a78da

Browse files
committed
Updated navbar to sticky with frosted glass background
1 parent 3a7dc35 commit 77a78da

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

frontend/src/components/Landing/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import Navbar from '@/components/Navbar';
44
const Landing = () => {
55
return (
66
<section
7-
className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden"
7+
className="flex flex-col min-h-screen justify-end py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden"
88
id="landing"
99
>
10-
<Navbar />
10+
1111
<Background />
1212
<div className="flex justify-between items-end">
1313
<div>

frontend/src/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react';
44

55
const Layout = ({ children }: { children: React.ReactNode }) => {
66
return (
7-
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
7+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative">
88
<Navbar />
99
{children}
1010
<Footer />

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="flex justify-between items-center relative z-10">
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">
1616
<Link href="/">
1717
<Image
1818
src="/assets/csesoc_logo.svg"

frontend/src/pages/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Navbar from '@/components/Navbar';
33

44
export default function Custom404() {
55
return (
6-
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
6+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative">
77
<div className="items-center text-center">
88
<Navbar />
99
<h1 className="text-5xl font-bold pt-24">404 - Page Not Found</h1>

frontend/src/pages/events.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Events from '@/components/Event';
55

66
export default function EventsPage() {
77
return (
8-
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
8+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative">
99
<Navbar />
1010
<Events/>
1111
<Footer />

frontend/src/pages/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
import Navbar from '@/components/Navbar';
12
import Landing from '@/components/Landing';
23
import Sponsors from '@/components/Sponsors/index';
34
import AboutHomePage from '@/components/About/AboutHomepage';
45
import EventsBrief from '@/components/Event/EventsBrief';
56

67
export default function HomePage() {
78
return (
8-
<section>
9-
<Landing />
10-
<AboutHomePage />
11-
<EventsBrief />
12-
<Sponsors />
9+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative">
10+
<Navbar />
11+
<Landing />
12+
<AboutHomePage />
13+
<EventsBrief />
14+
<Sponsors />
1315
</section>
1416
);
1517
}

0 commit comments

Comments
 (0)