- Add comprehensive error handling system with custom error pages - Implement professional enterprise-style design with Tailwind CSS - Create modular HMVC architecture with clean separation of concerns - Add security features: CSRF protection, XSS filtering, Argon2ID hashing - Include CLI tools for development workflow - Add error reporting dashboard with system monitoring - Implement responsive design with consistent slate color scheme - Replace all emoji icons with professional SVG icons - Add comprehensive test suite with PHPUnit - Include database migrations and seeders - Add proper exception handling with fallback pages - Implement template engine with custom syntax support - Add helper functions and facades for clean code - Include proper logging and debugging capabilities
65 lines
3.3 KiB
PHP
65 lines
3.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ $title }}</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<script>
|
|
tailwind.config = {
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
'sans': ['Inter', 'system-ui', 'sans-serif'],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body class="font-sans bg-slate-50 min-h-screen">
|
|
<div class="min-h-screen flex items-center justify-center px-4 sm:px-6 lg:px-8">
|
|
<div class="max-w-md w-full space-y-8">
|
|
<div class="text-center">
|
|
<div class="mx-auto h-24 w-24 bg-slate-100 rounded-full flex items-center justify-center mb-6">
|
|
<svg class="h-12 w-12 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<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-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"></path>
|
|
</svg>
|
|
</div>
|
|
<h1 class="text-6xl font-bold text-slate-900 mb-2">{{ $code }}</h1>
|
|
<h2 class="text-2xl font-semibold text-slate-900 mb-4">Server Error</h2>
|
|
<p class="text-slate-600 mb-8">{{ $message }}</p>
|
|
|
|
<div class="space-y-4">
|
|
<a href="/" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-slate-900 hover:bg-slate-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-900">
|
|
Return to Home
|
|
</a>
|
|
<button onclick="location.reload()" class="w-full flex justify-center py-3 px-4 border border-slate-300 rounded-md shadow-sm text-sm font-medium text-slate-700 bg-white hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500">
|
|
Try Again
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Debug Info (only in development) -->
|
|
<?php if (getenv('APP_DEBUG') === 'true' && isset($exception)): ?>
|
|
<div class="mt-8 p-4 bg-red-50 border border-red-200 rounded-lg text-left">
|
|
<h3 class="text-sm font-medium text-red-800 mb-2">Debug Information:</h3>
|
|
<div class="text-xs text-red-700 font-mono">
|
|
<div><strong>Message:</strong> <?php echo htmlspecialchars($exception->getMessage()); ?></div>
|
|
<div><strong>File:</strong> <?php echo htmlspecialchars($exception->getFile()); ?></div>
|
|
<div><strong>Line:</strong> <?php echo $exception->getLine(); ?></div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="mt-8 text-sm text-slate-500">
|
|
We're working to fix this issue. Please try again later.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|