mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2026-03-03 09:36:35 +00:00
79 lines
2.6 KiB
HTML
79 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta name="description" content="An alternative frontend for hot deals" />
|
|
|
|
<!-- DNS prefetch for faster Google Fonts resolution -->
|
|
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
|
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
|
|
|
<!-- Preconnect for faster font loading -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
|
<link rel="icon" href="/favicon.png" />
|
|
|
|
<!-- Load Material Symbols font with optimal display settings -->
|
|
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"
|
|
/>
|
|
|
|
<title>rfd-fyi</title>
|
|
|
|
<!-- Analytics - loaded async/defer so it doesn't block page -->
|
|
<script
|
|
async
|
|
defer
|
|
src="https://umami.davegallant.ca/script.js"
|
|
data-website-id="59ffe8be-509a-471e-8cd6-a63c5b35b7aa"
|
|
></script>
|
|
|
|
<!-- Theme detection script - runs before Vue loads to prevent flash of unstyled content -->
|
|
<script>
|
|
(function() {
|
|
// Check for saved theme preference only
|
|
const savedTheme = localStorage.getItem('theme');
|
|
if (!savedTheme) {
|
|
return; // Let Vue handle default theme
|
|
}
|
|
|
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
let theme = savedTheme;
|
|
|
|
// Handle 'auto' theme preference
|
|
if (theme === 'auto') {
|
|
theme = prefersDark ? 'dark' : 'light';
|
|
}
|
|
|
|
// Apply theme to html element
|
|
document.documentElement.setAttribute('data-bs-theme', theme);
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
|
|
// Apply theme classes
|
|
if (theme === 'dark') {
|
|
document.documentElement.classList.add('dark-theme');
|
|
document.documentElement.classList.remove('light-theme');
|
|
} else {
|
|
document.documentElement.classList.add('light-theme');
|
|
document.documentElement.classList.remove('dark-theme');
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<strong
|
|
>We're sorry but rfd.fyi doesn't work properly without JavaScript
|
|
enabled. Please enable it to continue.</strong
|
|
>
|
|
</noscript>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|