组件 页眉 Retro Vintage Header 组件

Retro Vintage Header 组件

一个响应式标题组件,具有 Retro/Vintage 样式,专为支持深色主题的仪表板量身定制。

预览

HTML 代码

<header class="bg-gradient-to-r from-purple-700 via-pink-500 to-yellow-500 dark:bg-gradient-to-r dark:from-purple-900 dark:via-pink-700 dark:to-yellow-700 p-5">
    <div class="flex justify-between items-center">
        <div class="flex items-center">
            <img src="https://picsum.photos/50" alt="Logo" class="rounded-full mr-3">
            <h1 class="text-white text-3xl font-bold">My Dashboard</h1>
        </div>
        <nav class="space-x-4">
            <a href="#" class="text-white transition duration-300 ease-in-out hover:text-yellow-300">Home</a>
            <a href="#" class="text-white transition duration-300 ease-in-out hover:text-yellow-300">Reports</a>
            <a href="#" class="text-white transition duration-300 ease-in-out hover:text-yellow-300">Settings</a>
        </nav>
    </div>
    <div class="mt-4">
        <input type="text" placeholder="Search..." class="p-2 rounded-md bg-white dark:bg-gray-800 text-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-yellow-500 w-full max-w-md">
    </div>
    <div class="mt-4 flex items-center space-x-3">
        <div class="flex items-center">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="rounded-full h-8 w-8">
            <span class="ml-2 text-white">John Doe</span>
        </div>
        <button class="bg-yellow-500 text-white px-4 py-2 rounded-md hover:bg-yellow-400 transition duration-300">Logout</button>
    </div>
</header>

相关组件

标头组件

一个简单的响应式标题组件,适用于博客或内容网站,具有单色样式和深色模式支持,专注于将鼠标悬停在导航链接上时进行细微的微交互。

打开

头部组件

一个简单的标题组件,采用新拟态风格和鲜艳的颜色,完美适合博客/内容网页。它具有响应式设计的深色模式支持。

打开

页眉组件

一个极简主义的扁平设计头部组件,专为投资组合设计,特色是响应式设计,支持深色主题和多个互动元素。

打开