qcast-front/src/app/error.jsx
2026-03-09 14:20:35 +09:00

29 lines
1.1 KiB
JavaScript

'use client'
export default function ServerError() {
// Log 500 error details to console
if (typeof window !== 'undefined') {
console.error('🚨 500 Server Error Page Rendered:', {
timestamp: new Date().toISOString(),
userAgent: navigator.userAgent,
url: window.location.href,
referrer: document.referrer
})
}
return (
<section className="bg-white dark:bg-gray-900">
<div className="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6">
<div className="mx-auto max-w-screen-sm text-center">
<h1 className="mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-primary-600 dark:text-primary-500">500</h1>
<p className="mb-4 text-3xl tracking-tight font-bold text-gray-900 md:text-4xl dark:text-white">Internal Server Error.</p>
<p className="mb-4 text-lg font-light text-gray-500 dark:text-gray-400">We are already working to solve the problem. </p>
<p className="text-sm text-gray-400 dark:text-gray-500">
Check the browser console for detailed error information.
</p>
</div>
</div>
</section>
)
}