From a56d8cf2a41a663c3ef1c12fa845cc24622f5d2c Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Tue, 14 Apr 2026 20:30:08 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20refine=20star=20toast=20=E2=80=94=20bra?= =?UTF-8?q?nd=20orange,=20idle=20trigger,=2015s=20auto-hide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Style: brand orange background with white text (visible on any bg) - Trigger: every 5 copies OR after 10 minutes of inactivity on page - Auto-hide: 15s (reset if toast re-triggers before expiry) - Idle timer resets on each copy --- site/src/components/StarToast.astro | 58 +++++++++++++++++------------ 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/site/src/components/StarToast.astro b/site/src/components/StarToast.astro index 941a5c7..a7121a7 100644 --- a/site/src/components/StarToast.astro +++ b/site/src/components/StarToast.astro @@ -9,25 +9,22 @@ import { GITHUB_URL } from '../data/site'; aria-live="polite" class="fixed bottom-6 right-6 z-50 hidden max-w-sm w-full" > -
-
+ -
-

- Rule copied! If this saved you time, - star the project on GitHub. -

-
+

+ Useful? Star on GitHub — it helps others discover it. +