组件 汉堡菜单 3D汉堡菜单组件

3D汉堡菜单组件

响应式汉堡菜单,采用 3D 设计,融合了三色配色方案和复杂的互动元素,适用于商业/企业网站。

预览

HTML 代码

<div class="relative inline-block text-left">
  <!-- Menu Button -->
  <div>
    <button class="flex items-center p-2 rounded-md bg-blue-600 hover:bg-blue-700 text-white dark:bg-gray-800 dark:hover:bg-gray-700 focus:outline-none">
      <span class="sr-only">Open menu</span>
      <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 12h16m-7 6h7" />
      </svg>
    </button>
  </div>

  <!-- Menu Items -->
  <div class="absolute right-0 z-10 mt-2 w-48 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5" role="menu" aria-orientation="vertical" aria-labelledby="options-menu">
    <div class="py-1" role="none">
      <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-blue-600 dark:hover:bg-gray-700">Dashboard</a>
      <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-blue-600 dark:hover:bg-gray-700">Team</a>
      <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-blue-600 dark:hover:bg-gray-700">Projects</a>
      <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-blue-600 dark:hover:bg-gray-700">Calendar</a>
      <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-blue-600 dark:hover:bg-gray-700">Reports</a>
    </div>
  </div>
</div>

<div class="flex justify-center mt-8">
  <h2 class="text-2xl font-bold text-gray-900 dark:text-white">Our Team</h2>
</div>

<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">
  <div class="p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md transform hover:scale-105 transition-transform duration-300">
    <img src="https://picsum.photos/id/1011/200" alt="Team Member" class="rounded-full mb-4">
    <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Alice Smith</h3>
    <p class="text-gray-600 dark:text-gray-400">CEO</p>
  </div>
  <div class="p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md transform hover:scale-105 transition-transform duration-300">
    <img src="https://picsum.photos/id/1012/200" alt="Team Member" class="rounded-full mb-4">
    <h3 class="text-lg font-semibold text-gray-900 dark:text-white">John Doe</h3>
    <p class="text-gray-600 dark:text-gray-400">CTO</p>
  </div>
  <div class="p-6 bg-white dark:bg-gray-800 rounded-lg shadow-md transform hover:scale-105 transition-transform duration-300">
    <img src="https://picsum.photos/id/1013/200" alt="Team Member" class="rounded-full mb-4">
    <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Jane Roe</h3>
    <p class="text-gray-600 dark:text-gray-400">CFO</p>
  </div>
</div>

相关组件

汉堡菜单组件 19

一个以拟物风格设计的骨架汉堡菜单组件,模仿现实世界元素。它具响应能力,并支持使用 Tailwind CSS 的深色模式。

打开

Glassmorphism 汉堡菜单

一个简单、响应式的汉堡菜单组件,具有 Glassmorphism 设计、互补配色方案和深色模式支持。

打开

汉堡菜单组件

一个为社交媒体界面设计的响应式汉堡菜单,具有暗模式主题和互补色方案。

打开