组件 密码重置 密码重置组件

密码重置组件

一个简单的密码重置组件,使用 Material Design 原则设计,采用灰度配色方案。它响应迅速并支持深色模式。

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
    <div class="w-full max-w-md p-6 bg-white rounded-lg shadow-md dark:bg-gray-800">
        <h2 class="text-2xl font-bold text-center text-gray-800 dark:text-gray-200">Reset Password</h2>
        <p class="mt-2 text-center text-gray-600 dark:text-gray-400">Enter your email address and we will send you a link to reset your password.</p>
        <form class="mt-4">
            <div>
                <label class="block text-sm font-medium text-gray-700 dark:text-gray-300">Email Address</label>
                <input type="email" required class="mt-1 block w-full appearance-none rounded-md border border-gray-300 bg-gray-50 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-gray-500 dark:focus:ring-gray-400" placeholder="[email protected]" />
            </div>
            <button type="submit" class="mt-6 w-full py-2 px-4 bg-gray-800 text-white font-semibold rounded hover:bg-gray-700 dark:bg-gray-600 dark:hover:bg-gray-500">Send Reset Link</button>
        </form>
        <div class="mt-4 text-center">
            <a href="#" class="text-sm text-gray-600 dark:text-gray-400 hover:underline">Back to Login</a>
        </div>
    </div>
</div>

相关组件

密码重置组件

专为政府/公共服务设计的复杂密码重置组件,采用干净、简约的排版驱动设计,具有高对比度色彩和完全响应能力,包括深色模式支持。

打开

密码重置组件

用于社交媒体的拟物化密码重置组件,具有相似的配色方案和深色模式支持。

打开

密码重置组件

一个干净、值得信赖的密码重置组件,专为企业/专业新闻和媒体网站设计,具有温暖的中性、响应能力和深色模式支持。

打开