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

媒体嵌入组件

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

预览

HTML 代码

<div class="relative overflow-hidden rounded-lg shadow-lg group bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg dark:bg-gray-800 dark:bg-opacity-10 dark:backdrop-filter dark:backdrop-blur-lg"> <div class="relative w-full overflow-hidden bg-gray-200 rounded-t-lg aspect-w-16 aspect-h-9 group-hover:opacity-75"> <img src="https://picsum.photos/id/237/1000/600" alt="Placeholder image" class="object-cover object-center w-full h-full"> </div> <div class="flex items-center px-5 py-4"> <div class="flex-shrink-0"> <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar"> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900 dark:text-white"> <a href="#" class="hover:underline"> Username </a> </p> <p class="text-xs text-gray-700 dark:text-gray-300"> Posted on March 15, 2023 </p> </div> </div> <div class="p-5"> <h3 class="text-lg font-medium text-gray-900 dark:text-white"> <a href="#"> Title of the Embedded Media </a> </h3> <p class="mt-2 text-sm text-gray-700 dark:text-gray-300"> This is a description of the embedded media, providing some context or details about the content. </p> </div> <div class="flex items-center justify-between px-5 py-3 bg-gray-100 dark:bg-gray-700 dark:bg-opacity-20"> <div class="flex space-x-4"> <span class="text-sm text-gray-700 dark:text-gray-300">Likes: 1.2k</span> <span class="text-sm text-gray-700 dark:text-gray-300">Comments: 350</span> </div> <a href="#" class="text-sm font-medium text-yellow-700 hover:text-yellow-600 dark:text-yellow-500 dark:hover:text-yellow-400"> View More </a> </div> </div>

相关组件

媒体嵌入组件

一个设计用于电子商务的媒体嵌入组件,具有 3D 设计风格、互补色彩方案和支持暗模式的响应式布局。

打开

媒体嵌入组件

一个复古/怀旧的媒体嵌入组件,以80年代和90年代的怀旧设计。它具有响应式样式和使用Tailwind CSS支持的深色模式。

打开

媒体嵌入组件

使用 Skeuomorphism 设计的响应式媒体嵌入组件,使用单色配色方案。它包括一个视频播放器、一个转录部分和社交分享按钮。该设计支持深色模式,并使用 Tailwind CSS 构建。

打开