From 6315793c90773318a1dbb0feafa59c3e04b94e47 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 27 May 2026 01:55:53 +0200 Subject: [PATCH] =?UTF-8?q?feat(soutenir):=20barre=20d'objectif=20de=20don?= =?UTF-8?q?=20(nom=20de=20domaine=20d=C3=A9di=C3=A9,=2010=20=E2=82=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Affiche un goal concret en haut de /soutenir. Valeurs en dur dans le frontmatter (goalRaised / goalTarget) à éditer à la main quand un don arrive — pas de branchement Ko-fi. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/pages/soutenir.astro | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/pages/soutenir.astro b/src/pages/soutenir.astro index d28eec9..87a117a 100644 --- a/src/pages/soutenir.astro +++ b/src/pages/soutenir.astro @@ -2,6 +2,12 @@ import Base from '../layouts/Base.astro'; export const prerender = false; + +const goalLabel = "Location d'un nom de domaine dédié"; +const goalTarget = 10; +const goalRaised = 0; +const goalCurrency = '€'; +const goalPercent = Math.min(100, Math.round((goalRaised / goalTarget) * 100)); --- +
+
+
+
+

+ Objectif de don en cours +

+

{goalLabel}

+
+

+ {goalRaised} {goalCurrency} + / {goalTarget} {goalCurrency} +

+
+ +
+
+
+
+ +

+ {goalPercent}% atteint — une fois l'objectif rempli, le nom de domaine dédié sera réservé + pour un an. +

+
+
+

Don libre via Ko-fi