一个响应式的双因素身份验证组件,使用Tailwind CSS,支持暗黑主题。特点是极简/扁平化设计,单色配色方案,复杂布局,具有多个适合电子商务的交互元素.
<div class="min-h-screen bg-gray-100 dark:bg-gray-900 flex items-center justify-center p-4"> <div class="bg-white dark:bg-gray-800 p-8 rounded-lg shadow-xl w-full max-w-md"> <h2 class="text-2xl font-bold text-center text-gray-800 dark:text-white mb-6">Two-Factor Authentication</h2> <p class="text-center text-gray-600 dark:text-gray-400 mb-6">Please enter the 6-digit code sent to your phone number.</p> <div class="flex justify-center space-x-2 mb-6"> <input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1"> <input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1"> <input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1"> <input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1"> <input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1"> <input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1"> </div> <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 rounded focus:outline-none focus:shadow-outline transition duration-200 dark:bg-blue-700 dark:hover:bg-blue-800"> Verify Code </button> <div class="mt-6 text-center"> <a href="#" class="text-blue-600 hover:underline dark:text-blue-500 text-sm">Resend Code</a> <span class="mx-2 text-gray-400 dark:text-gray-600">|</span> <a href="#" class="text-blue-600 hover:underline dark:text-blue-500 text-sm">Use another method</a> </div> </div> </div>
复古/老式双因素认证组件,具有响应式设计和暗模式支持。
一个极简的双因素身份验证组件,专为具有三元配色方案的产品组合而设计。它具有一个干净的交互式界面,支持深色模式,使用 Tailwind CSS 构建。
一个复杂、响应迅速的双因素身份验证 (2FA) 组件,采用海洋/蓝色渐变和平滑过渡设计,适用于新闻网站和媒体。包括深色模式支持和丰富的交互式界面。