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.
HTML Code
<div class="max-w-md mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 mt-10">
<h2 class="text-center text-2xl font-bold text-brown-700 dark:text-brown-300 mb-4">Two-Factor Authentication</h2>
<p class="text-gray-700 dark:text-gray-300 text-center mb-6">Secure your account with an extra layer of security.</p>
<div class="flex justify-center mb-4">
<img src="https://picsum.photos/100/100" alt="Auth Image" class="rounded-full shadow-md">
</div>
<div class="mb-4">
<label class="block text-gray-700 dark:text-gray-300 mb-2" for="auth-code">Authentication Code</label>
<input type="text" id="auth-code" placeholder="Enter your code" class="w-full p-2 border border-gray-300 rounded-md dark:bg-gray-700 dark:border-gray-600 dark:text-gray-200">
</div>
<div class="flex justify-center">
<button class="bg-brown-600 text-white font-bold py-2 px-4 rounded hover:bg-brown-500 dark:bg-brown-400 dark:hover:bg-brown-300">Verify</button>
</div>
</div>
Related Components
Two-Factor Authentication Component
A Two-Factor Authentication Component designed with skeuomorphic style, suitable for e-commerce applications, utilizing a grayscale color scheme and complex interactive elements. It features responsive design and dark mode support using Tailwind CSS.
Two-Factor Authentication Component
A two-factor authentication component with a vibrant, simple design. Features microinteractions like subtle button animations and input field transitions. Responsive with dark mode support. Designed for portfolios.
Two-Factor Authentication Component
A simple two-factor authentication component featuring a vibrant color scheme and 3D design elements suitable for business websites.