组件 媒体嵌入 复古媒体嵌入组件

复古媒体嵌入组件

响应式媒体嵌入组件,具有复古/复古设计、鲜艳的色彩、适度的复杂性和深色模式支持,适用于电子商务平台。

预览

HTML 代码

<div class="max-w-sm mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden transition duration-300 ease-in-out transform hover:scale-105">
  <div class="relative">
    <img class="w-full h-48 object-cover object-center" src="https://picsum.photos/seed/retro-media/600/400" alt="Retro media visual">
    <div class="absolute top-0 right-0 bg-yellow-400 text-gray-800 text-xs font-bold px-2 py-1 m-2 rounded-md">Featured</div>
  </div>
  <div class="px-6 py-4">
    <h3 class="font-bold text-xl text-gray-800 dark:text-white mb-2">Awesome Product Title</h3>
    <p class="text-gray-700 dark:text-gray-300 text-base">This is a brief description of the product, highlighting its key features and benefits in a retro style.</p>
  </div>
  <div class="px-6 pt-4 pb-2">
    <span class="inline-block bg-blue-500 rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#retro</span>
    <span class="inline-block bg-green-500 rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#vintage</span>
    <span class="inline-block bg-red-500 rounded-full px-3 py-1 text-sm font-semibold text-white mb-2">#ecommerce</span>
  </div>
  <div class="px-6 py-4 flex justify-between items-center bg-gray-100 dark:bg-gray-700">
    <span class="font-bold text-xl text-gray-900 dark:text-white">$49.99</span>
    <button class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded-full focus:outline-none focus:shadow-outline transition duration-300 ease-in-out">Add to Cart</button>
  </div>
</div>

相关组件

媒体嵌入组件

具备玻璃摩尔风格、类似色彩方案和支持深色模式的响应式媒体嵌入组件,适合内容消费。

打开

媒体嵌入组件

一个使用玻璃态设计的响应式媒体嵌入组件,具有用于内容消费的交互元素。

打开

媒体嵌入组件

适用于博客和内容使用的 Neumorphism 样式的媒体嵌入组件,具有三元配色方案。支持深色模式的响应式设计。

打开