From 13f8b6b6dcc7cae354ea4c66e31ce7cca47e37ae Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Sat, 14 Sep 2024 16:31:28 +0200 Subject: [PATCH] fix online status not updating after changing pages --- src/pages/index.astro | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 2f3b126..1dcb9ad 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -63,13 +63,18 @@ const permalink = Astro?.site?.href ?? '/'; - @@ -119,9 +124,11 @@ const permalink = Astro?.site?.href ?? '/'; background-color: #cc8d2e; transition: background-color 0.2s; } + &.online::before { background-color: #2ecc71; } + &.offline::before { background-color: #e74c3c; }