组件 布局组件 布局组件组件

布局组件组件

一个响应式作品集布局组件,采用复古/老式设计美学,利用相似的颜色方案,设计为中等复杂性,具有展示工作或产品的交互功能。

预览

HTML 代码

<div class="min-h-screen bg-gray-800 text-white p-6">
    <header class="mb-6">
        <h1 class="text-4xl font-bold text-center">My Retro Portfolio</h1>
    </header>
    <main class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
        <div class="bg-gray-700 p-4 rounded-lg shadow-lg transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/300/200?random=1" alt="Portfolio Item 1" class="w-full h-48 object-cover rounded-md">
            <h2 class="mt-2 text-xl font-semibold">Project Title 1</h2>
            <p class="text-gray-300">Description of the project showcasing the retro design style.</p>
        </div>
        <div class="bg-gray-700 p-4 rounded-lg shadow-lg transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/300/200?random=2" alt="Portfolio Item 2" class="w-full h-48 object-cover rounded-md">
            <h2 class="mt-2 text-xl font-semibold">Project Title 2</h2>
            <p class="text-gray-300">Description of the project highlighting nostalgic elements from the past eras.</p>
        </div>
        <div class="bg-gray-700 p-4 rounded-lg shadow-lg transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/300/200?random=3" alt="Portfolio Item 3" class="w-full h-48 object-cover rounded-md">
            <h2 class="mt-2 text-xl font-semibold">Project Title 3</h2>
            <p class="text-gray-300">Description of the project with a vintage flair and interactive features.</p>
        </div>
        <div class="bg-gray-700 p-4 rounded-lg shadow-lg transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/300/200?random=4" alt="Portfolio Item 4" class="w-full h-48 object-cover rounded-md">
            <h2 class="mt-2 text-xl font-semibold">Project Title 4</h2>
            <p class="text-gray-300">Snapshot of the work that resonates with the audience's nostalgia.</p>
        </div>
        <div class="bg-gray-700 p-4 rounded-lg shadow-lg transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/300/200?random=5" alt="Portfolio Item 5" class="w-full h-48 object-cover rounded-md">
            <h2 class="mt-2 text-xl font-semibold">Project Title 5</h2>
            <p class="text-gray-300">Work details that emphasize the vintage aesthetics of the project.</p>
        </div>
        <div class="bg-gray-700 p-4 rounded-lg shadow-lg transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/300/200?random=6" alt="Portfolio Item 6" class="w-full h-48 object-cover rounded-md">
            <h2 class="mt-2 text-xl font-semibold">Project Title 6</h2>
            <p class="text-gray-300">Project insights with a nostalgic touch to engage viewers.</p>
        </div>
    </main>
    <footer class="mt-6 text-center">
        <h3 class="text-lg font-medium">About Me</h3>
        <div class="flex justify-center mt-2">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="rounded-full w-16 h-16 border-2 border-gray-500">
        </div>
        <p class="mt-2">Check out my work and get in touch!</p>
    </footer>
</div>

相关组件

带有渐变侧边栏的博客布局

一个响应式博客布局组件,具有主要内容区域和渐变侧边栏,具有微妙的柔和颜色、平滑过渡和完整的深色模式支持。专为各种屏幕尺寸上的内容消费而设计。

打开

Dashboard Layout 组件

具有 Material Design 美学的响应式仪表板布局,包括侧边栏、标题和主要内容区域。它支持深色模式并使用互补色实现平衡的外观。复杂性适中,仅通过 CSS 和 Tailwind 类实现类似交互式的功能。

打开

3D布局组件

响应式 3D Design 社交媒体布局组件,具有灰度配色方案。适用于社交网络界面。

打开