Neumorphism Portfolio Layout
A simple, responsive Neumorphism layout for a portfolio, supporting dark mode.
HTML Code
<div class="min-h-screen bg-gray-200 dark:bg-gray-800 p-8">
<div class="container mx-auto">
<!-- Header -->
<header class="p-6 mb-8 bg-gray-300 dark:bg-gray-700 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark">
<h1 class="text-3xl font-bold text-gray-800 dark:text-white">My Portfolio</h1>
</header>
<!-- Main Content -->
<main class="grid grid-cols-1 md:grid-cols-2 gap-8">
<!-- Project Card -->
<div class="bg-gray-300 dark:bg-gray-700 p-6 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Project Title 1</h2>
<p class="text-gray-700 dark:text-gray-300 mb-4">A brief description of Project 1.</p>
<img src="https://picsum.photos/400/250" alt="Project Image" class="rounded-lg shadow-md mb-4">
<a href="#" class="text-blue-600 dark:text-blue-400 hover:underline">Learn More</a>
</div>
<!-- Project Card -->
<div class="bg-gray-300 dark:bg-gray-700 p-6 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Project Title 2</h2>
<p class="text-gray-700 dark:text-gray-300 mb-4">A brief description of Project 2.</p>
<img src="https://picsum.photos/400/250" alt="Project Image" class="rounded-lg shadow-md mb-4">
<a href="#" class="text-blue-600 dark:text-blue-400 hover:underline">Learn More</a>
</div>
</main>
<!-- Footer -->
<footer class="mt-8 p-6 bg-gray-300 dark:bg-gray-700 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark text-center text-gray-700 dark:text-gray-300">
<p>© 2023 My Portfolio</p>
</footer>
</div>
</div>
<style>
/* Custom Neumorphism Shadows */
.shadow-neumorphic-light {
box-shadow: 7px 7px 15px #a7a7a7, -7px -7px 15px #ffffff;
}
.dark .shadow-neumorphic-dark {
box-shadow: 7px 7px 15px #4a4a4a, -7px -7px 15px #363636;
}
</style>
Related Components
Retro Social Media Layout
A simple, monochromatic retro-themed layout for social media, with support for dark mode.
Layout Components Component
A layout component designed in a skeuomorphic style that mimics real-world counterparts, with responsive elements and dark theme support using Tailwind CSS.
Layout Components Component
A responsive portfolio layout component styled with a retro/vintage design aesthetic, utilizing an analogous color scheme and designed for medium complexity with interactive features for showcasing work or products.