组件 双重身份验证 双因素认证组件

双因素认证组件

一个极简的双因素认证组件,支持深色主题,使用 Tailwind CSS。

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md w-96">
        <h2 class="text-2xl font-semibold text-gray-800 dark:text-gray-200 text-center mb-4">Two-Factor Authentication</h2>
        <p class="text-gray-600 dark:text-gray-400 text-center mb-6">Please enter the code sent to your registered email.</p>
        <div class="flex justify-center mb-4">
            <img class="w-16 h-16 rounded-full border-2 border-gray-300" src="https://randomuser.me/api/portraits/men/5.jpg" alt="avatar">
        </div>
        <div class="mb-4">
            <input type="text" placeholder="Enter Code" class="w-full p-2 border border-gray-300 rounded focus:outline-none focus:ring focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-gray-200" />
        </div>
        <div class="flex justify-between items-center mb-4">
            <button class="w-full bg-blue-500 text-white py-2 rounded hover:bg-blue-400 transition duration-300">Verify</button>
        </div>
        <div class="text-center">
            <p class="text-gray-600 dark:text-gray-400">Didn't receive the code? <a href="#" class="text-blue-500 hover:underline">Resend</a></p>
        </div>
    </div>
</div>

相关组件

双因素身份验证组件

一个响应式的双因素身份验证组件,使用Tailwind CSS,支持暗黑主题。特点是极简/扁平化设计,单色配色方案,复杂布局,具有多个适合电子商务的交互元素.

打开

双因素认证组件

一个设计有微交互的双因素认证组件,使用 Tailwind CSS 设计,具备响应效果和暗黑主题支持。

打开

双因素认证组件

一个响应式双因素认证组件,采用灰度颜色设计于深色模式,适合博客或内容消费。

打开