复古360度查看器
复古的 360° 查看组件,具有响应效果和使用 Tailwind CSS 的暗主题支持。使用来自 picsum.photos 的占位符图像。
HTML 代码
<div class="bg-gray-200 dark:bg-gray-800 p-6 rounded-lg">
<div class="relative" style="padding-top: 56.25%;">
<img src="https://picsum.photos/600/400" alt="360 degree view" class="absolute top-0 left-0 w-full h-full object-cover rounded-lg">
<div class="absolute inset-0 flex items-center justify-center">
<div class="bg-white dark:bg-gray-900 text-gray-800 dark:text-gray-200 py-2 px-4 rounded-full text-sm font-bold">
Retro 360° Viewer
</div>
</div>
</div>
<div class="flex justify-center space-x-4 mt-4">
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full text-xs">
< Previous
</button>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full text-xs">
Next >
</button>
</div>
</div>