Files
alba-zochling/404.html
T
2026-09-15 13:25:48 +02:00

412 lines
14 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 | Alba-Zöchling</title>
<meta name="robots" content="noindex, nofollow">
<link rel="icon" type="image/x-icon" href="/assets/img/favicon/favicon.ico">
<link rel="preload" href="/assets/fonts/inter/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/assets/fonts/inter/inter.css?v=1786380000">
<link rel="stylesheet" href="/assets/css/main.css?v=1786410000">
<style>
/* ---- 404 Page ---- */
.e404 {
position: relative;
min-height: 100dvh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 2rem 1.25rem;
color: var(--text-inv);
overflow: hidden;
background: var(--dark-3);
}
/* Animated gradient background */
.e404__bg {
position: absolute;
inset: 0;
background:
radial-gradient(ellipse at 20% 50%, var(--hero-grad-1) 0%, transparent 60%),
radial-gradient(ellipse at 80% 20%, var(--hero-grad-2) 0%, transparent 50%),
linear-gradient(160deg, var(--dark-3) 0%, var(--dark) 25%, var(--hero-grad-mid) 50%, var(--hero-grad-end) 100%);
animation: e404Shift 12s ease-in-out infinite alternate;
z-index: 0;
}
@keyframes e404Shift {
0% { filter: hue-rotate(0deg) brightness(1); }
100% { filter: hue-rotate(-8deg) brightness(1.05); }
}
/* Dot grid */
.e404__pattern {
position: absolute;
inset: 0;
background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
background-size: 32px 32px;
z-index: 1;
}
/* Floating particles */
.e404__particles {
position: absolute;
inset: 0;
z-index: 1;
overflow: hidden;
}
.e404__particle {
position: absolute;
width: 4px;
height: 4px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
animation: particleFloat linear infinite;
}
@keyframes particleFloat {
0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
10% { opacity: 1; transform: translateY(90vh) translateX(10px) scale(1); }
90% { opacity: 0.6; }
100% { transform: translateY(-10vh) translateX(-20px) scale(0.5); opacity: 0; }
}
/* Content */
.e404__content {
position: relative;
z-index: 2;
max-width: 560px;
}
/* The big 404 number */
.e404__code {
font-size: clamp(7rem, 22vw, 14rem);
font-weight: 900;
line-height: 1;
letter-spacing: -0.05em;
position: relative;
display: inline-block;
color: transparent;
background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, var(--blue-hover) 50%, rgba(255,255,255,0.6) 100%);
background-size: 200% 200%;
-webkit-background-clip: text;
background-clip: text;
animation: gradientFlow 4s ease-in-out infinite alternate;
margin-bottom: 0.5rem;
}
@keyframes gradientFlow {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
/* Glitch effect on the number */
.e404__code::before,
.e404__code::after {
content: '404';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--blue-hover) 0%, rgba(255,255,255,0.8) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
opacity: 0;
}
.e404__code::before {
animation: glitch1 3s ease-in-out infinite;
}
.e404__code::after {
animation: glitch2 3s ease-in-out infinite;
}
@keyframes glitch1 {
0%, 85%, 100% { opacity: 0; transform: none; }
86% { opacity: 0.6; transform: translateX(-4px) skewX(-2deg); }
87% { opacity: 0; }
88% { opacity: 0.4; transform: translateX(3px) skewX(1deg); }
89% { opacity: 0; transform: none; }
}
@keyframes glitch2 {
0%, 90%, 100% { opacity: 0; transform: none; }
91% { opacity: 0.5; transform: translateX(3px) skewX(2deg); }
92% { opacity: 0; }
93% { opacity: 0.3; transform: translateX(-2px) skewX(-1deg); }
94% { opacity: 0; transform: none; }
}
/* Scanning line */
.e404__scanline {
position: absolute;
inset: 0;
z-index: 1;
overflow: hidden;
pointer-events: none;
}
.e404__scanline::after {
content: '';
position: absolute;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--blue-hover), transparent);
opacity: 0.15;
animation: scanline 4s linear infinite;
}
@keyframes scanline {
0% { top: -2px; }
100% { top: 100%; }
}
.e404__title {
font-size: clamp(1.3rem, 3.5vw, 1.8rem);
font-weight: 700;
margin-bottom: 0.75rem;
letter-spacing: -0.02em;
}
.e404__desc {
font-size: clamp(0.88rem, 1.6vw, 1rem);
color: var(--text-inv-2);
line-height: 1.7;
margin-bottom: 2.5rem;
max-width: 620px;
margin-left: auto;
margin-right: auto;
}
.e404__actions {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 3rem;
}
/* Road / truck animation at bottom */
.e404__road {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 60px;
z-index: 1;
overflow: hidden;
}
.e404__road-surface {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 40px;
background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 100%);
border-top: 1px solid rgba(255,255,255,0.08);
}
.e404__road-lines {
position: absolute;
bottom: 18px;
left: 0;
width: 200%;
height: 3px;
background: repeating-linear-gradient(
90deg,
rgba(255,255,255,0.15) 0px,
rgba(255,255,255,0.15) 30px,
transparent 30px,
transparent 60px
);
animation: roadScroll 2s linear infinite;
}
@keyframes roadScroll {
0% { transform: translateX(0); }
100% { transform: translateX(-60px); }
}
/* Truck driving across */
.e404__truck {
position: absolute;
bottom: 28px;
z-index: 2;
animation: truckDrive 12s linear infinite;
opacity: 0.6;
}
.e404__truck svg {
width: 40px;
height: 24px;
fill: rgba(255,255,255,0.7);
}
@keyframes truckDrive {
0% { left: -60px; opacity: 0; }
5% { opacity: 0.6; }
90% { opacity: 0.6; }
100% { left: calc(100% + 60px); opacity: 0; }
}
/* Logo top */
.e404__logo {
position: absolute;
top: 1.5rem;
left: 50%;
transform: translateX(-50%);
z-index: 3;
}
.e404__logo img {
height: 28px;
width: auto;
opacity: 0.7;
transition: opacity 0.3s var(--ease);
}
.e404__logo:hover img { opacity: 1; }
/* Pulse ring behind 404 */
.e404__pulse {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
border-radius: 50%;
z-index: 0;
}
.e404__pulse::before,
.e404__pulse::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
border: 1px solid var(--blue);
opacity: 0;
animation: pulseRing 4s ease-out infinite;
}
.e404__pulse::after {
animation-delay: 2s;
}
@keyframes pulseRing {
0% { transform: scale(0.5); opacity: 0.3; }
100% { transform: scale(2.5); opacity: 0; }
}
</style>
</head>
<body>
<div class="e404">
<div class="e404__bg"></div>
<div class="e404__pattern"></div>
<div class="e404__scanline"></div>
<div class="e404__particles" id="particles"></div>
<div class="e404__pulse"></div>
<a href="/" class="e404__logo">
<img src="/assets/img/logo/logo_white.webp" alt="Alba-Zöchling" width="176" height="30">
</a>
<div class="e404__content">
<div class="e404__code">404</div>
<h1 class="e404__title">Tato stránka se ztratila na cestě</h1>
<p class="e404__desc">Vypadá to, že zásilka, kterou hledáte, nedorazila do&nbsp;cíle.<br>Zkuste se vrátit na úvodní stránku, nebo nás&nbsp;kontaktujte.</p>
<div class="e404__actions">
<a href="/" class="btn btn--primary">Zpět na úvod <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 448 512" fill="currentColor" style="margin-left:4px"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"/></svg></a>
<a href="/en/" class="btn btn--outline" id="btnLang">English version</a>
</div>
</div>
<div class="e404__road">
<div class="e404__road-surface"></div>
<div class="e404__road-lines"></div>
<div class="e404__truck">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M112 0C85.5 0 64 21.5 64 48l0 48L16 96c-8.8 0-16 7.2-16 16s7.2 16 16 16l48 0 208 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L64 160l-16 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l16 0 176 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L64 224l-48 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l48 0 144 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L64 288l0 128c0 53 43 96 96 96s96-43 96-96l128 0c0 53 43 96 96 96s96-43 96-96l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64 0-32 0-18.7c0-17-6.7-33.3-18.7-45.3L512 114.7c-12-12-28.3-18.7-45.3-18.7L416 96l0-48c0-26.5-21.5-48-48-48L112 0zM544 237.3l0 18.7-128 0 0-96 50.7 0L544 237.3zM160 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm272 48a48 48 0 1 1 96 0 48 48 0 1 1-96 0z"/></svg>
</div>
</div>
</div>
<a class="eu-infoblokk" id="euInfoblokk" href="/hu/tanusitvanyok/palyazatok/" style="display:none">
<img src="/assets/img/eu/infoblokk-erfa-hu.webp" alt="Széchenyi 2020 kedvezményezetti infóblokk – Magyarország Kormánya, Európai Unió, Európai Regionális Fejlesztési Alap, Befektetés a jövőbe" width="483" height="340" decoding="async" fetchpriority="low">
</a>
<script>
(function() {
'use strict';
// Generate floating particles
var container = document.getElementById('particles');
for (var i = 0; i < 20; i++) {
var p = document.createElement('div');
p.className = 'e404__particle';
p.style.left = Math.random() * 100 + '%';
p.style.width = p.style.height = (2 + Math.random() * 4) + 'px';
p.style.animationDuration = (8 + Math.random() * 12) + 's';
p.style.animationDelay = (Math.random() * 10) + 's';
container.appendChild(p);
}
// Language toggle, branch-aware: this static file is served by both
// domains (single ErrorDocument), so the branch is detected client-side.
// Port 8001 is the local dev alias of the .hu branch.
var isHu = /alba-zochling\.hu$/i.test(location.hostname) || location.port === '8001';
var defLang = isHu ? 'hu' : 'cs';
var current = defLang;
var titleEl = document.querySelector('.e404__title');
var descEl = document.querySelector('.e404__desc');
var btnHome = document.querySelector('.btn--primary');
var btnLang = document.getElementById('btnLang');
var texts = {
cs: {
title: 'Tato stránka se ztratila na cestě',
desc: 'Vypadá to, že zásilka, kterou hledáte, nedorazila do\u00a0cíle.<br>Zkuste se vrátit na úvodní stránku, nebo nás\u00a0kontaktujte.',
btn: 'Zpět na úvod',
lang: 'English version',
home: '/'
},
hu: {
title: 'Ez az oldal elveszett útközben',
desc: 'Úgy tűnik, a keresett küldemény nem érkezett meg a\u00a0célállomásra.<br>Térjen vissza a kezdőlapra, vagy vegye fel velünk a\u00a0kapcsolatot.',
btn: 'Vissza a kezdőlapra',
lang: 'English version',
home: '/hu/'
},
en: {
title: 'This page got lost in transit',
desc: 'It looks like the shipment you\'re looking for never reached its\u00a0destination.<br>Try going back to the homepage or get in\u00a0touch.',
btn: 'Back to home',
lang: isHu ? 'Magyar verzió' : 'Česká verze',
home: '/en/'
}
};
var arrowSvg = ' <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 448 512" fill="currentColor" style="margin-left:4px"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"/></svg>';
function applyLang(code) {
var t = texts[code];
titleEl.textContent = t.title;
descEl.innerHTML = t.desc;
btnHome.href = t.home;
btnHome.innerHTML = t.btn + arrowSvg;
btnLang.textContent = t.lang;
btnLang.href = (code === 'en') ? texts[defLang].home : '/en/';
document.documentElement.lang = code;
current = code;
}
// The static markup is Czech; swap to Hungarian on the .hu branch,
// and reveal the mandatory EU infoblock there
if (isHu) {
applyLang('hu');
document.getElementById('euInfoblokk').style.display = 'block';
}
btnLang.addEventListener('click', function(e) {
e.preventDefault();
applyLang(current === 'en' ? defLang : 'en');
});
})();
</script>
</body>
</html>