图像灯箱组件

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

预览

HTML 代码

<div class="min-h-screen bg-gray-100 dark:bg-gray-900 flex items-center justify-center p-5">
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 max-w-md w-full">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-gray-200 mb-4">Two-Factor Authentication</h2>
        <p class="text-gray-600 dark:text-gray-400 mb-6">Please enter the verification code sent to your email to proceed with your purchase.</p>
        <div class="flex items-center mb-4">
            <img class="h-10 w-10 rounded-full border border-gray-300 dark:border-gray-600" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" />
            <div class="ml-4">
                <p class="text-gray-800 dark:text-gray-200 font-semibold">John Doe</p>
                <p class="text-gray-600 dark:text-gray-400 text-sm">[email protected]</p>
            </div>
        </div>
        <label class="block mb-2 text-gray-700 dark:text-gray-300 font-medium" for="verification-code">Verification Code:</label>
        <input type="text" id="verification-code" class="block w-full p-2 border border-gray-300 dark:border-gray-600 rounded-lg outline-none focus:ring focus:ring-gray-400 dark:focus:ring-gray-600 dark:bg-gray-700 dark:text-gray-200" placeholder="Enter your code" required />
        <button class="mt-4 w-full bg-gray-800 dark:bg-gray-200 text-white dark:text-gray-800 rounded-lg py-2 hover:bg-gray-700 dark:hover:bg-gray-300 transition duration-200">Verify</button>
        <div class="text-gray-600 dark:text-gray-400 text-sm text-center mt-4">
            <p>Didn’t receive a code? <a href="#" class="text-gray-800 dark:text-gray-200 font-semibold">Resend</a></p>
        </div>
    </div>
</div>

相关组件

两步验证组件

一个设计有吸引人微交互和互补色彩方案的双因素认证组件。它是响应式的,支持暗模式,适合在作品集展示工作或产品。

打开

双因素身份验证组件

用于社交媒体的拟物化双因素身份验证组件,具有互补色、复杂的 UI、响应式设计和使用 Tailwind CSS 的深色模式支持。

打开

双重身份验证组件

一个极简的双因素身份验证组件,专为具有三元配色方案的产品组合而设计。它具有一个干净的交互式界面,支持深色模式,使用 Tailwind CSS 构建。

打开