Portfolio Layout
Un semplice componente di layout reattivo per un portfolio incentrato sulle microinterazioni con colori complementari, supporto della modalità scura ed elementi minimi.
Codice HTML
<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>
Componenti correlati
Componente Componenti di layout
Un componente web reattivo progettato con uno stile scheumorfico, caratterizzato da una combinazione di colori monocromatica per siti web aziendali/aziendali. Include elementi interattivi per un'interfaccia ricca e supporta la modalità oscura.
Layout retrò per i social media
Un layout semplice e monocromatico a tema retrò per i social media, con supporto per la modalità oscura.
Componenti di layout
Un componente di layout complesso progettato per i blog e il consumo di contenuti, caratterizzato da microinterazioni e una combinazione di colori complementari. Include vari elementi interattivi e supporta la modalità oscura.