add broken link icon to 404 error page with animated styling
This commit is contained in:
parent
7f943c6224
commit
76d47bc193
55
404.php
55
404.php
@ -374,20 +374,44 @@ error_log("[404] $ip $method $requestUri");
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
/* ===== LOGO ===== */
|
||||
.error-logo {
|
||||
margin-bottom: 2rem;
|
||||
/* ===== BROKEN LINK ICON ===== */
|
||||
.error-icon-top {
|
||||
margin-bottom: 1.5rem;
|
||||
animation: fadeInUp 0.8s ease-out 0.1s both;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.error-logo img {
|
||||
height: 40px;
|
||||
opacity: 0.7;
|
||||
transition: opacity 0.3s ease;
|
||||
.error-icon-top__circle {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(139,92,246,0.12));
|
||||
border: 1px solid rgba(255,255,255,0.06);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.error-logo img:hover {
|
||||
opacity: 1;
|
||||
.error-icon-top__circle::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -4px;
|
||||
border-radius: 50%;
|
||||
border: 2px dashed rgba(37,99,235,0.2);
|
||||
animation: spinSlow 12s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spinSlow {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.error-icon-top__circle svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
stroke: #8b5cf6;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* ===== RESPONSIVE ===== */
|
||||
@ -426,10 +450,15 @@ error_log("[404] $ip $method $requestUri");
|
||||
|
||||
<div class="error-container">
|
||||
|
||||
<!-- Logo -->
|
||||
<a href="/" class="error-logo">
|
||||
<img src="/assets/images/logoText.png" alt="Geizkragen">
|
||||
</a>
|
||||
<!-- Broken Link Icon -->
|
||||
<div class="error-icon-top">
|
||||
<div class="error-icon-top__circle">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"/>
|
||||
<line x1="8" y1="12" x2="16" y2="12"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Glitch 404 Code -->
|
||||
<div class="error-code" aria-hidden="true">404</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user