-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
176 lines (163 loc) · 4.8 KB
/
Copy path404.html
File metadata and controls
176 lines (163 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!doctype html>
<html lang="fi">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>404 Sivua ei löytynyt | DigiKaveri</title>
<script>
if (window.location.pathname.startsWith('/en/')) {
window.location.replace('/en/404.html');
}
</script>
{{> header
title="404 Sivua ei löytynyt | DigiKaveri"
description="Hups! Etsimääsi sivua ei löytynyt."
path="404.html"
fi_path="404.html"
en_path="404.html"
extra_css="home"
skip_basic_meta=true
}}
<style>
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.hero-centered { flex-grow: 1; }
.err-header {
min-height: calc(85vh - 88px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin-bottom: 40px;
padding: 140px 24px 80px;
position: relative;
overflow: hidden;
scroll-margin-top: 135px;
}
/* Glowing animated 404 number */
.err-code {
font-size: clamp(5rem, 18vw, 10rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.05em;
background: linear-gradient(to right, #2563eb 0%, #8b5cf6 40%, #ec4899 70%, #2563eb 100%);
background-size: 200% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: text-shimmer 6s linear infinite, err-code-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
display: block;
margin-bottom: 12px;
filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.2));
}
@keyframes err-code-in {
from { opacity: 0; transform: scale(0.8) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.err-title {
font-size: clamp(1.5rem, 4vw, 2.5rem);
font-weight: 800;
color: var(--text-dark);
margin: 8px 0 16px;
opacity: 0;
transform: translateY(16px);
animation: hero-title-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.err-subtitle {
opacity: 0;
transform: translateY(12px);
animation: hero-title-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
font-size: clamp(1rem, 2.5vw, 1.2rem);
color: var(--text-light);
max-width: 480px;
margin: 0 auto 36px;
line-height: 1.6;
}
.err-actions {
display: flex;
justify-content: center;
opacity: 0;
transform: translateY(10px);
animation: hero-title-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.btn-err-link {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 16px 36px;
border-radius: 100px;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: #ffffff !important;
text-decoration: none;
font-family: var(--font-heading);
font-weight: 700;
font-size: 1.05rem;
box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
z-index: 1;
}
.btn-err-link:hover {
transform: translateY(-3px) scale(1.03);
box-shadow: 0 14px 36px rgba(var(--primary-rgb), 0.4);
color: #ffffff !important;
}
.btn-err-link i,
.btn-err-link svg {
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-err-link:hover i,
.btn-err-link:hover svg {
transform: translateX(5px);
}
/* Floating decorative ambient orbs */
.err-orb {
position: absolute;
border-radius: 50%;
filter: blur(70px);
pointer-events: none;
z-index: 0;
animation: orb-float 8s ease-in-out infinite alternate;
}
.err-orb-1 {
width: 320px; height: 320px;
background: rgba(37, 99, 235, 0.07);
top: 5%; left: 3%;
}
.err-orb-2 {
width: 260px; height: 260px;
background: rgba(139, 92, 246, 0.08);
top: 15%; right: 5%;
animation-delay: -3s;
}
@keyframes orb-float {
from { transform: translateY(0) scale(1); }
to { transform: translateY(-30px) scale(1.06); }
}
</style>
</head>
<body>
{{> nav }}
{{> mobile-nav }}
<header class="hero-centered err-header">
<div class="err-orb err-orb-1"></div>
<div class="err-orb err-orb-2"></div>
<span class="err-code" aria-hidden="true">404</span>
<h1 class="err-title">Hups! Sivua ei löytynyt.</h1>
<p class="err-subtitle">
Etsimääsi sivua ei valitettavasti löydy tai se on siirretty toiseen paikkaan.
</p>
<div class="err-actions">
<a href="/" class="btn-err-link">
Palaa etusivulle <i data-lucide="arrow-right" aria-hidden="true"></i>
</a>
</div>
</header>
{{> footer }}
{{> scripts }}
</body>
</html>