mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-11 17:27:54 +02:00
Fiche adherent: entete repli sur le logo si pas de photo de couverture
L'entete de la fiche utilise coverUrl, sinon logoUrl, sinon placeholder (meme logique que les cartes de l'annuaire). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
e31c71caa9
commit
7bdb234475
1 file changed
+4
-2
@@ -100,7 +100,9 @@ export default async function FicheAdherentPage({
|
||||
style={{
|
||||
position: "relative",
|
||||
height: 230,
|
||||
background: member.coverUrl ? `url(${member.coverUrl})` : COVER_STRIPE,
|
||||
background: (member.coverUrl || member.logoUrl)
|
||||
? `url(${member.coverUrl || member.logoUrl})`
|
||||
: COVER_STRIPE,
|
||||
backgroundSize: "cover",
|
||||
backgroundPosition: "center",
|
||||
display: "flex",
|
||||
@@ -108,7 +110,7 @@ export default async function FicheAdherentPage({
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
{!member.coverUrl && (
|
||||
{!(member.coverUrl || member.logoUrl) && (
|
||||
<span style={{ fontSize: 11, letterSpacing: "0.14em", color: "#b3a888", textTransform: "uppercase" }}>photo de couverture</span>
|
||||
)}
|
||||
<Sparkle color={accent} size={20} style={{ top: 20, right: 24 }} duration={3.2} />
|
||||
|
||||
Reference in new issue
Block a user