组件 媒体嵌入 媒体嵌入组件

媒体嵌入组件

一个残酷主义、鲜艳且复杂的媒体嵌入组件,适用于博客,使用响应式设计和 Tailwind CSS 支持暗黑模式。

预览

HTML 代码

<div class="dark:bg-gray-900 dark:text-white p-8">
  <div class="max-w-4xl mx-auto">
    <div class="grid grid-cols-1 md:grid-cols-2 gap-8 border-4 border-black dark:border-white p-4">
      <div class="relative pb-56 md:pb-0 md:h-96">
        <iframe class="absolute top-0 left-0 w-full h-full border-4 border-black dark:border-white" 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 flex-col justify-between">
        <div>
          <h2 class="text-3xl font-bold mb-4 border-b-4 border-black dark:border-white pb-2">Embedded Media Title</h2>
          <p class="mb-4">This is a description of the embedded media. It is intentionally a bit rough around the edges to fit the brutalist style. The vibrant colors and bold borders create a sense of energy and excitement.</p>
          <div class="flex items-center mb-4">
            <img class="w-12 h-12 rounded-full mr-4 border-4 border-black dark:border-white" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Author Avatar">
            <div>
              <p class="font-bold">Author Name</p>
              <p class="text-sm">Date Published</p>
            </div>
          </div>
        </div>
        <div class="flex justify-end">
          <button class="bg-red-500 text-white px-6 py-3 border-4 border-black dark:border-white font-bold text-lg hover:bg-red-700">Watch Now</button>
        </div>
      </div>
    </div>
  </div>
</div>

相关组件

拟物化媒体嵌入组件

适用于商业网站的中构媒体嵌入组件,具有响应式设计和使用互补色的深色主题支持。

打开

媒体嵌入组件

一个媒体嵌入组件,具有3D设计风格,营造深度和吸引力,具有响应式效果和暗黑模式支持。

打开

媒体嵌入组件

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

打开