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

成功消息组件

一个 3D 设计风格的成功消息组件,具备响应效果和暗黑主题支持,并提供图像和头像的占位符。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 shadow-lg rounded-lg p-6 max-w-md w-full transform transition-transform hover:scale-105">
        <div class="flex items-center space-x-4">
            <img src="https://picsum.photos/60/60" alt="Avatar" class="w-14 h-14 rounded-full shadow-md">
            <div class="flex-1">
                <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Success!</h2>
                <p class="text-gray-600 dark:text-gray-300">Your operation was completed successfully.</p>
            </div>
        </div>
        <div class="mt-4 space-x-2">
            <a href="#" class="inline-block px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md shadow hover:bg-blue-500 transition duration-300">Okay</a>
            <a href="#" class="inline-block px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-200 dark:bg-gray-700 rounded-md shadow hover:bg-gray-300 dark:hover:bg-gray-600 transition duration-300">Dismiss</a>
        </div>
    </div>
</div>

相关组件

成功消息组件

一个响应式成功消息组件,具有 3D 设计元素和黑暗主题支持,利用 Tailwind CSS。

打开

成功消息组件

一个使用Tailwind CSS设计的仿生风格响应式成功消息组件,提供黑暗主题支持。

打开

Success Messages 组件

一个简单、艺术的成功消息组件,采用棕褐色/棕色配色方案,适用于加密货币/区块链应用。具有柔和的水彩风格设计、完全响应能力和深色模式支持。

打开