双重身份验证组件
一个极简的双因素身份验证组件,专为具有三元配色方案的产品组合而设计。它具有一个干净的交互式界面,支持深色模式,使用 Tailwind CSS 构建。
HTML 代码
<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-6">
<div class="w-full max-w-md bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 space-y-4">
<h2 class="text-center text-2xl font-semibold text-gray-800 dark:text-gray-200">Two-Factor Authentication</h2>
<p class="text-center text-gray-600 dark:text-gray-400">To enhance the security of your account, please enter the verification code sent to your email.</p>
<div class="flex flex-col space-y-4">
<input type="text" placeholder="Verification Code" class="border border-gray-300 dark:border-gray-600 rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600" />
<div class="flex items-center justify-between">
<button class="w-full bg-yellow-500 hover:bg-yellow-600 dark:bg-yellow-400 dark:hover:bg-yellow-500 text-white font-semibold rounded-md p-2 transition duration-200">Verify</button>
</div>
<div class="flex justify-between text-sm text-gray-500 dark:text-gray-400">
<a href="#" class="hover:underline">Resend Code</a>
<a href="#" class="hover:underline">Need Help?</a>
</div>
</div>
<div class="flex flex-col items-center space-y-2">
<img src="https://picsum.photos/50/50" alt="Random User" class="rounded-full border-2 border-gray-200 dark:border-gray-600" />
<span class="text-gray-700 dark:text-gray-300">Username: johndoe</span>
</div>
</div>
</div>
相关组件
双因素认证组件
一个复杂的、响应式的、复古主题的 Two-Factor Authentication 组件,用于社交媒体应用程序,具有深色模式和使用 Tailwind CSS 的类似配色方案。包括多个交互式元素,并使用来自 picsum.photos 和 randomuser.me 的图像。