315 lines
9.2 KiB
PHP
315 lines
9.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en" style="margin:0;padding:0;">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{{ $title ?? ('Error ' . ($code ?? '')) }} — {{ config('app.name') }}</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap" rel="stylesheet">
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
--primary: #df006a;
|
|
--primary-dim: rgba(223,0,106,0.12);
|
|
--primary-glow: rgba(223,0,106,0.4);
|
|
--cyan: #00f2ff;
|
|
--cyan-dim: rgba(0,242,255,0.1);
|
|
--bg: #050505;
|
|
--surface: #0d0d0d;
|
|
--border: #1a1a1a;
|
|
--text: #e8e8e8;
|
|
--muted: #555;
|
|
}
|
|
|
|
html, body {
|
|
min-height: 100%;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Ambient background glow */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: -20%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 700px;
|
|
height: 500px;
|
|
background: radial-gradient(ellipse, rgba(223,0,106,0.08) 0%, transparent 70%);
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
body::after {
|
|
content: '';
|
|
position: fixed;
|
|
bottom: -10%;
|
|
right: -10%;
|
|
width: 400px;
|
|
height: 400px;
|
|
background: radial-gradient(ellipse, rgba(0,242,255,0.04) 0%, transparent 70%);
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.page { position: relative; z-index: 1; width: 100%; max-width: 560px; text-align: center; }
|
|
|
|
/* Brand */
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 22px;
|
|
font-weight: 900;
|
|
letter-spacing: -0.5px;
|
|
color: #fff;
|
|
margin-bottom: 48px;
|
|
text-decoration: none;
|
|
}
|
|
.brand-dot { color: var(--primary); }
|
|
|
|
/* Giant error code */
|
|
.error-code {
|
|
font-size: clamp(96px, 20vw, 160px);
|
|
font-weight: 900;
|
|
line-height: 1;
|
|
letter-spacing: -6px;
|
|
color: transparent;
|
|
background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.3) 100%);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
text-shadow: none;
|
|
position: relative;
|
|
margin-bottom: 8px;
|
|
}
|
|
.error-code::after {
|
|
content: attr(data-code);
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(135deg, var(--primary), var(--cyan));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
filter: blur(24px);
|
|
z-index: -1;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Status line */
|
|
.status-line {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--primary-dim);
|
|
border: 1px solid rgba(223,0,106,0.25);
|
|
border-radius: 999px;
|
|
padding: 5px 14px;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
color: var(--primary);
|
|
margin-bottom: 28px;
|
|
}
|
|
.status-dot {
|
|
width: 6px; height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
animation: pulse 1.6s ease-in-out infinite;
|
|
}
|
|
|
|
/* Title & description */
|
|
h1 {
|
|
font-size: clamp(22px, 5vw, 30px);
|
|
font-weight: 900;
|
|
color: #fff;
|
|
line-height: 1.15;
|
|
margin-bottom: 14px;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
.desc {
|
|
font-size: 15px;
|
|
color: #888;
|
|
line-height: 1.6;
|
|
margin-bottom: 36px;
|
|
max-width: 420px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Action buttons */
|
|
.actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 40px;
|
|
}
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-decoration: none;
|
|
padding: 13px 24px;
|
|
border-radius: 12px;
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
.btn-primary {
|
|
background: linear-gradient(90deg, var(--primary), #a3004d);
|
|
color: #fff;
|
|
box-shadow: 0 0 20px var(--primary-glow);
|
|
}
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 0 32px var(--primary-glow);
|
|
filter: brightness(1.1);
|
|
}
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border: 1px solid #222;
|
|
color: #999;
|
|
}
|
|
.btn-ghost:hover {
|
|
border-color: #444;
|
|
color: #fff;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Divider with text */
|
|
.or {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.or::before, .or::after {
|
|
content: '';
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--border);
|
|
}
|
|
|
|
/* Help card */
|
|
.help-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 20px 24px;
|
|
text-align: left;
|
|
}
|
|
.help-card-title {
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1.5px;
|
|
color: var(--muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
.help-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.help-list li {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
font-size: 13px;
|
|
color: #888;
|
|
line-height: 1.45;
|
|
}
|
|
.help-list li::before {
|
|
content: '→';
|
|
color: var(--primary);
|
|
font-weight: 900;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
/* Request ID */
|
|
.req-id {
|
|
margin-top: 28px;
|
|
font-size: 11px;
|
|
color: #333;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.5; transform: scale(0.7); }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.actions { flex-direction: column; }
|
|
.btn { justify-content: center; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page">
|
|
|
|
<a href="{{ url('/') }}" class="brand">
|
|
Beti<span class="brand-dot">X</span>
|
|
</a>
|
|
|
|
<div class="error-code" data-code="{{ $code ?? '?' }}">{{ $code ?? '?' }}</div>
|
|
|
|
<div class="status-line">
|
|
<span class="status-dot"></span>
|
|
Error {{ $code ?? '' }}
|
|
</div>
|
|
|
|
<h1>{{ $title ?? 'Something went wrong' }}</h1>
|
|
<p class="desc">{{ $message ?? 'An unexpected error occurred. Please try again or contact support.' }}</p>
|
|
|
|
<div class="actions">
|
|
<a class="btn btn-primary" href="{{ url('/') }}">
|
|
← Back to BetiX
|
|
</a>
|
|
<a class="btn btn-ghost" href="javascript:history.back()">
|
|
Go Back
|
|
</a>
|
|
</div>
|
|
|
|
@isset($details)
|
|
<div class="or">What you can try</div>
|
|
<div class="help-card">
|
|
<div class="help-card-title">Troubleshooting</div>
|
|
<ul class="help-list">
|
|
<li>Refresh the page and try again.</li>
|
|
<li>Clear your browser cache and cookies.</li>
|
|
<li>Check your internet connection.</li>
|
|
<li>Contact support at <a href="mailto:{{ config('mail.from.address') }}">{{ config('mail.from.address') }}</a> if the issue persists.</li>
|
|
</ul>
|
|
</div>
|
|
@endisset
|
|
|
|
<p class="req-id">ref: {{ \Illuminate\Support\Str::uuid() }}</p>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|