-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
313 lines (261 loc) · 8.96 KB
/
index.html
File metadata and controls
313 lines (261 loc) · 8.96 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Gleb Gorelov's personal page">
<meta name="author" content="Gleb Gorelov">
<link rel="icon" href="images/favicon/favicon-light.svg" type="image/svg+xml" media="(prefers-color-scheme: light)">
<link rel="icon" href="images/favicon/favicon-dark.svg" type="image/svg+xml" media="(prefers-color-scheme: dark)">
<title>Gleb Gorelov</title>
<style>
@font-face {
font-family: 'Playlist-Script';
src: url('fonts/Playlist-Script.ttf.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
--bg-from: oklch(10% 0.02 260);
--bg-to: oklch(16% 0.04 260);
--text: oklch(95% 0.01 260);
--muted: oklch(62% 0.01 260);
--btn-bg: oklch(100% 0 0 / 0.10);
--btn-hover: oklch(100% 0 0 / 0.18);
--orb-1: oklch(42% 0.22 290);
--orb-2: oklch(52% 0.18 195);
--orb-3: oklch(38% 0.20 250);
}
[data-theme="light"] {
--bg-from: oklch(94% 0.005 260);
--bg-to: oklch(86% 0.012 260);
--text: oklch(18% 0.01 260);
--muted: oklch(48% 0.01 260);
--btn-bg: oklch(0% 0 0 / 0.07);
--btn-hover: oklch(0% 0 0 / 0.13);
--orb-1: oklch(75% 0.14 350);
--orb-2: oklch(78% 0.12 220);
--orb-3: oklch(76% 0.12 290);
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
body {
display: grid;
grid-template-rows: auto 1fr auto;
min-height: 100%;
padding: 1.5rem;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
background: linear-gradient(135deg, var(--bg-from), var(--bg-to));
color: var(--text);
transition: background 0.3s, color 0.3s;
user-select: none;
}
/* ── Aurora orbs ──────────────────────────────────── */
.orbs {
position: fixed;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.55;
transition: background-color 0.5s;
}
.orb-1 {
width: 50vmax;
height: 50vmax;
top: -15%;
left: -10%;
background-color: var(--orb-1);
animation: drift-1 22s ease-in-out infinite;
}
.orb-2 {
width: 40vmax;
height: 40vmax;
bottom: -10%;
right: -10%;
background-color: var(--orb-2);
animation: drift-2 28s ease-in-out infinite;
}
.orb-3 {
width: 35vmax;
height: 35vmax;
top: 20%;
left: 40%;
background-color: var(--orb-3);
animation: drift-3 18s ease-in-out infinite;
}
@keyframes drift-1 {
0%, 100% { transform: translate(0, 0 ); }
33% { transform: translate(6%, 10%); }
66% { transform: translate(-4%, 6% ); }
}
@keyframes drift-2 {
0%, 100% { transform: translate(0, 0 ); }
33% { transform: translate(-8%, -6% ); }
66% { transform: translate(5%, -10%); }
}
@keyframes drift-3 {
0%, 100% { transform: translate(0, 0 ); }
33% { transform: translate(8%, 6% ); }
66% { transform: translate(-5%, 10%); }
}
/* ── Entrance animation ───────────────────────────── */
@keyframes enter {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
header {
animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
main {
animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
footer {
animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
/* ── Header ───────────────────────────────────────── */
header {
display: flex;
align-items: center;
justify-content: space-between;
}
.brand {
font-size: 1.4rem;
font-weight: 500;
letter-spacing: 0.01em;
}
/* ── Theme toggle ─────────────────────────────────── */
#theme-toggle {
width: 2.5rem;
height: 2.5rem;
border: none;
border-radius: 50%;
background: var(--btn-bg);
color: var(--text);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
backdrop-filter: blur(4px);
outline: none;
}
#theme-toggle:hover {
background: var(--btn-hover);
}
#theme-toggle:focus-visible {
outline: 2px solid var(--muted);
outline-offset: 2px;
}
#theme-toggle::before {
content: '';
display: block;
width: 1.1rem;
height: 1.1rem;
background-color: currentColor;
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;
}
/* dark mode → sun icon (lucide) */
[data-theme="dark"] #theme-toggle::before {
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}
/* light mode → moon icon (lucide) */
[data-theme="light"] #theme-toggle::before {
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}
/* ── Main content ─────────────────────────────────── */
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1.5rem;
text-align: center;
}
h1 {
font-family: 'Playlist-Script', cursive;
font-size: clamp(4rem, 14vw, 10rem);
font-weight: normal;
line-height: 1.1;
padding-bottom: 0.2em;
}
.tagline {
font-size: clamp(0.875rem, 2vw, 1.125rem);
color: var(--muted);
letter-spacing: 0.12em;
text-transform: uppercase;
}
/* ── Footer ───────────────────────────────────────── */
footer {
font-size: 0.75rem;
color: var(--muted);
text-align: center;
}
footer a {
color: inherit;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.orb { animation: none; }
header, main, footer { animation: none; }
}
/* ── Forced colors (Windows High Contrast) ────────── */
@media (forced-colors: active) {
#theme-toggle { border: 1px solid ButtonText; }
#theme-toggle::before { background-color: ButtonText; }
}
</style>
<script>
// Apply theme before render to avoid flash
(function () {
var saved = localStorage.getItem('theme');
var preferred = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', saved || preferred);
})();
</script>
</head>
<body>
<div class="orbs" aria-hidden="true">
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="orb orb-3"></div>
</div>
<header>
<span class="brand">Gleb Gorelov</span>
<button id="theme-toggle" aria-label="Toggle theme" title="Toggle theme"></button>
</header>
<main>
<h1>Coming soon</h1>
<p class="tagline">This site is under construction</p>
</main>
<footer>
<p>Copyright © 2016–<script>document.write(new Date().getFullYear())</script> Gleb Gorelov. All rights reserved.</p>
</footer>
<script>
var html = document.documentElement;
document.getElementById('theme-toggle').addEventListener('click', function () {
var next = html.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
html.setAttribute('data-theme', next);
localStorage.setItem('theme', next);
});
</script>
</body>
</html>