组件 容器 拟物化容器组件

拟物化容器组件

一个响应式的新拟态容器组件,用于展示作品或产品,采用三元色方案和深色主题支持,使用Tailwind CSS.

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-800 p-4">
    <div class="bg-gray-300 dark:bg-gray-900 shadow-neumorphic rounded-lg p-6 w-full max-w-md">
        <div class="flex flex-col items-center justify-center mb-4">
            <img src="https://picsum.photos/200/150" alt="Portfolio Item" class="rounded-lg mb-2 shadow-neumorphic">
            <h2 class="text-lg font-bold text-gray-800 dark:text-gray-200">Portfolio Item Title</h2>
            <p class="text-gray-600 dark:text-gray-400">A brief description of the portfolio item goes here. It showcases the work done and highlights key features.</p>
        </div>
        <div class="flex items-center mt-4">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full shadow-neumorphic">
            <span class="ml-2 text-gray-800 dark:text-gray-200">John Doe</span>
        </div>
        <div class="mt-4">
            <a href="#" class="text-blue-500 dark:text-blue-300 hover:underline transition ease-in-out duration-200">View Details</a>
        </div>
    </div>
</div>

<style>
    .shadow-neumorphic {
        box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.3),
                    -8px -8px 15px rgba(255, 255, 255, 0.5);
    }
</style>

相关组件

玻璃拟态投资组合容器

一个响应式玻璃形态容器组件,专为使用Tailwind CSS的作品集网站量身定制,支持暗模式。它具有磨砂玻璃效果、三元色彩方案、多种互动元素,并使用picsum.photos作为图片和randomuser.me用于头像。

打开

容器组件

一个为电子商务设计的布鲁塔主义风格容器组件,具有响应式布局和黑暗主题支持,使用Tailwind CSS。

打开

容器组件

一个拟物化的作品集容器组件,具有黑暗主题和响应式设计,展示作品和产品,并包含互动元素。

打开