Présentation du portefeuille
Il s’agit d’un composant de mise en page réactif simple pour un portefeuille axé sur les micro-interactions avec des couleurs complémentaires, la prise en charge du mode sombre et un minimum d’éléments.
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>
Composants associés
Composant de mise en page 3D
Un composant de mise en page de médias sociaux réactif 3D Design avec une palette de couleurs en niveaux de gris. Convient aux interfaces de réseaux sociaux.
Mise en page du portefeuille en mode sombre
Un composant de mise en page réactif en mode sombre pour les portfolios, avec une palette de couleurs monochromatiques à l’aide de Tailwind CSS. Inclut des espaces réservés pour le contenu et est conçu pour une complexité modérée sans JavaScript.
Composant Composants de mise en page
Une mise en page de composant Web réactive suivant les principes de conception matérielle pour une application de médias sociaux avec prise en charge du thème sombre.