mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-23 15:18:04 +02:00
Accueil: les bons plans menent a la fiche adherent
- Carte promo cliquable -> /adherents/[memberId] (getLivePromotions renvoie desormais memberId) - Retire le bouton "Voir l'offre" - Retire le cadre "Vous etes adherent ? Publier une promo" Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5a606e945
commit
eb6536ce8a
2 files changed
+8
-69
No files matched your search
+7
-69
@@ -217,10 +217,13 @@ export default async function AccueilPage() {
|
|||||||
|
|
||||||
<Reveal className="grid grid-3 reveal-stagger" style={{ marginTop: 26 }}>
|
<Reveal className="grid grid-3 reveal-stagger" style={{ marginTop: 26 }}>
|
||||||
{promos.map((p) => (
|
{promos.map((p) => (
|
||||||
<article
|
<Link
|
||||||
key={p.id}
|
key={p.id}
|
||||||
|
href={p.memberId ? `/adherents/${p.memberId}` : "#"}
|
||||||
className="lift-card"
|
className="lift-card"
|
||||||
style={{
|
style={{
|
||||||
|
textDecoration: "none",
|
||||||
|
color: "inherit",
|
||||||
background: "#fff",
|
background: "#fff",
|
||||||
border: "1px solid #ece3d0",
|
border: "1px solid #ece3d0",
|
||||||
borderRadius: 18,
|
borderRadius: 18,
|
||||||
@@ -291,82 +294,17 @@ export default async function AccueilPage() {
|
|||||||
</p>
|
</p>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "space-between",
|
|
||||||
borderTop: "1px solid #f0e8d6",
|
borderTop: "1px solid #f0e8d6",
|
||||||
paddingTop: 12,
|
paddingTop: 12,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div>
|
<div style={{ fontSize: 13, fontWeight: 700, color: "#3c3322" }}>{p.memberName}</div>
|
||||||
<div style={{ fontSize: 13, fontWeight: 700, color: "#3c3322" }}>{p.memberName}</div>
|
<div style={{ fontSize: 11.5, color: "#a99c82" }}>{p.validUntil}</div>
|
||||||
<div style={{ fontSize: 11.5, color: "#a99c82" }}>{p.validUntil}</div>
|
|
||||||
</div>
|
|
||||||
<a href="#" className="link-arrow" style={{ textDecoration: "none", color: "#2C6FB3", fontWeight: 700, fontSize: 13 }}>
|
|
||||||
Voir l'offre →
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</Reveal>
|
</Reveal>
|
||||||
|
|
||||||
{/* member CTA */}
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
marginTop: 28,
|
|
||||||
background: "#f9f4e7",
|
|
||||||
border: "1px dashed #d8cdb4",
|
|
||||||
borderRadius: 16,
|
|
||||||
padding: "20px 24px",
|
|
||||||
display: "flex",
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "space-between",
|
|
||||||
gap: 20,
|
|
||||||
flexWrap: "wrap",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div style={{ display: "flex", alignItems: "center", gap: 14 }}>
|
|
||||||
<span
|
|
||||||
style={{
|
|
||||||
display: "inline-flex",
|
|
||||||
width: 44,
|
|
||||||
height: 44,
|
|
||||||
borderRadius: 12,
|
|
||||||
background: "#fff",
|
|
||||||
border: "1px solid #e6dcc6",
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "center",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<span className="sparkle" style={{ width: 18, height: 18, background: "#E0A63C" }} />
|
|
||||||
</span>
|
|
||||||
<div>
|
|
||||||
<div className="font-display" style={{ fontWeight: 700, fontSize: 16, color: "#26201a" }}>
|
|
||||||
Vous êtes adhérent ?
|
|
||||||
</div>
|
|
||||||
<div style={{ fontSize: 13.5, color: "#8c8068" }}>
|
|
||||||
Publiez votre promotion en quelques clics depuis votre espace.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<Link
|
|
||||||
href="/backend/espace"
|
|
||||||
className="font-display"
|
|
||||||
style={{
|
|
||||||
textDecoration: "none",
|
|
||||||
background: "#9a6638",
|
|
||||||
color: "#fff",
|
|
||||||
fontWeight: 700,
|
|
||||||
fontSize: 14.5,
|
|
||||||
padding: "12px 22px",
|
|
||||||
borderRadius: 11,
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Publier une promo
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{/* highlighted members */}
|
{/* highlighted members */}
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export async function getLivePromotions(limit = 6) {
|
|||||||
badge: promotions.badge,
|
badge: promotions.badge,
|
||||||
imageUrl: promotions.imageUrl,
|
imageUrl: promotions.imageUrl,
|
||||||
validUntil: promotions.validUntil,
|
validUntil: promotions.validUntil,
|
||||||
|
memberId: promotions.memberId,
|
||||||
memberName: members.name,
|
memberName: members.name,
|
||||||
})
|
})
|
||||||
.from(promotions)
|
.from(promotions)
|
||||||
|
|||||||
Reference in new issue
Block a user