组件 360° 查看器 360° 查看器组件

360° 查看器组件

一个具备拟物化设计的 360° 观察组件,使用 Tailwind CSS,支持响应效果和暗黑主题。

预览

HTML 代码

<div class="flex flex-col items-center justify-center h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8 max-w-md w-full">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-4 text-center">360° Viewer</h2>
        <div class="relative w-full h-64 bg-gray-200 dark:bg-gray-700 rounded-lg overflow-hidden shadow-lg">
            <img src="https://picsum.photos/600/400" alt="360° View" class="w-full h-full object-cover rotate-360" />
            <div class="absolute top-0 left-0 w-full h-full flex items-center justify-center">
                <div class="p-2 bg-gray-300 dark:bg-gray-600 rounded-full shadow-lg">
                    <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-4 border-white shadow-md" />
                </div>
            </div>
        </div>
        <div class="mt-4 text-center">
            <p class="text-gray-600 dark:text-gray-300">Interact with the 360° view to explore the surroundings.</p>
        </div>
    </div>
</div>

相关组件

360° 查看器组件

一个以野兽派风格设计的360°查看器组件,具有高对比度和不寻常的布局,支持深色主题和响应式设计效果。

打开

360° 查看组件

一个简单的360°查看器组件,采用材料设计风格,具有土壤色调,适用于电子商务环境。它包括响应式设计,支持暗模式,展示来自picsum.photos的图片和来自randomuser.me的头像。

打开

360° 观察者组件

一个极简且响应式的 360° 查看器组件,使用 Tailwind CSS,支持深色模式。

打开