360° 查看器组件
一个复古/怀旧风格的360°查看器组件,用于展示作品或产品,使用Tailwind CSS设计,具有复杂的界面,包含多个交互元素并支持暗模式.
HTML 代码
<div class="bg-gray-800 dark:bg-gray-900 p-6 rounded-lg max-w-4xl mx-auto">
<h2 class="text-2xl font-bold text-white mb-4 text-center">360° Viewer</h2>
<div class="relative w-full h-64 overflow-hidden rounded-lg shadow-lg">
<img src="https://picsum.photos/600/400" alt="360 Product View" class="w-full h-full object-cover transition-transform transform hover:scale-105" />
</div>
<div class="mt-6 flex justify-center space-x-4">
<button class="bg-purple-500 dark:bg-purple-700 text-white py-2 px-4 rounded-md hover:bg-purple-600 dark:hover:bg-purple-600">Rotate Left</button>
<button class="bg-purple-500 dark:bg-purple-700 text-white py-2 px-4 rounded-md hover:bg-purple-600 dark:hover:bg-purple-600">Rotate Right</button>
</div>
<div class="mt-8 bg-gray-700 dark:bg-gray-800 p-4 rounded-md">
<h3 class="text-lg font-semibold text-white">Product Details:</h3>
<p class="text-gray-300 dark:text-gray-200 mt-2">Explore this item and check out its unique features and craftsmanship.</p>
</div>
<div class="mt-6 bg-gray-700 dark:bg-gray-800 p-4 rounded-md">
<h3 class="text-lg font-semibold text-white">Team Members:</h3>
<div class="flex space-x-4">
<img src="https://randomuser.me/api/portraits/men/31.jpg" alt="Avatar" class="w-12 h-12 rounded-full border-2 border-purple-500" />
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar" class="w-12 h-12 rounded-full border-2 border-purple-500" />
<img src="https://randomuser.me/api/portraits/men/22.jpg" alt="Avatar" class="w-12 h-12 rounded-full border-2 border-purple-500" />
</div>
</div>
</div>
相关组件
PastelBrutalist360AssetViewer
一个简单、响应式的 360° Asset Viewer 组件,具有野兽派设计风格和柔和的粉红色配色方案。它专为仪表板量身定制,具有静态图像占位符(模拟 360° 视图)、非功能性控制按钮和信息显示。它使用 Tailwind CSS 构建,支持深色模式,并通过粗边框和硬偏移阴影展示原始、大胆的美学。