diff --git a/artifacts/voix-du-peuple/src/pages/home.tsx b/artifacts/voix-du-peuple/src/pages/home.tsx index 210d5f6..1e67f69 100644 --- a/artifacts/voix-du-peuple/src/pages/home.tsx +++ b/artifacts/voix-du-peuple/src/pages/home.tsx @@ -305,78 +305,68 @@ export default function Home() { }} /> -
-
-
-

- Synthèse des contributions -

-

- Mise à jour à chaque nouvelle contribution -

-
- - {stats && ( -
-
- Contributions intégrées - {stats.accepted} -
-
- )} + {/* En-tête fixe */} +
+
+

+ Synthèse des contributions +

+

+ Mise à jour à chaque nouvelle contribution +

+ {stats && ( +
+ Contributions intégrées + {stats.accepted} +
+ )} +
-
+ {/* Texte défilable */} + +
{isLoadingSynthesis ? ( -
- - - Chargement… - +
+ + Chargement… +
+ ) : synthesis?.text ? ( +
+ {synthesis.text}
) : synthesis ? ( -
-
- {synthesis.text ? ( -
{synthesis.text}
- ) : ( -

- Aucune contribution pour l'instant. -

- )} -
- - {synthesis.updatedAt && ( -
- - Basé sur {synthesis.ideaCount} contribution{synthesis.ideaCount !== 1 ? "s" : ""} - - - - - - - Mis à jour le {format(new Date(synthesis.updatedAt), "d MMM à HH:mm", { locale: fr })} - -
- )} -
+

+ Aucune contribution pour l'instant. +

) : ( -
- - - Impossible de récupérer le manifeste - +
+ + Impossible de récupérer la synthèse
)}
-
+ + + {/* Pied de page fixe */} + {synthesis?.updatedAt && ( +
+ Basé sur {synthesis.ideaCount} contribution{synthesis.ideaCount !== 1 ? "s" : ""} + + + + + + {format(new Date(synthesis.updatedAt), "d MMM à HH:mm", { locale: fr })} + +
+ )}