From 96194316d3ca179d920a251c20551571aa0a1705 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Wed, 25 Jun 2025 15:51:12 -0400 Subject: [PATCH 1/4] use a static file for your avatar this way, others can link to it statically and always have an up to date copy of your avatar --- {src/assets => public}/logo.png | Bin src/components/Avatar.astro | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) rename {src/assets => public}/logo.png (100%) diff --git a/src/assets/logo.png b/public/logo.png similarity index 100% rename from src/assets/logo.png rename to public/logo.png diff --git a/src/components/Avatar.astro b/src/components/Avatar.astro index b54f0dc..d40280f 100644 --- a/src/components/Avatar.astro +++ b/src/components/Avatar.astro @@ -1,12 +1,11 @@ --- import { Image } from "astro:assets"; -import logo from "@assets/logo.png"; ---
My profile picture Date: Wed, 25 Jun 2025 15:56:10 -0400 Subject: [PATCH 2/4] add dark reader lock --- src/layouts/BaseLayout.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 78ebe16..b296fbd 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -9,6 +9,7 @@ const { tabTitle } = Astro.props; + {tabTitle} From 49803ba3987f6910fabad5991dba227faa203a8f Mon Sep 17 00:00:00 2001 From: nin0 Date: Wed, 25 Jun 2025 16:33:47 -0400 Subject: [PATCH 3/4] fix firefox assness --- src/components/AssBrowser.astro | 28 +++++++++++++++++++ src/components/windows/main/SpotifyCard.astro | 16 +++++++++++ src/css/me.css | 1 + src/layouts/BaseLayout.astro | 9 ++++++ src/pages/index.astro | 2 ++ 5 files changed, 56 insertions(+) create mode 100644 src/components/AssBrowser.astro diff --git a/src/components/AssBrowser.astro b/src/components/AssBrowser.astro new file mode 100644 index 0000000..f0cd38e --- /dev/null +++ b/src/components/AssBrowser.astro @@ -0,0 +1,28 @@ +--- +import GroupBox from "@components/GroupBox.astro"; +--- + + + + +

+

YOUR BROWSER IS ASS

+ + Your browser, does not support the full set + of web features which means that nin0.dev may not work as well as it + would on a non-ass browser. +
+
+ Consider switching to a browser that is not ass such as Safari, Brave, or if you really have no + option, Chrome. (these are personal preferences and I am not paid to say this) +
+

+
diff --git a/src/components/windows/main/SpotifyCard.astro b/src/components/windows/main/SpotifyCard.astro index 4f3cdf6..3e1d8f9 100644 --- a/src/components/windows/main/SpotifyCard.astro +++ b/src/components/windows/main/SpotifyCard.astro @@ -3,6 +3,22 @@ import LastFMIcon from "@assets/svg/fm.svg"; import HeartIcon from "@assets/svg/heart.svg"; --- + +

Listening to

diff --git a/src/css/me.css b/src/css/me.css index 70753cf..f720c4f 100644 --- a/src/css/me.css +++ b/src/css/me.css @@ -13,6 +13,7 @@ } } } + .spotify-card-wrapper { background: var(--album-color); position: relative; diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index b296fbd..71490e5 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -20,6 +20,15 @@ const { tabTitle } = Astro.props; document .querySelectorAll(".window") .forEach(window => WindowManager.observe(window)); + + const isBrowserAss = () => + ["Firefox"].some(ass => navigator.userAgent.includes(ass)); + if (isBrowserAss()) document.body.classList.add("ass-browser"); + + document + .querySelectorAll(".ua") + // @ts-ignore + .forEach(u => (u.innerText = navigator.userAgent)); }); diff --git a/src/pages/index.astro b/src/pages/index.astro index 754a97a..a156c29 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,10 +3,12 @@ import Noscript from "@components/Noscript.astro"; import MainWindow from "@components/windows/main/MainWindow.astro"; import BaseLayout from "../layouts/BaseLayout.astro"; import CodeWindow from "@components/windows/code/CodeWindow.astro"; +import AssBrowser from "@components/AssBrowser.astro"; ---