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

双因素认证组件

一个采用粗野主义设计的双因素身份验证组件,使用Tailwind CSS,具有响应效果和深色主题支持。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen p-4 bg-gray-100 dark:bg-gray-800">
    <div class="max-w-sm p-6 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 shadow-md rounded-lg flex flex-col">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-4 text-center">Two-Factor Authentication</h2>
        <p class="text-gray-600 dark:text-gray-400 text-center mb-6">
            Please enter the authentication code sent to your email.
        </p>
        <div class="flex flex-col mb-4">
            <label class="text-gray-600 dark:text-gray-400 text-sm mb-2" for="auth-code">Authentication Code</label>
            <input type="text" id="auth-code" class="p-2 border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 transition duration-200" placeholder="Enter your code">
        </div>
        <button class="w-full p-2 bg-blue-600 text-white font-bold rounded hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-400 transition duration-200">Verify</button>
        <div class="mt-4 text-center">
            <img src="https://picsum.photos/50?random=1" alt="Placeholder" class="rounded-full mb-2">
            <span class="text-gray-600 dark:text-gray-400 text-sm">John Doe</span>
        </div>
    </div>
</div>

相关组件

双因素身份验证组件

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

打开

双重身份验证组件

响应式双因素身份验证组件,具有粗野主义设计、三元配色方案和深色主题支持,适用于仪表板目的。

打开

图像灯箱组件

采用拟物化风格设计的双因素身份验证组件,适用于电子商务应用程序,采用灰度配色方案和复杂的交互元素。它具有响应式设计和使用 Tailwind CSS 的深色模式支持。

打开