内容显示组件

一个用玻璃拟态风格设计的响应式内容展示组件,具有模糊背景和半透明元素,支持深色模式。

预览

HTML 代码

<div class="min-h-screen flex items-center justify-center bg-gray-100 dark:bg-gray-900 p-5">
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 backdrop-filter backdrop-blur-lg bg-opacity-30 border border-gray-200 dark:border-gray-700">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-4">Content Display Title</h2>
        <p class="text-gray-600 dark:text-gray-300 mb-4">This component features a glassmorphism style with blurred background and translucent elements.</p>
        <div class="flex items-center space-x-4 mb-4">
            <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar" class="w-10 h-10 rounded-full">
            <div>
                <h3 class="text-lg font-medium text-gray-800 dark:text-white">User Name</h3>
                <span class="text-sm text-gray-500 dark:text-gray-400">User Title</span>
            </div>
        </div>
        <img src="https://picsum.photos/400/200" alt="Random Image" class="rounded-lg mb-4">
        <button class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded transition duration-200">Read More</button>
    </div>
</div>

相关组件

内容展示组件

一个响应式内容显示组件,专为商业/企业网站设计,支持黑暗模式,配色生动。它包括用户头像、文本内容和图像的部分。

打开

内容显示组件组件

一个简单而生动的内容显示组件,具有微交互、响应式设计和深色主题支持,适用于博客和内容消费。将 picsum.photos 用于图像,将 randomuser.me 用于头像。

打开

内容显示组件

一个3D风格的内容展示组件,展示组合作品或产品,采用灰度色调和响应式设计,包括暗模式支持。

打开