コンポーネント エラーメッセージ エラーメッセージコンポーネント - CRM/ビジネスツール

エラーメッセージコンポーネント - CRM/ビジネスツール

CRM/ビジネスツール用に設計された複雑で応答性の高いエラーメッセージコンポーネントで、鮮やかな色とダークモードのサポートを備えた、クリーンでミニマルなスイス/インターナショナルタイポグラフィスタイルが特徴です。

プレビュー

HTMLコード

<div class="p-4 sm:p-6 lg:p-8 min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center font-sans tracking-tight">
  <div class="w-full max-w-2xl bg-white dark:bg-gray-800 rounded-lg shadow-xl overflow-hidden transform transition-all duration-300 ease-in-out hover:scale-[1.01] hover:shadow-2xl">
    <div class="px-6 py-5 sm:px-8 sm:py-6 bg-red-600 dark:bg-red-700 flex items-center justify-between">
      <div class="flex items-center space-x-3">
        <svg class="h-8 w-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
        </svg>
        <h2 class="text-3xl font-extrabold text-white leading-tight">Error Occurred!</h2>
      </div>
      <button type="button" class="text-white opacity-75 hover:opacity-100 transition-opacity duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-red-600 focus:ring-white rounded-full p-1">
        <span class="sr-only">Close alert</span>
        <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
        </svg>
      </button>
    </div>

    <div class="p-6 sm:p-8">
      <div class="space-y-6">
        <p class="text-gray-700 dark:text-gray-300 text-lg sm:text-xl leading-relaxed">
          We're sorry, an unexpected error has prevented us from completing your request. This issue has been logged and our team is investigating.
        </p>
        
        <div class="bg-red-50 dark:bg-red-900/20 border-l-4 border-red-500 p-4 rounded-md shadow-inner">
          <div class="flex">
            <div class="flex-shrink-0">
              <svg class="h-6 w-6 text-red-500" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm-1-8V7a1 1 0 112 0v3a1 1 0 11-2 0zm0 4a1 1 0 102 0 1 1 0 00-2 0z" clip-rule="evenodd" />
              </svg>
            </div>
            <div class="ml-3 flex-1">
              <h3 class="text-lg font-bold text-red-800 dark:text-red-300">Detailed Error Information:</h3>
              <div class="mt-2 text-sm text-red-700 dark:text-red-400 leading-tight space-y-1">
                <p><strong class="font-medium">Error Code:</strong> <span class="font-mono text-gray-900 dark:text-gray-100">CRM-TRANSACTION-FATAL-001</span></p>
                <p><strong class="font-medium">Timestamp:</strong> <span class="font-mono text-gray-900 dark:text-gray-100">2023-10-27T10:30:45Z</span></p>
                <p><strong class="font-medium">Request ID:</strong> <span class="font-mono text-gray-900 dark:text-gray-100">req_aBcDeF123GHIJklMN456</span></p>
              </div>
            </div>
          </div>
        </div>

        <p class="text-gray-600 dark:text-gray-400 text-base sm:text-lg leading-relaxed">
          Please try again in a few moments. If the problem persists, please contact our support team and provide them with the Request ID mentioned above.
        </p>

        <div class="border-t border-gray-200 dark:border-gray-700 pt-4 sm:pt-6">
          <h3 class="text-lg font-semibold text-gray-800 dark:text-gray-200 mb-3">Common Solutions:</h3>
          <ul class="list-disc list-inside text-gray-700 dark:text-gray-300 space-y-2 text-base">
            <li class="flex items-start">
              <div class="text-red-500 flex-shrink-0 mr-2">•</div>
              <span>Check your internet connection and try reloading the page.</span>
            </li>
            <li class="flex items-start">
              <div class="text-red-500 flex-shrink-0 mr-2">•</div>
              <span>Clear your browser's cache and cookies.</span>
            </li>
            <li class="flex items-start">
              <div class="text-red-500 flex-shrink-0 mr-2">•</div>
              <span>Ensure you are using an up-to-date modern web browser.</span>
            </li>
          </ul>
        </div>
      </div>
    </div>

    <div class="px-6 py-4 sm:px-8 sm:py-5 bg-gray-50 dark:bg-gray-800/50 border-t border-gray-100 dark:border-gray-700 flex flex-col sm:flex-row justify-end sm:items-center space-y-3 sm:space-y-0 sm:space-x-3">
      <a href="#" class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-red-700 dark:text-red-300 bg-red-100 dark:bg-red-900 hover:bg-red-200 dark:hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 transition-colors duration-200">
        <svg class="-ml-1 mr-2 h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16l-4-4m0 0l4-4m-4 4h18" /></svg>
        <span>Go Back</span>
      </a>
      <button type="button" class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-bold rounded-md shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 transition-colors duration-200">
        <svg class="-ml-1 mr-2 h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9.247a1 1 0 011.004-.008L14.773 12l-5.54 2.761a1 1 0 01-1.004-.008 1 1 0 01-.424-1.109L7.5 12l-1.004-2.761a1 1 0 01.428-1.109zM15 12a3 3 0 11-6 0 3 3 0 016 0z" /></svg>
        <span>Contact Support</span>
      </button>
    </div>
  </div>
</div>

関連コンポーネント

エラーメッセージコンポーネント

Skeuomorphismトライアドカラースキーム複雑なEコマースエラーメッセージコンポーネント、レスポンシブデザインとダークモードのサポート。

開ける

エラーメッセージコンポーネント

3Dデザイン、単色の配色、ダッシュボード用の適度な複雑さ、ダークテーマをサポートするレスポンシブデザインを備えたエラーメッセージコンポーネント。

開ける

エラーメッセージコンポーネント

Skeuomorphism、Triadic カラースキーム、およびシンプルなレイアウトを使用して、エラーメッセージコンポーネントを改良しました。Tailwind CSSを使用して作成され、応答性とダークモードのサポートを実現します。JavaScript はありません。

開ける