Two-Factor Authentication 구성 요소
미니멀한 2단계 인증 구성 요소는 트라이어딕 색 구성표가 있는 포트폴리오를 위해 설계되었습니다. Tailwind CSS를 사용하여 구축된 다크 모드를 지원하는 깔끔한 대화형 인터페이스가 특징입니다.
HTML 코드
<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>