Two-Factor Authentication Component
A simple two-factor authentication component featuring a vibrant color scheme and 3D design elements suitable for business websites.
HTML Code
<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 shadow-2xl rounded-lg p-8 transform hover:scale-105 transition-transform duration-300 ease-in-out">
<h2 class="text-2xl font-bold text-center text-blue-600 dark:text-blue-400 mb-6">Two-Factor Authentication</h2>
<p class="text-center text-gray-600 dark:text-gray-300 mb-4">Please enter the verification code sent to your email:</p>
<form class="mt-4">
<input type="text" placeholder="Verification Code" class="w-full p-2 border border-gray-300 dark:border-gray-600 rounded-lg mb-6 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400" />
<button type="submit" class="w-full bg-blue-600 dark:bg-blue-500 text-white font-semibold py-2 rounded-lg shadow hover:bg-blue-700 dark:hover:bg-blue-400 transition duration-200 ease-in-out">Verify</button>
</form>
<div class="flex justify-between mt-6">
<a href="#" class="text-blue-600 dark:text-blue-400 hover:underline">Resend Code</a>
<a href="#" class="text-blue-600 dark:text-blue-400 hover:underline">Need Help?</a>
</div>
</div>
</div>
Related Components
Two-Factor Authentication Component
Two-factor authentication component styled with an Art Deco aesthetic, featuring geometric patterns and a forest green color palette, suitable for social media applications. Fully responsive with dark mode support.
Two-Factor Authentication Component
A complex, responsive Two-Factor Authentication (2FA) component designed for finance/banking applications, featuring a dark mode UI with a grayscale color scheme. It includes input fields for a code, a resend option, and an explanation of 2FA.
Two-Factor Authentication Component
A Two-Factor Authentication component designed with engaging microinteractions and a complementary color scheme. It is responsive and supports dark mode, suitable for showcasing work or products in a portfolio.