Skip to content

[I2-14] - Standardised navbar across all pages #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/components/Landing/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Background from '@/components/Background';
import Navbar from '@/components/Navbar';

Check warning on line 2 in frontend/src/components/Landing/index.tsx

View workflow job for this annotation

GitHub Actions / build

'Navbar' is defined but never used

const Landing = () => {
return (
<section
className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden"
className="flex flex-col min-h-screen justify-end py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden"
id="landing"
>
<Navbar />

<Background />
<div className="flex justify-between items-end">
<div>
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import React from 'react';

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

<div className='xl:px-24 md:px-10 px-5 '>
{children}
<Footer />
</div>

</section>
);
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Navbar = () => {
}, []);

return (
<nav className="flex justify-between items-center relative z-10">
<nav className="sticky top-0 flex justify-between items-center relative z-10 shadow-lg rounded-md bg-black/15 backdrop-blur-md xl:px-24 md:px-10 px-5 py-6">
<Link href="/">
<Image
src="/assets/csesoc_logo.svg"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Navbar from '@/components/Navbar';

export default function Custom404() {
return (
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative">
<div className="items-center text-center">
<Navbar />
<h1 className="text-5xl font-bold pt-24">404 - Page Not Found</h1>
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/pages/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ import Events from '@/components/Event';

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

<div className='xl:px-24 md:px-10 px-5 '>
<Events/>
<Footer />
</div>

</section>
);
}
16 changes: 12 additions & 4 deletions frontend/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Navbar from '@/components/Navbar';
import Landing from '@/components/Landing';
import Sponsors from '@/components/Sponsors/index';
import AboutHomePage from '@/components/About/AboutHomepage';
Expand All @@ -6,10 +7,17 @@ import EventsBrief from '@/components/Event/EventsBrief';
export default function HomePage() {
return (
<section>
<Landing />
<AboutHomePage />
<EventsBrief />
<Sponsors />
<div className="h-8"></div>

<Navbar />

<div className="-mt-36">
<Landing />
</div>

<AboutHomePage />
<EventsBrief />
<Sponsors />
</section>
);
}
Loading