세션 시간 초과 경고 구성 요소 - Neumorphism Candy
뉴모피즘 디자인 스타일을 가진 반응형 세션 시간 초과 경고 구성 요소로, candy/sweet 색 구성표를 사용합니다. 기능에는 다크 모드 지원 및 패션/뷰티 브랜드를 위한 카운트다운 타이머가 포함됩니다.
HTML 코드
<div class="flex items-center justify-center min-h-screen bg-pink-100 dark:bg-gray-900 p-4 font-sans">
<div class="w-full max-w-sm rounded-3xl shadow-xl p-8 bg-gradient-to-br from-pink-200 to-purple-200 dark:from-gray-700 dark:to-gray-800
flex flex-col items-center justify-center
transform transition-all duration-300 ease-in-out
dark:border dark:border-gray-600
shadow-[10px_10px_20px_#bebebe,-10px_-10px_20px_#ffffff] dark:shadow-[10px_10px_20px_#1a1a1a,-10px_-10px_20px_#333333]">
<div class="inline-flex items-center justify-center w-20 h-20 rounded-full bg-gradient-to-br from-pink-300 to-purple-300 dark:from-indigo-600 dark:to-purple-600
shadow-lg transition-transform duration-300 ease-in-out transform scale-95 hover:scale-100
shadow-[inset_5px_5px_10px_#9f7aea,inset_-5px_-5px_10px_#ff99d9] dark:shadow-[inset_5px_5px_10px_#5e34b7,inset_-5px_-5px_10px_#2c2c2c]">
<svg class="w-10 h-10 text-white dark:text-gray-200" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.487 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path>
</svg>
</div>
<h3 class="mt-6 mb-2 text-2xl font-bold text-pink-700 dark:text-pink-300 text-center">
Session Timeout
</h3>
<p class="text-center text-gray-700 dark:text-gray-400 text-sm mb-6 max-w-xs">
Your session is about to expire due to inactivity. Save your work or you will be logged out in:
</p>
<div class="relative w-36 h-12 rounded-full bg-gradient-to-br from-pink-300 to-purple-300 dark:from-gray-600 dark:to-gray-700
shadow-[inset_5px_5px_10px_#9f7aea,inset_-5px_-5px_10px_#ff99d9] dark:shadow-[inset_5px_5px_10px_#4a4a4a,inset_-5px_-5px_10px_#2c2c2c]
flex items-center justify-center mb-8 transition-all duration-300 ease-in-out">
<span class="text-3xl font-extrabold text-white dark:text-white" id="countdown">00:59</span>
</div>
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4 w-full justify-center">
<button class="flex-1 py-3 px-6 rounded-3xl font-semibold
bg-gradient-to-br from-purple-400 to-indigo-500 dark:from-purple-700 dark:to-indigo-800
text-white shadow-md
hover:from-purple-500 hover:to-indigo-600 dark:hover:from-purple-800 dark:hover:to-indigo-900
active:shadow-inner active:from-purple-300 active:to-indigo-400 dark:active:from-purple-600 dark:active:to-indigo-700
transition-all duration-200 ease-in-out
shadow-[5px_5px_10px_#bebebe,-5px_-5px_10px_#ffffff] dark:shadow-[5px_5px_10px_#1a1a1a,-5px_-5px_10px_#333333]">
Stay Logged In
</button>
<button class="flex-1 py-3 px-6 rounded-3xl font-semibold
bg-gradient-to-br from-pink-400 to-rose-500 dark:from-pink-700 dark:to-rose-800
text-white shadow-md
hover:from-pink-500 hover:to-rose-600 dark:hover:from-pink-800 dark:hover:to-rose-900
active:shadow-inner active:from-pink-300 active:to-rose-400 dark:active:from-pink-600 dark:active:to-rose-700
transition-all duration-200 ease-in-out
shadow-[5px_5px_10px_#bebebe,-5px_-5px_10px_#ffffff] dark:shadow-[5px_5px_10px_#1a1a1a,-5px_-5px_10px_#333333]">
Log Out
</button>
</div>
</div>
</div>
관련 구성 요소
세션 시간 초과 경고
어두운 테마를 지원하는 반응형 세션 시간 초과 경고 구성 요소로, 파스텔 색상을 사용하여 미니멀리스트/플랫 미학으로 설계되었습니다. 명확한 타이포그래피와 사용자 상호 작용을 위한 미묘한 시각적 단서가 있는 깔끔한 레이아웃이 특징이며 대시보드 환경에 적합합니다.
Session Timeout Alert 구성 요소
매력적인 애니메이션을 트리거하는 세션 시간 초과 경고 구성 요소입니다. 파스텔 색 구성표와 어두운 테마 지원이 있는 대시보드에 적합한 반응형 디자인이 특징입니다. 여기에는 사용자가 세션을 연장하거나 로그아웃할 수 있는 대화형 요소가 포함되어 있습니다.
Session Timeout Alert 구성 요소
정부/공공 서비스 웹 사이트를 위한 복잡하고 반응이 빠른 세션 시간 초과 경고 구성 요소로, 멋진 뉴트럴 컬러와 함께 유기적/자연에서 영감을 받은 디자인이 특징입니다. 카운트다운 타이머, 확장 또는 로그아웃 옵션, 완전한 다크 모드 지원이 포함됩니다.