Skip to content

Commit 2eaf8c8

Browse files
committed
navbar is now consistent across all pages
1 parent 76c15aa commit 2eaf8c8

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

frontend/src/components/Layout.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ 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">
7+
<section className="flex flex-col min-h-screen justify-between py-8 relative">
88
<Navbar />
9-
{children}
10-
<Footer />
9+
10+
<div className='xl:px-24 md:px-10 px-5 '>
11+
{children}
12+
<Footer />
13+
</div>
14+
1115
</section>
1216
);
1317
};

frontend/src/pages/events.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ 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">
8+
<section className="flex flex-col min-h-screen justify-between py-8 relative">
99
<Navbar />
10-
<Events/>
11-
<Footer />
10+
11+
<div className='xl:px-24 md:px-10 px-5 '>
12+
<Events/>
13+
<Footer />
14+
</div>
15+
1216
</section>
1317
);
1418
}

0 commit comments

Comments
 (0)