Two-Factor Authentication Component
A minimalist two-factor authentication component designed for a portfolio with a triadic color scheme. It features a clean, interactive interface supporting dark mode, built using Tailwind CSS.
HTML Code
<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>
Related Components
Two-Factor Authentication Component
A complex, dark mode UI two-factor authentication component with muted colors, suitable for event/conference websites. Features input fields for codes, resend and change method options, and a clear call to action.
Two-Factor Authentication Component
Glassmorphism Two-Factor Authentication Component for Dashboard with complementary color scheme and dark mode support.
Two-Factor Authentication Component
A simple and responsive two-factor authentication component designed in a retro style with earth tones, suitable for social media interfaces.