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

360° 观看器组件

专为电子商务设计的响应式 360 度查看器组件,支持深色模式。造型为复古/复古,采用柔和的配色方案。仅使用 HTML 和 Tailwind CSS。

预览

HTML 代码

<div class="retro-vintage bg-gradient-to-br from-pastel-pink to-pastel-blue text-pastel-gray min-h-screen p-8 dark:from-pastel-gray dark:to-pastel-purple dark:text-pastel-pink">

  <!-- Component Container -->
  <div class="max-w-4xl mx-auto bg-white bg-opacity-30 rounded-lg shadow-lg overflow-hidden dark:bg-gray-800 dark:bg-opacity-50">

    <!-- 360 Viewer Placeholder -->
    <div class="relative w-full" style="padding-top: 75%;">
      <!-- This is a placeholder for the 360 viewer. In a real application, a 360 viewer library/script would be initialized here. -->
      <div class="absolute top-0 left-0 w-full h-full flex items-center justify-center bg-pastel-light-gray dark:bg-pastel-dark-blue">
        <p class="text-pastel-dark-gray text-xl font-bold dark:text-pastel-light-gray">360° Viewer Placeholder</p>
      </div>
    </div>

    <!-- Product Info & Controls (placeholder) -->
    <div class="p-6">
      <h2 class="text-2xl font-bold mb-4 dark:text-pastel-light-gray">Product Name</h2>
      <p class="text-pastel-dark-gray mb-4 dark:text-pastel-light-gray">Product description goes here. This is a placeholder.</p>
      
      <!-- Controls Placeholder -->
      <div class="flex justify-center space-x-4">
        <button class="px-4 py-2 bg-pastel-pink text-white rounded hover:bg-pastel-red transition duration-300 dark:bg-pastel-purple dark:hover:bg-pastel-pink">Rotate Left</button>
        <button class="px-4 py-2 bg-pastel-blue text-white rounded hover:bg-pastel-dark-blue transition duration-300 dark:bg-pastel-pink dark:hover:bg-pastel-purple">Rotate Right</button>
      </div>
    </div>

  </div>

</div>

相关组件

PastelBrutalist360AssetViewer

一个简单、响应式的 360° Asset Viewer 组件,具有野兽派设计风格和柔和的粉红色配色方案。它专为仪表板量身定制,具有静态图像占位符(模拟 360° 视图)、非功能性控制按钮和信息显示。它使用 Tailwind CSS 构建,支持深色模式,并通过粗边框和硬偏移阴影展示原始、大胆的美学。

打开

360° 查看器组件

一个使用Tailwind CSS的360°查看器组件,具有响应式设计和暗主题支持。使用CSS进行动画和交互,以营造微交互的感觉。不使用JavaScript。

打开

360°查看器组件

一个使用 Tailwind CSS 设计的极简主义 360° 查看器组件,具有响应式效果和深色主题支持。

打开