- Add Legal Office of the Master seal (SVG design with Maltese Cross, scales of justice, legal scroll) - Create legal-office-manifest-template.json for Legal Office credentials - Update SEAL_MAPPING.md and DESIGN_GUIDE.md with Legal Office seal documentation - Complete Azure CDN infrastructure deployment: - Resource group, storage account, and container created - 17 PNG seal files uploaded to Azure Blob Storage - All manifest templates updated with Azure URLs - Configuration files generated (azure-cdn-config.env) - Add comprehensive Azure CDN setup scripts and documentation - Fix manifest URL generation to prevent double slashes - Verify all seals accessible via HTTPS
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
'use client';
|
|
|
|
import { useEffect } from 'react';
|
|
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle } from '@the-order/ui';
|
|
|
|
export default function Error({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string };
|
|
reset: () => void;
|
|
}): JSX.Element {
|
|
useEffect(() => {
|
|
console.error(error);
|
|
}, [error]);
|
|
|
|
return (
|
|
<div className="min-h-screen bg-gray-50 flex items-center justify-center px-4">
|
|
<Card className="max-w-md w-full text-center">
|
|
<CardHeader>
|
|
<CardTitle className="text-6xl font-bold text-red-600 mb-4">500</CardTitle>
|
|
<CardDescription className="text-xl">Something went wrong</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="space-y-4">
|
|
<p className="text-gray-600">
|
|
An unexpected error occurred. Please try again or contact support if the problem
|
|
persists.
|
|
</p>
|
|
{error.digest && (
|
|
<p className="text-sm text-gray-500 font-mono">Error ID: {error.digest}</p>
|
|
)}
|
|
<div className="flex gap-4 justify-center">
|
|
<Button onClick={reset}>Try Again</Button>
|
|
<Button variant="outline" onClick={() => (window.location.href = '/')}>
|
|
Go Home
|
|
</Button>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|
|
|