Hamburger Menu 컴포넌트
소셜 미디어용으로 설계된 반응형 햄버거 메뉴는 다크 모드 테마와 보색 구성표가 있는 인터페이스입니다.
HTML 코드
<div class="lg:hidden">
<div class="flex items-center justify-between p-5 bg-gray-900 text-white">
<div class="text-2xl font-bold">SocialApp</div>
<button id="menu-toggle" class="focus:outline-none">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M4 6h16M4 12h16m-7 6h7" />
</svg>
</button>
</div>
<div id="menu" class="absolute top-0 left-0 w-full h-full bg-gray-800 opacity-0 pointer-events-none transition-opacity duration-300 ease-in-out">
<div class="flex flex-col items-center justify-center h-full space-y-5 text-xl text-white">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-24 h-24 rounded-full border-2 border-indigo-500">
<a href="#" class="hover:text-indigo-300 transition duration-300">Home</a>
<a href="#" class="hover:text-indigo-300 transition duration-300">Profile</a>
<a href="#" class="hover:text-indigo-300 transition duration-300">Messages</a>
<a href="#" class="hover:text-indigo-300 transition duration-300">Settings</a>
</div>
</div>
</div>
<style>
#menu-toggle:focus + #menu {
opacity: 1;
pointer-events: auto;
}
</style>
관련 구성 요소
Hamburger Menu 컴포넌트
미니멀리스트/플랫 디자인의 반응형 햄버거 메뉴 구성 요소는 비즈니스/기업 웹사이트에 적합하며 파스텔 색 구성표를 사용하고 다크 모드를 지원합니다.
Hamburger Menu 컴포넌트
대시보드용으로 설계된 반응형 햄버거 메뉴 구성 요소로, 밝은 테마와 어두운 테마 모두에 적합한 그레이스케일 색상 구성표의 3D 디자인 스타일입니다.