fix improve custom nginx error pages
This commit is contained in:
@@ -1341,3 +1341,144 @@ button.card {
|
||||
padding: 12px 20px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Error Pages (404, 500) */
|
||||
.error-hero {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 60vh;
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-size: clamp(120px, 20vw, 200px);
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.05em;
|
||||
color: transparent;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.error-title {
|
||||
font-size: clamp(28px, 5vw, 40px);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
margin: 0 0 16px;
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.error-message {
|
||||
font-size: clamp(16px, 2.5vw, 18px);
|
||||
line-height: 1.6;
|
||||
color: var(--muted);
|
||||
max-width: 480px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
|
||||
.error-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
.error-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 14px 28px;
|
||||
border-radius: 14px;
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
letter-spacing: -0.01em;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
background 120ms ease,
|
||||
transform 120ms ease,
|
||||
box-shadow 120ms ease;
|
||||
}
|
||||
|
||||
.error-btn-primary {
|
||||
background: linear-gradient(135deg, rgba(94, 228, 255, 0.24), rgba(255, 205, 74, 0.16));
|
||||
border: 1px solid rgba(94, 228, 255, 0.55);
|
||||
color: var(--fg);
|
||||
box-shadow:
|
||||
0 0 0 3px rgba(94, 228, 255, 0.14),
|
||||
0 10px 30px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.error-btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow:
|
||||
0 0 0 4px rgba(94, 228, 255, 0.2),
|
||||
0 14px 40px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.error-btn-secondary {
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
|
||||
border: 1px solid var(--stroke);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.error-btn-secondary:hover {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.error-divider {
|
||||
width: 80px;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
|
||||
margin: 0 auto 40px;
|
||||
}
|
||||
|
||||
.error-suggestions {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.error-suggestions-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
||||
.error-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.error-actions {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
.error-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.error-links {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.error-links .cta {
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user