组件 导航组件 Glassmorphism_Navigation_Simple_Sunset

Glassmorphism_Navigation_Simple_Sunset

一个简单、响应迅速的 glassmorphism 导航组件,具有日落/暖色调,适用于商业/公司网站。具有半透明元素并支持深色模式。

预览

HTML 代码

<header class="bg-orange-100 dark:bg-gray-900 shadow-lg">
  <nav class="container mx-auto px-4 py-3 flex justify-between items-center">
    <a href="#" class="text-xl font-bold text-orange-700 dark:text-orange-300">YourCompany</a>

    <div class="hidden md:flex space-x-6">
      <a href="#" class="text-orange-600 hover:text-orange-800 dark:text-orange-400 dark:hover:text-amber-200 transition-colors duration-300">Home</a>
      <a href="#" class="text-orange-600 hover:text-orange-800 dark:text-orange-400 dark:hover:text-amber-200 transition-colors duration-300">About</a>
      <a href="#" class="text-orange-600 hover:text-orange-800 dark:text-orange-400 dark:hover:text-amber-200 transition-colors duration-300">Services</a>
      <a href="#" class="text-orange-600 hover:text-orange-800 dark:text-orange-400 dark:hover:text-amber-200 transition-colors duration-300">Contact</a>
    </div>

    <!-- Mobile menu button -->
    <button class="md:hidden focus:outline-none">
      <svg class="w-6 h-6 text-orange-700 dark:text-orange-300" 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>
  </nav>

  <!-- Mobile menu overlay (can be shown/hidden with JS, but per instructions, we just have structure) -->
  <div class="md:hidden fixed top-0 left-0 w-full h-full bg-orange-50 dark:bg-gray-800 bg-opacity-90 dark:bg-opacity-90 backdrop-filter backdrop-blur-md z-50 transform -translate-y-full transition-transform duration-300 ease-in-out">
    <div class="flex flex-col items-center justify-center h-full space-y-6">
        <a href="#" class="text-2xl text-orange-700 hover:text-orange-900 dark:text-orange-300 dark:hover:text-amber-100 transition-colors duration-300">Home</a>
        <a href="#" class="text-2xl text-orange-700 hover:text-orange-900 dark:text-orange-300 dark:hover:text-amber-100 transition-colors duration-300">About</a>
        <a href="#" class="text-2xl text-orange-700 hover:text-orange-900 dark:text-orange-300 dark:hover:text-amber-100 transition-colors duration-300">Services</a>
        <a href="#" class="text-2xl text-orange-700 hover:text-orange-900 dark:text-orange-300 dark:hover:text-amber-100 transition-colors duration-300">Contact</a>
    </div>
  </div>
</header>

相关组件

神经形态导航

一个简单的响应式导航组件,采用新拟态风格,专为电子商务设计.

打开

导航组件组件

一个复杂的响应式仪表板导航组件,具有微交互和类似的配色方案,并支持深色模式。利用 Tailwind CSS 进行样式设置,并在不依赖 JavaScript 的情况下包含交互式元素。

打开

仿物体导航

一个简单的响应式导航组件,具有拟物设计,采用适合社交媒体应用的相似色彩方案,并支持暗黑主题。

打开