组件 媒体嵌入 仿生媒体嵌入组件

仿生媒体嵌入组件

一个响应式媒体嵌入组件,具有拟物化设计,相近的色彩方案和适度复杂性,适用于商业网站。包括使用Tailwind CSS支持的暗模式.

预览

HTML 代码

<div class="bg-gray-200 dark:bg-gray-800 p-6 rounded-lg shadow-xl">
  <div class="relative pb-9/16 mb-4">
    <iframe class="absolute inset-0 w-full h-full rounded-md shadow-inner" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>
  <div class="flex items-center mb-4">
    <img class="w-12 h-12 rounded-full mr-4 ring-2 ring-gray-400 dark:ring-gray-600" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar">
    <div>
      <h3 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Skeuomorphic Media Title</h3>
      <p class="text-gray-600 dark:text-gray-400 text-sm">Channel Name</p>
    </div>
  </div>
  <p class="text-gray-700 dark:text-gray-300">
    This is a description of the media content. It provides a brief overview 
    and context for the embedded video or audio. The design features subtle 
    shadows and gradients to mimic a tangible, real-world object.
  </p>
</div>

相关组件

媒体嵌入组件

一个复杂的响应式媒体嵌入组件,用于博客/内容使用,具有有机/自然灵感的设计、宝石色调和深色模式支持。包括视频播放器、文章内容和相关媒体。

打开

媒体嵌入组件

一个响应式媒体嵌入组件,采用拟物化风格,使用大地色调,适合电子商务,并支持暗黑主题。

打开

媒体嵌入组件

一个响应式媒体嵌入组件,具有玻璃摩尔主义设计、土壤色调和暗模式支持,使用Tailwind CSS构建,适用于社交媒体用例。包括磨砂玻璃效果,并使用占位符图像/头像。

打开