mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
Format the dashboard with Oxfmt and use tsrs for project builds and Oxlint type analysis. Fix the initial typed findings and check formatting and typed lint in CI to keep new changes consistent.
54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en" data-theme="playful">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/png" href="./app-icon.png" />
|
|
<link rel="shortcut icon" type="image/png" href="./app-icon.png" />
|
|
<link rel="manifest" href="./site.webmanifest" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="theme-color" content="#f7f6f3" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-title" content="Skillshare" />
|
|
<title>Skillshare Web Dashboard</title>
|
|
<!-- Body text uses the system font. Kalam is only for Playful headings. -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<script>
|
|
// FOUC prevention: handle Clean theme + dark mode before first paint
|
|
// Default is Playful (already set on <html>); only remove for explicit Clean
|
|
// URL ?theme= param overrides localStorage (values: dark, light, playful, clean).
|
|
// ?mode= (dark, light) and ?style= (playful, clean) name one axis each and win over it.
|
|
(function () {
|
|
var q = new URLSearchParams(location.search);
|
|
var get = function (key) {
|
|
return (q.get(key) || '').toLowerCase();
|
|
};
|
|
[get('theme'), get('mode')].forEach(function (p) {
|
|
if (p === 'dark' || p === 'light') localStorage.setItem('skillshare-theme-preference', p);
|
|
});
|
|
[get('theme'), get('style')].forEach(function (p) {
|
|
if (p === 'playful' || p === 'clean') localStorage.setItem('skillshare-style', p);
|
|
});
|
|
var style = localStorage.getItem('skillshare-style');
|
|
var pref = localStorage.getItem('skillshare-theme-preference');
|
|
if (style === 'clean') {
|
|
document.documentElement.removeAttribute('data-theme');
|
|
}
|
|
var dark =
|
|
pref === 'dark' ||
|
|
(pref === 'system' && matchMedia('(prefers-color-scheme: dark)').matches);
|
|
if (dark) document.documentElement.classList.add('dark');
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|