Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[I2-30] Hamburger Side Menu#67

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
TR-04 wants to merge5 commits intomaster
base:master
Choose a base branch
Loading
fromI2-30/new-hamburger-menu
Open
Changes from1 commit
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
PrevPrevious commit
added socials to bottom of side menu
  • Loading branch information
@TR-04
TR-04 committedAug 26, 2025
commit1ba519667980f2e290e79cab4a486f4e6af69175
124 changes: 73 additions & 51 deletionsfrontend/src/components/Hamburger.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,8 @@ import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { Menu, X } from 'lucide-react';
import Link from 'next/link';
import Image from 'next/image';
import { socialLinks } from '@/../public/data/socialInfos';

const Hamburger = () => {
// Needs dom element to be same bfore and after
Expand DownExpand Up@@ -33,8 +35,8 @@ const Hamburger = () => {
}

return () => {
document.body.style.overflow = 'scroll';
document.body.style.paddingRight = '0px';
document.body.style.overflow = '';
document.body.style.paddingRight = '';
};
}, [showMenu]);

Expand DownExpand Up@@ -78,55 +80,75 @@ const Hamburger = () => {
<X className="h-6 w-6" />
</button>

<div className="p-6 pt-20 items-start flex flex-col gap-4">
<Link
href="/about"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
About Us
</Link>

<Link
href="/events"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Events
</Link>

<Link
href="/resources"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Resources
</Link>

<Link
href="/sponsors"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Sponsors
</Link>

<Link
href="/contact-us"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Contact Us
</Link>

<a
href="https://csesoc-merch.square.site/"
target="_blank"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Merch
</a>
<div className="p-6 pt-20 flex flex-col h-full">
<div className="flex flex-col gap-4 items-start">
<Link
href="/about"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
About Us
</Link>

<Link
href="/events"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Events
</Link>

<Link
href="/resources"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Resources
</Link>

<Link
href="/sponsors"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Sponsors
</Link>

<Link
href="/contact-us"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Contact Us
</Link>

<a
href="https://csesoc-merch.square.site/"
target="_blank"
className="text-white text-lg p-3 hover:underline"
onClick={closeMenu}
>
Merch
</a>
</div>

<div className="flex-1"></div>

<div className="flex gap-4 justify-center pb-6">
{socialLinks.map((item, index) => {
return (
<a key={index} href={item.href}>
<Image
className="h-4 fill-white min-w-full hover:scale-125 transition-all"
src={item.src}
alt={item.alt}
height={15}
width={15}
/>
</a>
);
})}
</div>
</div>
</div>
</div>,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp