Components Two-Factor Authentication Two-Factor Authentication Component

Two-Factor Authentication Component

A minimalist two-factor authentication component with dark theme support using Tailwind CSS.

Preview

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 p-6 rounded-lg shadow-md w-96">
        <h2 class="text-2xl font-semibold text-gray-800 dark:text-gray-200 text-center mb-4">Two-Factor Authentication</h2>
        <p class="text-gray-600 dark:text-gray-400 text-center mb-6">Please enter the code sent to your registered email.</p>
        <div class="flex justify-center mb-4">
            <img class="w-16 h-16 rounded-full border-2 border-gray-300" src="https://randomuser.me/api/portraits/men/5.jpg" alt="avatar">
        </div>
        <div class="mb-4">
            <input type="text" placeholder="Enter Code" class="w-full p-2 border border-gray-300 rounded focus:outline-none focus:ring focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-gray-200" />
        </div>
        <div class="flex justify-between items-center mb-4">
            <button class="w-full bg-blue-500 text-white py-2 rounded hover:bg-blue-400 transition duration-300">Verify</button>
        </div>
        <div class="text-center">
            <p class="text-gray-600 dark:text-gray-400">Didn't receive the code? <a href="#" class="text-blue-500 hover:underline">Resend</a></p>
        </div>
    </div>
</div>

Related Components

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.

Open

Two-Factor Authentication Component

A Two-Factor Authentication Component designed with microinteractions and a pastel color scheme, suitable for showcasing work or products in a portfolio. The component includes multiple interactive elements and responsive design with dark theme support.

Open

Two-Factor Authentication Component

A responsive Two-Factor Authentication component designed with Neumorphism in a vibrant color scheme, suitable for business websites and supporting dark mode with Tailwind CSS.

Open