Skeuomorphic Pastel Grid Layout Component
Skeuomorphic Pastel Grid Layout for Blog/Content, Simple with Dark Mode
HTML Code
<div class="container mx-auto p-4 dark:bg-gray-800">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Skeuomorphic Card 1 -->
<div class="bg-gradient-to-br from-gray-100 to-gray-300 dark:from-gray-700 dark:to-gray-900 rounded-lg shadow-xl p-6 transform transition perspective-1000 hover:rotate-x-2 hover:rotate-y-2 hover:scale-105 dark:shadow-none dark:border dark:border-gray-700">
<div class="bg-white dark:bg-gray-600 rounded-md p-4 shadow-inner dark:shadow-none">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-100 mb-2">Yet Another Blog Post Title</h2>
<p class="text-gray-600 dark:text-gray-300 text-sm">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<div class="flex items-center mt-4">
<img class="w-10 h-10 rounded-full mr-4 border-2 border-white dark:border-gray-600 shadow-md" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar">
<div class="text-sm">
<p class="text-gray-900 dark:text-gray-200 leading-none">John Doe</p>
<p class="text-gray-600 dark:text-gray-400">Aug 18, 2024</p>
</div>
</div>
</div>
<!-- Skeuomorphic Card 2 -->
<div class="bg-gradient-to-br from-gray-100 to-gray-300 dark:from-gray-700 dark:to-gray-900 rounded-lg shadow-xl p-6 transform transition perspective-1000 hover:rotate-x-2 hover:rotate-y-2 hover:scale-105 dark:shadow-none dark:border dark:border-gray-700">
<div class="bg-white dark:bg-gray-600 rounded-md p-4 shadow-inner dark:shadow-none">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-100 mb-2">Another Blog Post Title</h2>
<p class="text-gray-600 dark:text-gray-300 text-sm">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
<div class="flex items-center mt-4">
<img class="w-10 h-10 rounded-full mr-4 border-2 border-white dark:border-gray-600 shadow-md" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar">
<div class="text-sm">
<p class="text-gray-900 dark:text-gray-200 leading-none">Jane Smith</p>
<p class="text-gray-600 dark:text-gray-400">Aug 17, 2024</p>
</div>
</div>
</div>
<!-- Skeuomorphic Card 3 -->
<div class="bg-gradient-to-br from-gray-100 to-gray-300 dark:from-gray-700 dark:to-gray-900 rounded-lg shadow-xl p-6 transform transition perspective-1000 hover:rotate-x-2 hover:rotate-y-2 hover:scale-105 dark:shadow-none dark:border dark:border-gray-700">
<div class="bg-white dark:bg-gray-600 rounded-md p-4 shadow-inner dark:shadow-none">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-100 mb-2">A Different Blog Post</h2>
<p class="text-gray-600 dark:text-gray-300 text-sm">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
</div>
<div class="flex items-center mt-4">
<img class="w-10 h-10 rounded-full mr-4 border-2 border-white dark:border-gray-600 shadow-md" src="https://randomuser.me/api/portraits/men/51.jpg" alt="Avatar">
<div class="text-sm">
<p class="text-gray-900 dark:text-gray-200 leading-none">Peter Jones</p>
<p class="text-gray-600 dark:text-gray-400">Aug 16, 2024</p>
</div>
</div>
</div>
</div>
</div>
Related Components
Glassmorphism Grid Layout Component
Glassmorphism Grid Layout Component with responsive and dark theme support
Grid Layout Component
A responsive grid layout component with a retro/vintage design, featuring nostalgic 80s/90s aesthetics. The component includes placeholder images and avatars with support for dark mode.