Website
@@ -0,0 +1,149 @@
|
||||
# ==========================================================================
|
||||
# Alba-Zochling s.r.o. - Apache Configuration
|
||||
# ==========================================================================
|
||||
|
||||
# ---- Custom error page ----
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
# ---- Hidden files and folders (.git, .htaccess, ...) are never served ----
|
||||
RewriteEngine On
|
||||
RewriteRule (^|/)\.(?!well-known/) - [F,L]
|
||||
|
||||
# ---- Force HTTPS ----
|
||||
# Synology Web Station terminates TLS in its nginx front end and hands Apache plain HTTP,
|
||||
# so %{HTTPS} alone would loop forever; trust X-Forwarded-Proto from the front end too.
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# ---- Force www (each domain to its own www variant) ----
|
||||
RewriteCond %{HTTP_HOST} ^alba-zochling\.(cz|hu)$ [NC]
|
||||
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# ---- Domain root → branch default language (ccTLD split) ----
|
||||
RewriteCond %{HTTP_HOST} alba-zochling\.hu$ [NC]
|
||||
RewriteRule ^$ https://%{HTTP_HOST}/hu/ [L,R=302]
|
||||
RewriteRule ^$ https://%{HTTP_HOST}/cs/ [L,R=302]
|
||||
|
||||
# ---- ccTLD mount: domain selects the root folder (cz/ vs hu/) ----
|
||||
# .hu serves from hu/, .cz from cz/ → the country is not in the URL (/en/ on .cz = cz/en/, on .hu = hu/en/).
|
||||
# Each domain STRICTLY serves only its own branch → a cross-domain path (/cs/ on .hu) = 404, no leak.
|
||||
# Two rules per domain (-d and -f separately); host MUST match = clean AND (avoids tricky [OR] precedence).
|
||||
# The existence check lets shared /assets/ and /components/ fall through to root and prevents loops.
|
||||
# Adding another country = one more pair of rules for the new domain.
|
||||
RewriteCond %{HTTP_HOST} alba-zochling\.hu$ [NC]
|
||||
RewriteCond %{DOCUMENT_ROOT}/hu/$1 -d
|
||||
RewriteRule ^(.*)$ /hu/$1 [L]
|
||||
RewriteCond %{HTTP_HOST} alba-zochling\.hu$ [NC]
|
||||
RewriteCond %{DOCUMENT_ROOT}/hu/$1 -f
|
||||
RewriteRule ^(.*)$ /hu/$1 [L]
|
||||
RewriteCond %{HTTP_HOST} alba-zochling\.cz$ [NC]
|
||||
RewriteCond %{DOCUMENT_ROOT}/cz/$1 -d
|
||||
RewriteRule ^(.*)$ /cz/$1 [L]
|
||||
RewriteCond %{HTTP_HOST} alba-zochling\.cz$ [NC]
|
||||
RewriteCond %{DOCUMENT_ROOT}/cz/$1 -f
|
||||
RewriteRule ^(.*)$ /cz/$1 [L]
|
||||
|
||||
# ---- Directory index ----
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
# ---- GZIP compression ----
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
AddOutputFilterByType DEFLATE image/svg+xml
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
</IfModule>
|
||||
|
||||
# ---- Browser caching ----
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
|
||||
# Images - 6 months
|
||||
ExpiresByType image/webp "access plus 6 months"
|
||||
ExpiresByType image/png "access plus 6 months"
|
||||
ExpiresByType image/x-icon "access plus 6 months"
|
||||
ExpiresByType image/svg+xml "access plus 6 months"
|
||||
|
||||
# Fonts - 1 year
|
||||
ExpiresByType font/woff2 "access plus 1 year"
|
||||
ExpiresByType application/font-woff2 "access plus 1 year"
|
||||
|
||||
# CSS and JS - 1 month (cache-busted via query string)
|
||||
ExpiresByType text/css "access plus 1 month"
|
||||
ExpiresByType application/javascript "access plus 1 month"
|
||||
|
||||
# HTML - no cache (always fresh)
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
</IfModule>
|
||||
|
||||
# ---- Security headers ----
|
||||
<IfModule mod_headers.c>
|
||||
# Prevent MIME-type sniffing
|
||||
Header set X-Content-Type-Options "nosniff"
|
||||
|
||||
# Clickjacking protection
|
||||
Header set X-Frame-Options "SAMEORIGIN"
|
||||
|
||||
# XSS filter
|
||||
Header set X-XSS-Protection "1; mode=block"
|
||||
|
||||
# Referrer policy
|
||||
Header set Referrer-Policy "strict-origin-when-cross-origin"
|
||||
|
||||
# Permissions policy
|
||||
Header set Permissions-Policy "camera=(), microphone=(), geolocation=()"
|
||||
|
||||
# HSTS - force HTTPS for 1 year (including subdomains)
|
||||
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
|
||||
# Content Security Policy
|
||||
Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self'; frame-ancestors 'self'; base-uri 'self'; form-action 'self'"
|
||||
|
||||
# Cache control for fonts (immutable)
|
||||
<FilesMatch "\.(woff2)$">
|
||||
Header set Cache-Control "public, max-age=31536000, immutable"
|
||||
</FilesMatch>
|
||||
|
||||
# Cache control for images
|
||||
<FilesMatch "\.(webp|png|ico|svg)$">
|
||||
Header set Cache-Control "public, max-age=15768000"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
# ---- Prevent directory listing ----
|
||||
Options -Indexes
|
||||
|
||||
# ---- Block access to sensitive files ----
|
||||
<FilesMatch "(^\.|\.(md|json)$)">
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
|
||||
# Allow specific public files
|
||||
<FilesMatch "^(robots\.txt|sitemap\.xml|llms\.txt|llms-full\.txt)$">
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all granted
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
|
||||
# ---- UTF-8 encoding ----
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
# ---- Correct MIME types ----
|
||||
<IfModule mod_mime.c>
|
||||
AddType text/html .html
|
||||
AddType text/css .css
|
||||
AddType application/javascript .js
|
||||
AddType application/json .json
|
||||
AddType image/webp .webp
|
||||
AddType image/svg+xml .svg
|
||||
AddType font/woff2 .woff2
|
||||
AddType text/plain .txt
|
||||
AddType text/xml .xml
|
||||
</IfModule>
|
||||
@@ -0,0 +1,411 @@
|
||||
<!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 cíle.<br>Zkuste se vrátit na úvodní stránku, nebo nás 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>
|
||||
@@ -0,0 +1,9 @@
|
||||
# Editor page (Sveltia CMS). The site-wide policy in the root .htaccess is right for the website
|
||||
# but too strict for the editor: it must talk to Gitea and load its own fonts.
|
||||
# If Gitea runs under another hostname, replace git.alba-zochling.hu here and in config.yml.
|
||||
<IfModule mod_headers.c>
|
||||
Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' blob:; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; font-src 'self' data: https://cdn.jsdelivr.net; img-src 'self' data: blob: https:; connect-src 'self' blob: data: https://git.alba-zochling.hu https://unpkg.com; worker-src 'self' blob:; frame-src 'self' https://git.alba-zochling.hu; frame-ancestors 'self'; base-uri 'self'; form-action 'self' https://git.alba-zochling.hu"
|
||||
Header set Cache-Control "no-store"
|
||||
</IfModule>
|
||||
# Optional: editor reachable from the office and VPN only. Add your ranges, for example:
|
||||
# Require ip 192.168.10.0/24 10.8.0.0/24
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
header('Content-Type: text/yaml; charset=UTF-8');
|
||||
header('Cache-Control: no-store');
|
||||
$yml = (string) file_get_contents(__DIR__ . '/config.yml');
|
||||
$idFile = __DIR__ . '/client-id.txt';
|
||||
if (is_file($idFile)) {
|
||||
$id = trim((string) file_get_contents($idFile));
|
||||
if ($id !== '') { $yml = str_replace('CLIENT_ID', $id, $yml); }
|
||||
}
|
||||
echo $yml;
|
||||
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link href="/admin/config.php" type="text/yaml" rel="cms-config-url">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Alba-Zöchling · Content</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="icon" type="image/x-icon" href="/assets/img/favicon/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<script src="/admin/sveltia-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
@font-face{font-family:Inter;font-style:normal;font-weight:400 800;font-display:swap;src:url(inter-latin.woff2) format("woff2");unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2018-201E,U+2026,U+20AC,U+2190-2193,U+2212}@font-face{font-family:Inter;font-style:normal;font-weight:400 800;font-display:swap;src:url(inter-latin-ext.woff2) format("woff2");unicode-range:U+0100-017F,U+02C6-02DD,U+1E9E}
|
||||
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 303 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 299 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 146 KiB |
@@ -0,0 +1,9 @@
|
||||
# Components are included server-side by PHP.
|
||||
# Direct HTTP access is denied.
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</IfModule>
|
||||