diff --git a/src/components/home/Landing.astro b/src/components/home/Landing.astro
index 617e095..05dc53a 100644
--- a/src/components/home/Landing.astro
+++ b/src/components/home/Landing.astro
@@ -30,6 +30,9 @@ const avatar = await fetch(
--box-circle-mask-png: url("${boxCircleMask.src}");`}
>
Hello World 🏳️⚧️
+
+ ⚠️ Your browser doesnt support anchor positioning or javascript!
+
bsky pfp
@@ -102,4 +105,27 @@ const avatar = await fetch(
p {
margin-block: 5px;
}
+
+ @keyframes fade-in {
+ from, to {
+ height: auto;
+ }
+
+ to {
+ opacity: 1;
+ }
+ }
+
+ .no-anchor-warning {
+ @supports (top: calc(anchor(--player bottom) + 10px)) {
+ display: none;
+ }
+
+ background: rgb(from goldenrod r g b / 0.2);
+ padding: 5px;
+
+ opacity: 0;
+ height: 0;
+ animation: 0s ease-in-out 2s 1 forwards fade-in;
+ }
diff --git a/src/components/home/playing/NowPlaying.astro b/src/components/home/playing/NowPlaying.astro
index 277e23e..e3e17a5 100644
--- a/src/components/home/playing/NowPlaying.astro
+++ b/src/components/home/playing/NowPlaying.astro
@@ -396,8 +396,20 @@ const isSong = (
if (!CSS.supports("top", "calc(anchor(--player bottom) + 10px)")) {
// enable anchor polyfill
- // @ts-expect-error ts cant find remote types lol
- import("https://unpkg.com/@oddbird/css-anchor-positioning");
+ const { default: anchor } = await import(
+ // @ts-expect-error ts cant find remote types lol
+ "https://unpkg.com/@oddbird/css-anchor-positioning/dist/css-anchor-positioning-fn.js"
+ );
+
+ anchor().then(() =>
+ document
+ .querySelectorAll(".no-anchor-warning")
+ .forEach((el) =>
+ el instanceof HTMLElement
+ ? el.style.setProperty("display", "none")
+ : null,
+ ),
+ );
}
/*************
* FUNCTIONS *