组件 资本 社交媒体帖子模态

社交媒体帖子模态

一个简单、响应迅速、受 Material Design 启发的模态组件,具有相似的配色方案,适用于社交媒体应用程序。支持深色主题。

预览

HTML 代码


<div class="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full flex justify-center items-center">
  <div class="relative p-5 border w-96 shadow-lg rounded-md bg-white dark:bg-gray-800">
    <div class="mt-3 text-center">
      <h3 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">Post Created!</h3>
      <div class="mt-2 px-7 py-3">
        <p class="text-sm text-gray-500 dark:text-gray-400">Your post has been successfully shared with your followers.</p>
        <img class="mt-4 rounded-md" src="https://picsum.photos/400/200" alt="Placeholder image for social media post">
      </div>
      <div class="items-center px-4 py-3">
        <button id="ok-btn" class="px-4 py-2 bg-blue-500 text-white text-base font-medium rounded-md w-full shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-blue-700 dark:hover:bg-blue-900">Awesome!</button>
      </div>
    </div>
  </div>
</div>

相关组件

Paper_Print_Inspired_Autumn_Modal_Component

一个复杂的响应式模态组件,灵感来自纸张和印刷材料,以秋天的色彩为特色。它专为教育平台而设计,包括深色模式支持和语义 HTML。

打开

拟物化自然风格模态组件

一个复杂的响应式模态组件,采用拟物化设计,地球色调配色方案,并支持黑暗主题,适合用作作品集。具有多个互动元素,无需JavaScript。

打开

材料设计模态框

一个采用材料设计风格的模态组件,具有响应式设计和黑暗主题支持。包含模态覆盖、带有卡片外观的模态容器和关闭按钮。未包含JavaScript。

打开