구성 요소 고정 탐색 Sticky Navigation 구성 요소

Sticky Navigation 구성 요소

블로그를 위한 미니멀하고 반응이 빠른 끈적한 탐색 모음으로, 생생한 색 구성표를 특징으로 합니다. 다크 모드를 지원하며 왼쪽에는 "블로그 제목", 오른쪽에는 탐색 링크가 있는 간단하고 깔끔한 레이아웃이 있습니다. 탐색 모음은 사용자가 스크롤할 때 뷰포트 맨 위에 고정됩니다.

미리 보기

HTML 코드

<nav class="bg-gradient-to-r from-teal-400 to-blue-500 dark:from-gray-800 dark:to-gray-900 p-4 shadow-md sticky top-0 z-50">
  <div class="container mx-auto flex justify-between items-center">
    <!-- Blog Title -->
    <a href="#" class="text-white text-2xl font-bold dark:text-gray-100">Blog Title</a>

    <!-- Navigation Links -->
    <div class="hidden md:flex space-x-6">
      <a href="#" class="text-white hover:text-gray-100 dark:text-gray-300 dark:hover:text-white transition duration-300 ease-in-out">Home</a>
      <a href="#" class="text-white hover:text-gray-100 dark:text-gray-300 dark:hover:text-white transition duration-300 ease-in-out">Categories</a>
      <a href="#" class="text-white hover:text-gray-100 dark:text-gray-300 dark:hover:text-white transition duration-300 ease-in-out">About</a>
      <a href="#" class="text-white hover:text-gray-100 dark:text-gray-300 dark:hover:text-white transition duration-300 ease-in-out">Contact</a>
    </div>

    <!-- Mobile Menu Button (Hamburger) -->
    <div class="md:hidden">
      <button class="text-white focus:outline-none">
        <svg class="w-6 h-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 12h16M4 18h16"></path>
        </svg>
      </button>
    </div>
  </div>

  <!-- Mobile Menu (Hidden by default, can be shown with JS) -->
  <div class="md:hidden mt-4 space-y-2">
    <!-- Hidden for this pure HTML example as JS is not allowed -->
  </div>
</nav>

관련 구성 요소

Sticky Navigation 구성 요소

스큐어모픽 스타일로 설계된 고정 탐색 구성 요소로, Tailwind CSS를 사용하여 반응형 디자인과 어두운 테마를 지원하는 전자 상거래 웹 사이트에 적합합니다.

열다

Sticky Navigation 구성 요소

Sticky Navigation Component는 Skeuomorphism 디자인, 반응형 및 어두운 테마를 지원합니다. Tailwind CSS를 사용합니다.

열다

Sticky Navigation 구성 요소

Responsive Sticky Navigation Component with Dark Mode

열다