Navigation 구성 요소
교육 플랫폼에 적합한 깨끗하고 전문적이며 반응이 빠른 탐색 모음으로, 트라이어딕 색 구성표, 다크 모드 지원, 일반적인 탐색 링크 및 클릭 유도문안 버튼이 있는 간단한 레이아웃을 특징으로 합니다.
HTML 코드
<nav class="bg-blue-600 dark:bg-gray-900 shadow-md">
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
<!-- Logo/Brand Name -->
<a href="#" class="text-white dark:text-orange-300 text-2xl font-bold tracking-wide hover:text-orange-200 dark:hover:text-white transition duration-300">
EduHub
</a>
<!-- Mobile Menu Button (Hamburger) -->
<div class="md:hidden">
<button class="text-white dark:text-gray-300 focus:outline-none focus:ring-2 focus:ring-orange-300 dark:focus:ring-blue-500 rounded-md p-2">
<svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"></path>
</svg>
</button>
</div>
<!-- Desktop Navigation Links -->
<div class="hidden md:flex space-x-6 lg:space-x-8 items-center">
<a href="#" class="text-white dark:text-gray-300 text-lg font-medium hover:text-orange-200 dark:hover:text-blue-500 transition duration-300">
Courses
</a>
<a href="#" class="text-white dark:text-gray-300 text-lg font-medium hover:text-orange-200 dark:hover:text-blue-500 transition duration-300">
Programs
</a>
<a href="#" class="text-white dark:text-gray-300 text-lg font-medium hover:text-orange-200 dark:hover:text-blue-500 transition duration-300">
About Us
</a>
<a href="#" class="text-white dark:text-gray-300 text-lg font-medium hover:text-orange-200 dark:hover:text-blue-500 transition duration-300">
Contact
</a>
<button class="bg-orange-500 dark:bg-emerald-500 text-white dark:text-gray-900 px-6 py-2 rounded-full font-semibold hover:bg-orange-600 dark:hover:bg-emerald-600 transition duration-300 shadow-md">
Sign Up
</button>
</div>
</div>
<!-- Mobile Menu (hidden by default, shown via JS toggle if needed) -->
<!-- For this pure HTML/Tailwind component, we can use a utility class to demonstrate the concept,
but a real implementation would require toggle class using JS. -->
<div class="md:hidden bg-blue-700 dark:bg-gray-800 pb-3 hidden" id="mobile-menu">
<div class="px-2 pt-2 pb-3 space-y-1">
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-white dark:text-gray-300 hover:bg-blue-600 dark:hover:bg-gray-700 hover:text-orange-100 dark:hover:text-blue-400 transition duration-300">
Courses
</a>
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-white dark:text-gray-300 hover:bg-blue-600 dark:hover:bg-gray-700 hover:text-orange-100 dark:hover:text-blue-400 transition duration-300">
Programs
</a>
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-white dark:text-gray-300 hover:bg-blue-600 dark:hover:bg-gray-700 hover:text-orange-100 dark:hover:text-blue-400 transition duration-300">
About Us
</a>
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-white dark:text-gray-300 hover:bg-blue-600 dark:hover:bg-gray-700 hover:text-orange-100 dark:hover:text-blue-400 transition duration-300">
Contact
</a>
<button class="block w-full text-left px-3 py-2 mt-2 rounded-md text-base font-semibold text-white dark:text-gray-900 bg-orange-500 dark:bg-emerald-500 hover:bg-orange-600 dark:hover:bg-emerald-600 transition duration-300 shadow-sm">
Sign Up
</button>
</div>
</div>
</nav>
관련 구성 요소
레트로 빈티지 내비게이션 컴포넌트
80년대/90년대 스타일에서 영감을 받은 레트로/빈티지 미학으로 디자인된 반응형 내비게이션 구성 요소로, 파스텔 색상 구성표가 특징입니다. 다크 모드 지원을 포함한 소셜 미디어 인터페이스에 적합합니다.
3D_Triadic_Simple_Business_Navigation
3D 디자인 미학과 트라이어딕 색 구성표를 갖춘 간단하고 반응이 빠른 비즈니스 내비게이션 구성 요소로, 다크 모드를 지원합니다.