Two-Factor Authentication 구성 요소
어두운 테마를 지원하는 Tailwind CSS를 사용하는 반응형 2단계 인증 구성 요소입니다. 미니멀리스트/플랫 디자인, 단색 색 구성표, 전자 상거래에 적합한 여러 인터랙티브 요소가 있는 복잡한 레이아웃이 특징입니다.
HTML 코드
<div class="min-h-screen bg-gray-100 dark:bg-gray-900 flex items-center justify-center p-4">
<div class="bg-white dark:bg-gray-800 p-8 rounded-lg shadow-xl w-full max-w-md">
<h2 class="text-2xl font-bold text-center text-gray-800 dark:text-white mb-6">Two-Factor Authentication</h2>
<p class="text-center text-gray-600 dark:text-gray-400 mb-6">Please enter the 6-digit code sent to your phone number.</p>
<div class="flex justify-center space-x-2 mb-6">
<input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1">
<input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1">
<input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1">
<input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1">
<input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1">
<input type="text" class="w-12 h-12 text-center text-2xl border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white" maxlength="1">
</div>
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 rounded focus:outline-none focus:shadow-outline transition duration-200 dark:bg-blue-700 dark:hover:bg-blue-800">
Verify Code
</button>
<div class="mt-6 text-center">
<a href="#" class="text-blue-600 hover:underline dark:text-blue-500 text-sm">Resend Code</a>
<span class="mx-2 text-gray-400 dark:text-gray-600">|</span>
<a href="#" class="text-blue-600 hover:underline dark:text-blue-500 text-sm">Use another method</a>
</div>
</div>
</div>
관련 구성 요소
Two-Factor Authentication 구성 요소
복잡하고 어두운 모드 UI 2단계 인증 구성 요소로, 이벤트/컨퍼런스 웹 사이트에 적합한 음소거된 색상이 있습니다. 코드에 대한 입력 필드, 재전송 및 메서드 변경 옵션, 명확한 클릭 유도문안이 특징입니다.
Two-Factor Authentication 구성 요소
전자 상거래를 위한 간단하고 반응이 빠른 2단계 인증 구성 요소로, 스큐어모픽 디자인, 트라이어딕 색 구성표 및 어두운 테마 지원을 제공합니다.
Two-Factor Authentication 구성 요소
그라데이션 무지개 액센트가 있는 간단한 산업 테마의 이중 인증 구성 요소로, 비즈니스/기업 웹 사이트에 적합합니다. 반응성 및 다크 모드 지원이 특징입니다.