mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2026-03-03 09:36:35 +00:00
Update slogan
This commit is contained in:
26
index.html
26
index.html
@@ -4,27 +4,27 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
<meta name="description" content="An overlay of rfd deals" />
|
<meta name="description" content="An alternative frontend for hot deals" />
|
||||||
|
|
||||||
<!-- DNS prefetch for faster Google Fonts resolution -->
|
<!-- DNS prefetch for faster Google Fonts resolution -->
|
||||||
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
||||||
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
||||||
|
|
||||||
<!-- Preconnect for faster font loading -->
|
<!-- Preconnect for faster font loading -->
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
|
||||||
<link rel="icon" href="/favicon.png" />
|
<link rel="icon" href="/favicon.png" />
|
||||||
|
|
||||||
<!-- Load Material Symbols font with optimal display settings -->
|
<!-- Load Material Symbols font with optimal display settings -->
|
||||||
|
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
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"
|
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 - An overlay of hot deals</title>
|
<title>rfd-fyi - An alternative frontend for hot deals</title>
|
||||||
|
|
||||||
<!-- Analytics - loaded async/defer so it doesn't block page -->
|
<!-- Analytics - loaded async/defer so it doesn't block page -->
|
||||||
<script
|
<script
|
||||||
async
|
async
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
src="https://umami.davegallant.ca/script.js"
|
src="https://umami.davegallant.ca/script.js"
|
||||||
data-website-id="59ffe8be-509a-471e-8cd6-a63c5b35b7aa"
|
data-website-id="59ffe8be-509a-471e-8cd6-a63c5b35b7aa"
|
||||||
></script>
|
></script>
|
||||||
|
|
||||||
<!-- Theme detection script - runs before Vue loads to prevent flash of unstyled content -->
|
<!-- Theme detection script - runs before Vue loads to prevent flash of unstyled content -->
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
@@ -41,19 +41,19 @@
|
|||||||
if (!savedTheme) {
|
if (!savedTheme) {
|
||||||
return; // Let Vue handle default theme
|
return; // Let Vue handle default theme
|
||||||
}
|
}
|
||||||
|
|
||||||
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
let theme = savedTheme;
|
let theme = savedTheme;
|
||||||
|
|
||||||
// Handle 'auto' theme preference
|
// Handle 'auto' theme preference
|
||||||
if (theme === 'auto') {
|
if (theme === 'auto') {
|
||||||
theme = prefersDark ? 'dark' : 'light';
|
theme = prefersDark ? 'dark' : 'light';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply theme to html element
|
// Apply theme to html element
|
||||||
document.documentElement.setAttribute('data-bs-theme', theme);
|
document.documentElement.setAttribute('data-bs-theme', theme);
|
||||||
document.documentElement.setAttribute('data-theme', theme);
|
document.documentElement.setAttribute('data-theme', theme);
|
||||||
|
|
||||||
// Apply theme classes
|
// Apply theme classes
|
||||||
if (theme === 'dark') {
|
if (theme === 'dark') {
|
||||||
document.documentElement.classList.add('dark-theme');
|
document.documentElement.classList.add('dark-theme');
|
||||||
|
|||||||
Reference in New Issue
Block a user