HTML 코드
<div class="flex items-center justify-center h-screen bg-gray-900">
<div class="bg-gray-800 p-8 rounded-lg shadow-lg max-w-md w-full">
<div class="flex items-center justify-between mb-4">
<h2 class="text-2xl font-bold text-white">Error</h2>
<button class="text-gray-400 hover:text-white focus:outline-none">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
<div class="text-gray-300 mb-6">
<p>Oops! Something went wrong. Please try again later.</p>
<ul class="mt-4 list-disc list-inside">
<li>Check your internet connection.</li>
<li>Ensure you have the latest version of the app.</li>
<li>Contact support if the issue persists.</li>
</ul>
</div>
<div class="flex justify-end">
<button class="bg-gray-700 hover:bg-gray-600 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
Got it
</button>
</div>
</div>
</div>
관련 구성 요소
오류 메시지 구성 요소
Tailwind CSS를 사용하여 잔인함 스타일로 설계된 반응형 오류 메시지 구성 요소로, 고대비, 특이한 레이아웃 및 다크 모드 지원을 특징으로 합니다.
오류 메시지 구성 요소
오류 메시지 마이크로 인터랙션, 그레이스케일 색 구성표, 복잡한 인터페이스, 반응형 디자인 및 어두운 테마 지원이 있는 소셜 미디어용 구성 요소입니다.