组件 资本 复杂的自然商业模态与微交互

复杂的自然商业模态与微交互

一个复杂、响应迅速、具有微交互的地球色调模态组件,适用于商业网站,支持深色模式。

预览

HTML 代码

<div class="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full flex items-center justify-center">
  <div class="p-8 border w-96 shadow-lg rounded-md bg-white dark:bg-gray-800 transform transition-all duration-500 ease-in-out scale-95 hover:scale-100">
    <div class="text-center">
      <h3 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">Modal Title</h3>
      <div class="mt-2 px-7 py-3">
        <p class="text-sm text-gray-500 dark:text-gray-300">This is a complex modal with various interactive elements and a beautiful earth-toned color scheme, designed for business websites and supports dark mode.</p>
      </div>
      <div class="items-center px-4 py-3">
        <button id="ok-btn" class="px-4 py-2 bg-green-700 text-white text-base font-medium rounded-md shadow-sm hover:bg-green-800 focus:outline-none focus:ring-2 focus:ring-green-500 transition transform duration-150 ease-in-out hover:scale-105">OK</button>
        <button id="cancel-btn" class="ml-3 px-4 py-2 bg-red-700 text-white text-base font-medium rounded-md shadow-sm hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-red-500 transition transform duration-150 ease-in-out hover:scale-105">Cancel</button>
      </div>
    </div>
  </div>
</div>

相关组件

材料设计模态框

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

打开

复古模态组件

一个响应式复古/复古风格的模态组件,使用Tailwind CSS设计,支持暗模式,融入怀旧的80年代/90年代美学。

打开

复古复古模态组件

一个简单的 retro/vintage 模态组件,带有互补的配色方案,用于展示工作或产品,使用 Tailwind CSS 设计。

打开