Neumorphism 등록 양식
Tailwind CSS를 사용하여 어두운 테마를 지원하는 Neumorphism Registration Form Component
HTML 코드
<div class="min-h-screen flex items-center justify-center bg-gray-200 dark:bg-gray-800 p-6">
<div class="max-w-md w-full bg-gray-200 dark:bg-gray-800 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark p-8">
<h2 class="text-2xl font-bold text-center text-gray-700 dark:text-gray-200 mb-8">Register</h2>
<form>
<div class="mb-6">
<label for="username" class="block text-gray-600 dark:text-gray-300 text-sm font-semibold mb-2">Username</label>
<input type="text" id="username" class="w-full px-4 py-2 bg-gray-200 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg focus:outline-none focus:border-blue-400 dark:focus:border-blue-600 shadow-neumorphic-input-light dark:shadow-neumorphic-input-dark text-gray-700 dark:text-gray-200">
</div>
<div class="mb-6">
<label for="email" class="block text-gray-600 dark:text-gray-300 text-sm font-semibold mb-2">Email</label>
<input type="email" id="email" class="w-full px-4 py-2 bg-gray-200 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg focus:outline-none focus:border-blue-400 dark:focus:border-blue-600 shadow-neumorphic-input-light dark:shadow-neumorphic-input-dark text-gray-700 dark:text-gray-200">
</div>
<div class="mb-6">
<label for="password" class="block text-gray-600 dark:text-gray-300 text-sm font-semibold mb-2">Password</label>
<input type="password" id="password" class="w-full px-4 py-2 bg-gray-200 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg focus:outline-none focus:border-blue-400 dark:focus:border-blue-600 shadow-neumorphic-input-light dark:shadow-neumorphic-input-dark text-gray-700 dark:text-gray-200">
</div>
<div class="mb-6">
<label for="confirm-password" class="block text-gray-600 dark:text-gray-300 text-sm font-semibold mb-2">Confirm Password</label>
<input type="password" id="confirm-password" class="w-full px-4 py-2 bg-gray-200 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg focus:outline-none focus:border-blue-400 dark:focus:border-blue-600 shadow-neumorphic-input-light dark:shadow-neumorphic-input-dark text-gray-700 dark:text-gray-200">
</div>
<button type="submit" class="w-full bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg focus:outline-none focus:shadow-outline shadow-neumorphic-button-light dark:shadow-neumorphic-button-dark transform hover:scale-105 transition-transform duration-200 ease-in-out">Register</button>
</form>
<p class="text-center text-gray-600 dark:text-gray-300 text-sm mt-6">Already have an account? <a href="#" class="text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-500">Login here</a>.</p>
</div>
</div>
<style>
.shadow-neumorphic-light {
box-shadow: 7px 7px 14px #a7a7a7, -7px -7px 14px #ffffff;
}
.dark .shadow-neumorphic-dark {
box-shadow: 7px 7px 14px #4d4d4d, -7px -7px 14px #1a1a1a;
}
.shadow-neumorphic-input-light {
box-shadow: inset 5px 5px 10px #a7a7a7, inset -5px -5px 10px #ffffff;
}
.dark .shadow-neumorphic-input-dark {
box-shadow: inset 5px 5px 10px #4d4d4d, inset -5px -5px 10px #1a1a1a;
}
.shadow-neumorphic-button-light {
box-shadow: 5px 5px 10px #a7a7a7, -5px -5px 10px #ffffff;
}
.dark .shadow-neumorphic-button-dark {
box-shadow: 5px 5px 10px #4d4d4d, -5px -5px 10px #1a1a1a;
}
</style>
관련 구성 요소
스큐어모피즘 등록 양식 그레이스케일
포트폴리오용 그레이스케일의 스큐어모픽 등록 양식 구성 요소로, 중간 정도의 복잡성, 반응형 디자인 및 어두운 테마 지원, 자바스크립트 없음. picsum.photos 및 randomuser.me 의 이미지가 사용되었습니다.
스큐어모픽 등록 양식
단색 색 구성표가 있는 스큐어모픽 등록 양식으로, Tailwind CSS를 사용하여 다크 모드 지원 및 응답성을 갖춘 비즈니스/기업용으로 설계되었습니다. 자바스크립트가 없습니다.
Registration Form 구성 요소
Glassmorphism으로 스타일링된 반응형 등록 양식 구성 요소로, 흐림 효과가 있는 젖빛 유리와 같은 반투명 요소를 특징으로 하고 다크 모드를 지원하며 자리 표시자 이미지를 표시합니다.