Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (49 loc) · 2.27 KB
/
Copy pathindex.html
File metadata and controls
49 lines (49 loc) · 2.27 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
<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sergey Stepanenko — проекты</title>
<meta
name="description"
content="Sergey Stepanenko, фронтенд-разработчик. Проекты на React, Telegram Mini Apps, боты и браузерная автоматизация — с исходниками и инструкцией по запуску."
/>
<meta name="theme-color" content="#0b0b0d" />
<meta property="og:title" content="Sergey Stepanenko — проекты" />
<meta
property="og:description"
content="Проекты на React, Telegram Mini Apps, боты и браузерная автоматизация — с исходниками и инструкцией по запуску."
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://sergeythrees.github.io/" />
<meta property="og:image" content="https://sergeythrees.github.io/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<div id="root"></div>
<script>
// Ставим тему до первой отрисовки, иначе на светлой теме мигнёт тёмный кадр.
(function () {
try {
var params = new URLSearchParams(window.location.search);
var fromQuery = params.get('theme');
var mode =
fromQuery === 'light' || fromQuery === 'dark'
? fromQuery
: window.localStorage.getItem('st.theme') === 'light'
? 'light'
: 'dark';
document.documentElement.dataset.theme = mode;
var meta = document.querySelector('meta[name="theme-color"]');
if (meta) meta.setAttribute('content', mode === 'dark' ? '#0b0b0d' : '#f7f7f8');
} catch (e) {
document.documentElement.dataset.theme = 'dark';
}
})();
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>