구성 요소 머리글 헤더 구성 요소

헤더 구성 요소

레트로/빈티지 디자인의 반응형 헤더 구성 요소로, 80년대/90년대의 어두운 테마 지원과 향수를 불러일으키는 미학을 특징으로 합니다.

미리 보기

HTML 코드

<header class="bg-gray-800 text-white p-5 shadow-md">
    <div class="container mx-auto flex justify-between items-center">
        <div class="flex items-center">
            <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
            <h1 class="ml-3 text-lg font-bold">Retro Header</h1>
        </div>
        <nav class="hidden md:flex space-x-4">
            <a href="#" class="text-lg hover:text-gray-400">Home</a>
            <a href="#" class="text-lg hover:text-gray-400">About</a>
            <a href="#" class="text-lg hover:text-gray-400">Services</a>
            <a href="#" class="text-lg hover:text-gray-400">Contact</a>
        </nav>
        <button class="md:hidden focus:outline-none">
            <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"></path>
            </svg>
        </button>
    </div>
    <div class="mt-4 text-center">
        <img class="mx-auto rounded-lg shadow-lg" src="https://picsum.photos/400/200?random=1" alt="Random Placeholder">
        <p class="mt-2 text-sm text-gray-400">A touch of nostalgia from the 80s/90s.</p>
    </div>
</header>
<style>
@media (prefers-color-scheme: dark) {
    header {
        background-color: #1c1c1c;
    }
    a {
        color: #cbd5e1;
    }
    a:hover {
        color: #f3f4f6;
    }
}
</style>

관련 구성 요소

헤더 구성 요소

다크 모드를 지원하는 반응형 헤더 구성 요소로, 로고, 탐색 링크 및 클릭 유도문안 버튼을 제공합니다. 이 디자인은 눈의 피로를 줄이기 위해 어두운 배경을 사용합니다.

열다

헤더 구성 요소

마이크로 인터랙션과 생생한 색상이 있는 대시보드를 위한 반응형 헤더 구성 요소로, 어두운 테마를 지원합니다.

열다

헤더 구성 요소

포트폴리오를 위한 미니멀하고 평평한 디자인 헤더 구성 요소로, 어두운 테마 지원과 여러 대화형 요소가 있는 반응형 디자인을 특징으로 합니다.

열다