Files
the_order/apps/portal-public/src/app/error.tsx
defiQUG 92cc41d26d Add Legal Office seal and complete Azure CDN deployment
- 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
2025-11-12 22:03:42 -08:00

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>
);
}