mailwolt/resources/views/errors/503.blade.php

176 lines
5.6 KiB
PHP

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@php
$isMaintenance = file_exists(storage_path('framework/maintenance.php'))
|| file_exists(storage_path('framework/down'))
|| (isset($exception) && str_contains(strtolower(get_class($exception)), 'maintenance'));
@endphp
@if($isMaintenance)
<meta http-equiv="refresh" content="3">
@endif
<title>{{ $isMaintenance ? 'Update läuft' : 'Nicht verfügbar' }} · CluBird</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
height: 100%;
background: #0f1117;
color: #e2e4ea;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
display: flex;
align-items: center;
justify-content: center;
}
.card {
width: 100%;
max-width: 400px;
padding: 44px 36px;
background: #181c24;
border: 1px solid #252938;
border-radius: 18px;
text-align: center;
margin: 16px;
animation: fadein .4s ease;
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.logo {
display: inline-flex;
align-items: center;
gap: 10px;
margin-bottom: 32px;
}
.logo-icon {
position: relative;
width: 38px;
height: 38px;
border-radius: 11px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-icon.update {
background: linear-gradient(135deg, #6366f1, #4338ca);
box-shadow: 0 0 20px rgba(99,102,241,.4);
}
.logo-icon.error {
background: linear-gradient(135deg, #dc2626, #991b1b);
box-shadow: 0 0 20px rgba(220,38,38,.3);
}
.logo-icon.update::after {
content: '';
position: absolute;
inset: -4px;
border-radius: 15px;
border: 1px solid rgba(99,102,241,.3);
animation: glow 2s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.logo-text span { color: #6366f1; }
.spinner {
width: 44px; height: 44px;
margin: 0 auto 24px;
border-radius: 50%;
border: 3px solid #252938;
border-top-color: #6366f1;
animation: spin 1s linear infinite;
}
.error-icon {
width: 44px; height: 44px;
margin: 0 auto 24px;
border-radius: 50%;
background: rgba(220,38,38,.1);
border: 1px solid rgba(220,38,38,.25);
display: flex;
align-items: center;
justify-content: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
h1 { font-size: 17px; font-weight: 600; color: #e2e4ea; margin-bottom: 8px; letter-spacing: -.2px; }
p { font-size: 13px; color: #4b5563; line-height: 1.65; }
.bar-track {
height: 2px;
background: #252938;
border-radius: 99px;
overflow: hidden;
margin: 24px 0 20px;
}
.bar-fill {
height: 100%;
width: 35%;
background: #6366f1;
border-radius: 99px;
animation: sweep 1.4s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-180%); } 100% { transform: translateX(400%); } }
.dot-row { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.dot {
width: 5px; height: 5px; border-radius: 50%;
background: #6366f1; opacity: .25;
animation: pulse 1.4s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.code {
display: inline-block;
margin-top: 20px;
font-size: 11px;
color: #374151;
background: #13151d;
border: 1px solid #1e2130;
border-radius: 6px;
padding: 4px 10px;
font-family: monospace;
}
</style>
</head>
<body>
<div class="card">
<div class="logo">
<div class="logo-icon {{ $isMaintenance ? 'update' : 'error' }}">
@if($isMaintenance)
<svg viewBox="0 0 28 28" width="20" height="20" fill="none">
<path d="M5 19 C5 19 8 10 15 9 C19 8 23 11 24 15" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
<path d="M5 19 C6.5 22 9 23.5 12 23.5 C15 23.5 18 22 19.5 19" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
<circle cx="19" cy="8" r="2" fill="white"/>
</svg>
@else
<svg viewBox="0 0 28 28" width="20" height="20" fill="none">
<path d="M5 19 C5 19 8 10 15 9 C19 8 23 11 24 15" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
<path d="M5 19 C6.5 22 9 23.5 12 23.5 C15 23.5 18 22 19.5 19" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
<circle cx="19" cy="8" r="2" fill="white"/>
</svg>
@endif
</div>
<span class="logo-text">Clu<span>Bird</span></span>
</div>
@if($isMaintenance)
<div class="spinner"></div>
<h1>Update wird durchgeführt</h1>
<p>Das System wird aktualisiert.<br>Diese Seite lädt automatisch neu.</p>
<div class="bar-track"><div class="bar-fill"></div></div>
<div class="dot-row">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
@else
<div class="error-icon">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M10 6v5" stroke="#f87171" stroke-width="1.8" stroke-linecap="round"/>
<circle cx="10" cy="14" r="1" fill="#f87171"/>
<path d="M10 2a8 8 0 1 1 0 16A8 8 0 0 1 10 2Z" stroke="#f87171" stroke-width="1.3"/>
</svg>
</div>
<h1>Service nicht verfügbar</h1>
<p>Der Server ist vorübergehend nicht erreichbar.<br>Bitte versuche es in Kürze erneut.</p>
<div class="code">HTTP 503 · Service Unavailable</div>
@endif
</div>
</body>
</html>