エラーメッセージコンポーネント
Tailwind CSSを使用したダークモードをサポートするソーシャルメディアのエラーメッセージコンポーネント。
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>
関連コンポーネント
エラーメッセージコンポーネント
ダッシュボード用のglassmorphismスタイルのエラーメッセージコンポーネントで、すりガラス効果、補色、およびデータの視覚化とコントロールパネルに適した複雑なインタラクティブデザインが特徴です。
Retro_Vintage_Error_Message_Rainbow_Gradient
教育プラットフォーム向けの複雑なレトロ/ビンテージをテーマにしたエラーメッセージコンポーネントで、虹色のグラデーションの背景と80年代/90年代の美学が特徴で、ダークモードのサポートにより完全にレスポンシブです。
不動産エラーメッセージ
不動産プラットフォーム向けに設計されたプロフェッショナルでクリーンなエラーメッセージコンポーネントで、単色の配色、完全な応答性、およびダークモードのサポートを特長としています。