Skip to content

Commit 8c92c0d

Browse files
FIX: Navbar shows up on mobile devices vertically
1 parent d5f1cce commit 8c92c0d

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const nextConfig: NextConfig = {
44
/* config options here */
55
//
66
basePath: "/Platform",
7-
output: 'export',
7+
//output: 'export',
88
reactStrictMode: true,
99
//assetPrefix: "/maasec.com/"
1010
};

src/app/components/Navbar.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,37 @@ const navItems = [
1111

1212
export default function Navbar() {
1313
return (
14-
<header className="w-full z-50 transition-all duration-300 bg-white shadow-md">
14+
<header className="w-full z-50 transition-all duration-300 bg-white shadow-sm">
1515
<nav className="container mx-auto px-4 py-4 flex justify-between items-center">
1616
<div className="flex items-center gap-2">
1717
<Link href="/">
18-
<Image src="/Platform/acm.svg" alt="ACM logo" width={64} height={64} />
19-
<span className="font-archivo font-bold text-xl text-black">
18+
<Image
19+
src="/Platform/acm.svg"
20+
alt="ACM logo"
21+
width={32}
22+
height={32}
23+
className='md:w-16 md:h-16' />
24+
<span className="font-archivo font-bold text-md md:text-lg lg:text-xl text-black">
2025
at Maastricht University
2126
</span>
2227
</Link>
2328
</div>
2429

25-
<div className="hidden md:flex gap-8 font-archivo">
30+
<div className="flex flex-col md:flex-row gap-4 md:gap-8 font-archivo">
31+
{/* <div className="flex gap-4 md:gap-8 font-archivo"> */}
2632
{navItems.map((item) => (
2733
<a
2834
key={item.id}
2935
href={`${item.id}`}
30-
className="hover:text-black transition-colors border-b-2 text-gray-500"
36+
className="
37+
hover:text-black
38+
text-md
39+
lg:text-lg
40+
transition-colors
41+
w-fit
42+
border-b-2
43+
text-gray-500
44+
"
3145
>
3246
{item.label}
3347
</a>

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default function Home() {
161161
<Image src="/Platform/discord.svg" alt = "discord" className="w-10 h-10 inline" width={64} height={64} />
162162
</a>
163163
<a href="https://ctftime.org/team/365940" className="text-white hover:bg-gray-200 transition-colors">
164-
<Image src="/ctftime.png" alt = "ctftime" className="w-10 h-10 inline" width={64} height={64} />
164+
<Image src="/Platform/ctftime.png" alt = "ctftime" className="w-10 h-10 inline" width={64} height={64} />
165165
</a>
166166
</div>
167167
</section>

0 commit comments

Comments
 (0)