forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

index.html28 lines, 1.0 KiBHistoryRawDownload
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <meta name="color-scheme" content="light dark" />
7 <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
8 <title>Hezarfen</title>
9 <script>
10 (() => {
11 try {
12 const theme = localStorage.getItem("hezarfen.theme");
13 const dark =
14 theme === "dark" ||
15 (theme !== "light" && window.matchMedia("(prefers-color-scheme: dark)").matches);
16 document.documentElement.setAttribute("data-kb-theme", dark ? "dark" : "light");
17 if (dark) document.documentElement.classList.add("dark");
18 const locale = localStorage.getItem("hezarfen.locale");
19 if (locale === "en" || locale === "tr") document.documentElement.lang = locale;
20 } catch {}
21 })();
22 </script>
23 </head>
24 <body>
25 <div id="root"></div>
26 <script type="module" src="/src/index.tsx"></script>
27 </body>
28</html>