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

媒体嵌入组件

一个极简和扁平化设计的媒体嵌入组件,采用土色调色方案,适用于商业/企业网站。它是一个中等复杂度组件,具有响应式设计和深色主题支持,使用Tailwind CSS。不包含JavaScript.

预览

HTML 代码



<div class="container mx-auto p-4 bg-gray-100 dark:bg-gray-800 rounded-lg shadow-md">

  <div class="flex flex-col md:flex-row">

    <!-- Media Embed Placeholder -->

    <div class="md:w-2/3 w-full">

      <div class="aspect-w-16 aspect-h-9 bg-gray-300 dark:bg-gray-700 rounded-md overflow-hidden">

        <!-- Placeholder for embedded media (e.g., iframe for YouTube, Vimeo, etc.) -->

        <!-- Replace with your actual embed code -->

        <iframe src="https://www.youtube.com/embed/your-video-id" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen class="w-full h-full"></iframe>

      </div>

    </div>



    <!-- Content Area -->

    <div class="md:w-1/3 w-full md:ml-4 mt-4 md:mt-0">

      <h3 class="text-xl font-semibold text-gray-800 dark:text-white mb-2">Media Title</h3>

      <p class="text-gray-600 dark:text-gray-300 text-sm mb-4">

        A brief description of the embedded media goes here. Provide context or a summary.

      </p>

      <div class="flex items-center text-gray-500 dark:text-gray-400 text-xs">

        <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">

          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />

        </svg>

        <span>Published on: October 26, 2023</span>

      </div>

    </div>



  </div>

</div>

相关组件

媒体嵌入组件

一个媒体嵌入组件,设计有 glassmorphism 效果,具有响应式设计,适用于支持深色主题的商业网站。

打开

拟物化媒体嵌入组件

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

打开

媒体嵌入组件

一个极简的媒体嵌入组件,专为仪表板设计,采用响应式设计并支持暗色主题,使用 Tailwind CSS。

打开