로그인/가입 구성 요소
스큐어모픽 스타일로 설계된 복잡한 로그인/가입 구성 요소로, 대시보드 인터페이스에 그레이스케일 색 구성표를 사용합니다. 여기에는 다양한 대화형 요소가 포함되어 있으며 어두운 테마 지원으로 반응합니다.
HTML 코드
<div class="min-h-screen bg-white dark:bg-gray-800 flex items-center justify-center">
<div class="bg-gray-200 dark:bg-gray-700 rounded-lg shadow-lg p-8 max-w-md w-full">
<h2 class="text-2xl font-bold text-gray-800 dark:text-gray-100 mb-6 text-center">Login / Signup</h2>
<form>
<div class="mb-4">
<label class="block text-gray-700 dark:text-gray-300 mb-1" for="username">Username</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-100 leading-tight focus:outline-none focus:shadow-outline" id="username" type="text" placeholder="Enter your username">
</div>
<div class="mb-4">
<label class="block text-gray-700 dark:text-gray-300 mb-1" for="email">Email</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-100 leading-tight focus:outline-none focus:shadow-outline" id="email" type="email" placeholder="Enter your email">
</div>
<div class="mb-4">
<label class="block text-gray-700 dark:text-gray-300 mb-1" for="password">Password</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-100 leading-tight focus:outline-none focus:shadow-outline" id="password" type="password" placeholder="Enter your password">
</div>
<div class="flex items-center justify-between mb-6">
<div class="flex items-center">
<input type="checkbox" class="mr-2 leading-tight" id="remember">
<label class="text-gray-600 dark:text-gray-300" for="remember">Remember me</label>
</div>
<a class="inline-block align-baseline font-bold text-sm text-gray-600 dark:text-gray-300 hover:text-gray-800" href="#">Forgot Password?</a>
</div>
<div class="flex flex-col">
<button class="bg-gray-800 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline mb-4" type="submit">Login</button>
<button class="bg-gray-600 hover:bg-gray-500 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">Signup</button>
</div>
</form>
<div class="mt-4 text-center">
<p class="text-gray-600 dark:text-gray-300">Or sign in with</p>
<div class="flex justify-center space-x-4 mt-2">
<img class="h-8 w-8 rounded-full" src="https://picsum.photos/seed/pic1/40/40" alt="Avatar">
<img class="h-8 w-8 rounded-full" src="https://picsum.photos/seed/pic2/40/40" alt="Avatar">
<img class="h-8 w-8 rounded-full" src="https://picsum.photos/seed/pic3/40/40" alt="Avatar">
</div>
</div>
</div>
</div>