组件 页眉 头部组件

头部组件

一个 Neumorphism 样式的标题组件,用于具有深色主题、响应式设计并包含多个交互式元素的投资组合。

预览

HTML 代码

<header class="bg-gray-100 dark:bg-gray-800 shadow-lg rounded-lg p-6 flex flex-col md:flex-row items-center justify-between space-y-4 md:space-y-0">
    <div class="flex items-center space-x-4">
        <img src="https://picsum.photos/60" alt="Logo" class="h-10 w-10 rounded-full shadow-lg">
        <h1 class="text-2xl font-bold text-gray-900 dark:text-white">My Portfolio</h1>
    </div>
    <nav class="flex space-x-4">
        <a href="#" class="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition duration-200">Home</a>
        <a href="#" class="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition duration-200">About</a>
        <a href="#" class="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition duration-200">Projects</a>
        <a href="#" class="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition duration-200">Contact</a>
    </nav>
    <div class="flex items-center space-x-2">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="h-10 w-10 rounded-full shadow-lg">
        <button class="bg-blue-500 dark:bg-blue-700 text-white font-semibold py-2 px-4 rounded-lg transition duration-200 hover:bg-blue-600 dark:hover:bg-blue-800">Get In Touch</button>
    </div>
</header>

相关组件

复古头部组件

复古/老式头部组件,具有响应效果和深色主题支持。

打开

标头组件

用于社交媒体的简单响应式标头组件,支持深色模式。它具有徽标、搜索栏和用户头像。使用灰度配色方案。

打开

粗犷主义头部组件

一个使用 Tailwind CSS 设计的粗犷大胆的头部组件,具有高对比度和不寻常的布局,适用于明亮和深色主题。

打开