组件 成功消息 成功消息组件

成功消息组件

成功消息组件与暗模式 - 具有响应效果和深色主题支持。无需JavaScript代码。对于暗模式,CSS支持就足够了。

预览

HTML 代码

<div class="flex items-center justify-center h-screen bg-zinc-950">
  <div class="relative px-4 py-3 pr-10 text-teal-500 bg-teal-900 rounded-lg shadow-md" role="alert">
    <strong class="font-bold select-none">Success!</strong>
    <span class="block sm:inline select-none">Your action was successful.</span>
    <span class="absolute top-0 bottom-0 right-0 flex items-center px-4 py-3">
      <svg class="w-6 h-6 fill-current" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
        <title>Close</title>
        <path d="M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15L6.342 6.342a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z" />
      </svg>
    </span>
  </div>
</div>

相关组件

成功消息组件

一个以极简风格显示成功消息的响应式组件,适合展示作品或产品,支持深色主题.

打开

成功消息组件

一个简单干净的成功消息组件,具有响应式设计和深色模式支持.

打开

Success Messages 组件

用于社交媒体的极简/扁平设计成功消息组件,具有浅色柔和的色彩和复杂的响应式布局。

打开