组件 导航栏 Retro/Vintage 社交媒体导航栏

Retro/Vintage 社交媒体导航栏

Retro/Vintage 社交媒体导航栏,具有相似的配色方案、简单的复杂性、响应式和深色主题支持。

预览

HTML 代码

<nav class="bg-gradient-to-r from-purple-700 via-pink-500 to-red-500 p-4 shadow-lg dark:from-purple-900 dark:via-pink-700 dark:to-red-700">
  <div class="container mx-auto flex justify-between items-center">
    <div class="text-white text-2xl font-bold font-retro">SocialFlow</div>
    <div class="space-x-4">
      <a href="#" class="text-white hover:text-gray-200 transition duration-300 font-retro">Feed</a>
      <a href="#" class="text-white hover:text-gray-200 transition duration-300 font-retro">Friends</a>
      <a href="#" class="text-white hover:text-gray-200 transition duration-300 font-retro">Messages</a>
      <a href="#" class="text-white hover:text-gray-200 transition duration-300 font-retro">Profile</a>
    </div>
    <div class="flex items-center space-x-4">
      <button class="text-white focus:outline-none dark:text-gray-300" onclick="document.documentElement.classList.toggle('dark')">
        <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="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9 9 0 008.354-5.646z"></path></svg>
      </button>
    </div>
  </div>
</nav>

<style>
  @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
  .font-retro {
    font-family: 'Press Start 2P', cursive;
  }
</style>

相关组件

3D_Corporate_Blues_Food_Restaurant_Nav

一个复杂的 3D 风格导航栏,适用于食品/餐厅网站,具有企业忧郁和完全响应能力,并支持深色模式。包含徽标、导航链接、搜索栏、用户头像和购物车等元素。

打开

极简导航栏

一个以极简风格设计的响应式导航栏组件,支持深色主题,使用Tailwind CSS。

打开

玻璃态仪表板导航栏

玻璃质感单色复杂仪表板导航栏,使用 Tailwind CSS,响应式并支持暗色主题。

打开