Portfolio Layout
A simple responsive layout component for a portfolio focusing on microinteractions with complementary colors, dark mode support, and minimal elements.
HTML Code
<div class="flex flex-col min-h-screen bg-gradient-to-br from-purple-500 to-pink-500 dark:from-gray-800 dark:to-black">
<!-- Header with microinteraction -->
<header class="w-full px-4 py-3 bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg flex justify-between items-center border-b border-white border-opacity-20 transition duration-300 ease-in-out transform hover:scale-105">
<h1 class="text-xl font-bold text-white">My Portfolio</h1>
<nav>
<ul class="flex space-x-4">
<li><a href="#" class="text-white hover:text-pink-200 transition duration-300 ease-in-out hover:underline">Home</a></li>
<li><a href="#" class="text-white hover:text-pink-200 transition duration-300 ease-in-out hover:underline">Projects</a></li>
<li><a href="#" class="text-white hover:text-pink-200 transition duration-300 ease-in-out hover:underline">Contact</a></li>
</ul>
</nav>
</header>
<!-- Main content area -->
<main class="flex-grow container mx-auto px-4 py-8 text-white">
<section class="text-center mb-12">
<h2 class="text-4xl font-semibold mb-4">Welcome to my portfolio</h2>
<p class="text-lg">Showcasing my work with a touch of interaction.</p>
</section>
<!-- Example Project Card with microinteraction -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-white bg-opacity-5 backdrop-filter backdrop-blur-lg rounded-lg p-6 shadow-lg transition duration-300 ease-in-out transform hover:-translate-y-2">
<h3 class="text-2xl font-bold mb-3">Project One</h3>
<p class="text-white text-opacity-80 mb-4">A brief description of project one.</p>
<img src="https://picsum.photos/seed/project1/400/300" alt="Project One" class="rounded-md mb-4">
<a href="#" class="inline-block bg-white text-purple-700 font-semibold py-2 px-4 rounded hover:bg-purple-200 transition duration-300 ease-in-out">Learn More</a>
</div>
<!-- Repeat for more project cards -->
<div class="bg-white bg-opacity-5 backdrop-filter backdrop-blur-lg rounded-lg p-6 shadow-lg transition duration-300 ease-in-out transform hover:-translate-y-2">
<h3 class="text-2xl font-bold mb-3">Project Two</h3>
<p class="text-white text-opacity-80 mb-4">A brief description of project two.</p>
<img src="https://picsum.photos/seed/project2/400/300" alt="Project Two" class="rounded-md mb-4">
<a href="#" class="inline-block bg-white text-purple-700 font-semibold py-2 px-4 rounded hover:bg-purple-200 transition duration-300 ease-in-out">Learn More</a>
</div>
<div class="bg-white bg-opacity-5 backdrop-filter backdrop-blur-lg rounded-lg p-6 shadow-lg transition duration-300 ease-in-out transform hover:-translate-y-2">
<h3 class="text-2xl font-bold mb-3">Project Three</h3>
<p class="text-white text-opacity-80 mb-4">A brief description of project three.</p>
<img src="https://picsum.photos/seed/project3/400/300" alt="Project Three" class="rounded-md mb-4">
<a href="#" class="inline-block bg-white text-purple-700 font-semibold py-2 px-4 rounded hover:bg-purple-200 transition duration-300 ease-in-out">Learn More</a>
</div>
</div>
</main>
<!-- Footer -->
<footer class="w-full px-4 py-6 text-center text-white text-opacity-80">
<p>© 2023 My Portfolio</p>
</footer>
</div>
Related Components
Minimalist Blog Layout Component
Minimalist Blog Layout Component with Monochromatic Color Scheme for content consumption, responsive and with dark theme support.
Dark Mode Layout Component
A responsive layout component with dark mode support using Tailwind CSS. Features a simple header, content area, and footer. Dark mode is handled by the `dark:` prefix in Tailwind classes.
Layout Component
A responsive blog layout component designed with Material Design principles, using a monochromatic color scheme and supporting dark mode.