组件 资本 复古地球色调弹窗

复古地球色调弹窗

用于仪表板的复古/老式模态组件,采用大地色调,具有暗模式和响应式设计。

预览

HTML 代码

<div class="fixed inset-0 bg-gray-900 bg-opacity-50 overflow-y-auto h-full w-full dark:bg-gray-800 dark:bg-opacity-75">
  <div class="relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-stone-100 dark:bg-stone-700">
    <div class="mt-3 text-center">
      <div
        class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-emerald-100 dark:bg-emerald-700"
      >
        <svg
          class="h-6 w-6 text-emerald-600 dark:text-emerald-200"
          fill="none"
          stroke="currentColor"
          viewBox="0 0 24 24"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path
            stroke-linecap="round"
            stroke-linejoin="round"
            stroke-width="2"
            d="M5 13l4 4L19 7"
          ></path>
        </svg>
      </div>
      <h3
        class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100"
      >
        Dashboard Item Details
      </h3>
      <div class="mt-2 px-7 py-3">
        <p class="text-sm text-gray-500 dark:text-gray-300">
          Detailed information about the selected dashboard item. This is a placeholder for dynamic content.
        </p>
      </div>
      <div class="items-center px-4 py-3">
        <button
          id="ok-btn"
          class="px-4 py-2 bg-emerald-500 text-white text-base font-medium rounded-md w-full shadow-sm hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-300 dark:focus:ring-emerald-800"
        >
          Close
        </button>
      </div>
    </div>
  </div>
</div>

相关组件

复古博客模态

一个复古风格的模态组件,适用于博客内容,特色是互补的配色方案,适度复杂的互动元素,响应式设计,并支持深色模式。未使用JavaScript,仅依赖HTML和Tailwind CSS类。图片来源于picsum.photos,头像来源于randomuser.me。

打开

模态组件

一个响应式模态组件,采用微交互和三元配色方案设计,适用于社交媒体界面。具有用户交互时的动画效果,并使用Tailwind CSS提供暗主题支持。

打开

黑暗模式模态组件

一个简单且响应式的暗黑模式模态组件,设计用于阅读和内容消费。它具有互补色彩方案和极简布局,适合博客或内容驱动的网站。

打开