组件 页眉 粗犷主义头部组件

粗犷主义头部组件

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

预览

HTML 代码

<header class="bg-gray-900 text-white p-6">
    <div class="flex justify-between items-center">
        <div class="flex items-center space-x-4">
            <img src="https://picsum.photos/50" alt="Logo" class="w-16 h-16 rounded-full border-4 border-yellow-500">
            <h1 class="text-3xl font-bold">Brutalist Header</h1>
        </div>
        <nav class="flex space-x-6">
            <a href="#" class="text-yellow-300 hover:underline">Home</a>
            <a href="#" class="text-yellow-300 hover:underline">About</a>
            <a href="#" class="text-yellow-300 hover:underline">Services</a>
            <a href="#" class="text-yellow-300 hover:underline">Contact</a>
        </nav>
    </div>
    <div class="mt-4 pt-4 border-t border-yellow-500 flex flex-col space-y-2">
        <h2 class="text-xl font-bold">Welcome to the Brutalist World</h2>
        <p class="text-sm">This is a header component that embodies the raw and bold aesthetics of Brutalism.</p>
    </div>
</header>

<style>
    @media (prefers-color-scheme: dark) {
        header {
            background-color: #1c1917;
            color: #f9fafb;
        }
        a {
            color: #fbbf24;
        }
    }
</style>

相关组件

材料设计商业头部

灵感来自Material Design的简单头部组件,配有互补色彩方案,适用于商业网站。响应式设计,支持深色主题。

打开

头部组件

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

打开

复杂仪表盘头部

一个复杂的响应式头部组件,具有3D设计元素,采用大地色调,专为仪表板设计。支持暗黑主题,使用Tailwind CSS,并使用picsum.photos和randomuser.me作为演示图片/头像。

打开