mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-20 13:48:08 +02:00
Accueil: logo centre, "A l'honneur" en carrousel auto
- Hero : logo centre verticalement (alignItems center) - Titre "A l'honneur ce mois-ci" -> "A l'honneur" - Remplace les 3 fiches "mise en avant" par un carrousel auto-defilant de tous les adherents actifs, en rotation equitable (l'ordre pivote d'un cran par heure). Pause au survol, respecte prefers-reduced-motion. - Retire la coche "Mettre a l'honneur" du back-office (edition adherent) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb6536ce8a
commit
64ab10dea1
6 files changed
+161
-68
No files matched your search
@@ -250,7 +250,6 @@ export async function updateMember(formData: FormData) {
|
||||
tags: String(formData.get("tags") ?? "").trim() || null,
|
||||
hours: String(formData.get("hours") ?? "").trim() || null,
|
||||
status: String(formData.get("status") ?? "pending") as "active" | "pending",
|
||||
highlighted: formData.get("highlighted") === "on",
|
||||
})
|
||||
.where(eq(members.id, id));
|
||||
|
||||
|
||||
@@ -152,11 +152,6 @@ export default async function EditMemberPage({
|
||||
<textarea name="hours" rows={4} defaultValue={member.hours ?? ""} className="field" style={{ resize: "vertical" }} placeholder={"Mardi – Vendredi|7h – 19h30\nSamedi|7h – 19h\nDimanche|7h – 13h\nLundi|Fermé"} />
|
||||
</div>
|
||||
|
||||
<label style={{ display: "flex", alignItems: "center", gap: 9, marginTop: 16, fontSize: 14, color: "#3c3322", cursor: "pointer" }}>
|
||||
<input type="checkbox" name="highlighted" defaultChecked={member.highlighted} />
|
||||
Mettre à l'honneur sur la page d'accueil
|
||||
</label>
|
||||
|
||||
<div style={{ display: "flex", gap: 10, marginTop: 22 }}>
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
Reference in new issue
Block a user