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

密码重置组件

一个简单的密码重置组件,使用 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>

相关组件

密码重置组件

一个具有Neumorphism设计、支持暗黑模式且不使用JavaScript的响应式密码重置组件。

打开

密码重置组件 - Retro/Vibrant Dashboard

复古风格的密码重置组件,色彩鲜艳,适用于仪表板。它具有响应式设计和使用 Tailwind CSS 的深色主题支持。该设计唤起了 80 年代/90 年代的美学。

打开

密码重置组件

一个极简和扁平设计的密码重置组件,采用自然色调,响应式设计,并支持暗主题,旨在为博客内容量身定制。

打开