组件 错误消息 错误消息组件

错误消息组件

一个错误消息组件,采用野性主义风格,使用类似色彩方案,适用于社交媒体界面,具有响应式设计和暗黑主题支持。

预览

HTML 代码

<div class="flex flex-col items-center justify-center p-6 bg-gray-800 dark:bg-gray-900 rounded-lg shadow-lg max-w-md mx-auto">
    <h2 class="text-2xl font-extrabold text-white mb-4">Oops! Something went wrong.</h2>
    <p class="text-lg text-gray-300 mb-6">We're sorry, but it seems there was an error processing your request. Please try again later.</p>
    <div class="flex items-center mb-4">
        <img class="w-12 h-12 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
        <div class="flex flex-col">
            <span class="text-gray-200 font-semibold">John Doe</span>
            <span class="text-gray-500 italic">Your Friendly Bot</span>
        </div>
    </div>
    <img class="w-full rounded-lg mb-4" src="https://picsum.photos/400/200" alt="Error Illustration">
    <button class="bg-red-600 hover:bg-red-700 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out">Retry</button>
    <button class="mt-2 bg-gray-600 hover:bg-gray-700 text-white py-2 px-4 rounded transition duration-300 ease-in-out">Contact Support</button>
</div>

相关组件

错误消息组件

一种使用Tailwind CSS设计的简约错误消息组件,特色是响应式效果和黑暗主题支持。

打开

错误信息组件

一个采用野兽派风格、使用 Tailwind CSS 设计的响应式错误消息组件,具有高对比、独特布局和暗模式支持。

打开

错误消息组件

响应式错误消息组件,具有大地色调渐变、平滑过渡和深色模式支持,适用于咨询/服务网站。

打开