From 77a283ac980be550fe8734428461ad7300caf4a8 Mon Sep 17 00:00:00 2001 From: limepotato Date: Thu, 4 Jul 2024 00:16:49 -0600 Subject: [PATCH] hmm --- public/css/limepot.css | 1 + public/scripts/fuckchrome.js | 7 ------- .../scripts/{galactic-font.js => limepot.js} | 18 ++++++++++++++++-- src/layouts/Layout.astro | 5 ++--- 4 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 public/scripts/fuckchrome.js rename public/scripts/{galactic-font.js => limepot.js} (51%) diff --git a/public/css/limepot.css b/public/css/limepot.css index 5bcac83..dbd907d 100644 --- a/public/css/limepot.css +++ b/public/css/limepot.css @@ -17,6 +17,7 @@ width: 1000px; max-width: calc(100% - 2rem); font-size: 20px; + font-family: system-ui, sans-serif; line-height: 1.6; margin: auto; } diff --git a/public/scripts/fuckchrome.js b/public/scripts/fuckchrome.js deleted file mode 100644 index 3bdc429..0000000 --- a/public/scripts/fuckchrome.js +++ /dev/null @@ -1,7 +0,0 @@ - -let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test( - navigator.userAgent - ); - let disclaimer = `
`; - if (chromium) - window.location.replace("/nochrome"); \ No newline at end of file diff --git a/public/scripts/galactic-font.js b/public/scripts/limepot.js similarity index 51% rename from public/scripts/galactic-font.js rename to public/scripts/limepot.js index c73578b..0fa7818 100644 --- a/public/scripts/galactic-font.js +++ b/public/scripts/limepot.js @@ -1,3 +1,8 @@ +function onload() { + redirect() + sdocument.getElementById("body").style.fontFamily = "system-ui, sans-serif"; +} + function toggleTheme() { // Obtains an array of all // elements. @@ -5,7 +10,16 @@ function toggleTheme() { if (document.getElementById("body").style.fontFamily !== "standardGalactic") { document.getElementById("body").style.fontFamily = "standardGalactic"; } - else { + else{ document.getElementById("body").style.fontFamily = "system-ui, sans-serif"; } -} \ No newline at end of file +} + +function redirect() { +let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test( + navigator.userAgent + ); + let disclaimer = `
`; + if (chromium) + window.location.replace("/nochrome"); +} \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7187d40..a27d157 100755 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -15,11 +15,10 @@ const { title } = Astro.props; {title} - +