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

仿生媒体嵌入组件

一个响应式媒体嵌入组件,具有拟物化设计,相近的色彩方案和适度复杂性,适用于商业网站。包括使用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>

相关组件

媒体嵌入组件

一个响应式媒体嵌入组件,支持暗主题,适用于博客/内容网站,遵循材料设计原则,采用三元色调和适度复杂性。包括一个嵌入视频占位符和相关文章链接。

打开

复古媒体嵌入组件

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

打开

媒体嵌入组件

响应式媒体嵌入组件,支持深色主题、复杂布局和互补配色方案,专为仪表板设计。

打开