mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-12 01:38:04 +02:00
Cartes promo : cadre image carré 1:1 (adapté aux visuels Facebook)
Les visuels promo sont carrés (posts Facebook) : un cadre 1200/630 laissait des bandes floues sur les côtés. Passage du cadre image en 1:1 partout (accueil, fiche, aperçu espace adhérent, modération) → les images carrées remplissent sans bords. Conseil d'upload : image carrée (1080×1080). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL
This commit is contained in:
4 files changed
+5
-5
No files matched your search
@@ -267,7 +267,7 @@ export default async function FicheAdherentPage({
|
||||
) : (
|
||||
promos.map((p, idx) => (
|
||||
<article key={p.id} className="lift" style={{ border: "1px solid #ece3d0", borderRadius: 16, overflow: "hidden", marginBottom: idx === promos.length - 1 ? 0 : 14 }}>
|
||||
<div style={{ position: "relative", aspectRatio: "1200 / 630", background: STRIPE_WARM, overflow: "hidden", display: "flex", alignItems: "center", justifyContent: "center" }}>
|
||||
<div style={{ position: "relative", aspectRatio: "1 / 1", background: STRIPE_WARM, overflow: "hidden", display: "flex", alignItems: "center", justifyContent: "center" }}>
|
||||
{p.imageUrl && <PromoImage src={p.imageUrl} alt={p.title} />}
|
||||
{!p.imageUrl && (<span style={{ fontSize: 10, letterSpacing: "0.12em", color: "#a99c82", textTransform: "uppercase" }}>photo de l'offre</span>)}
|
||||
{p.badge && (
|
||||
|
||||
@@ -105,7 +105,7 @@ export function MemberSpaceForm({
|
||||
<div style={{ fontSize: 13.5, fontWeight: 700, color: "#6c6150" }}>
|
||||
Cliquez pour choisir une image
|
||||
</div>
|
||||
<div style={{ fontSize: 12, color: "#a99c82" }}>JPG ou PNG · 1200×630 conseillé</div>
|
||||
<div style={{ fontSize: 12, color: "#a99c82" }}>JPG ou PNG · image carrée conseillée (ex. 1080×1080)</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
@@ -188,7 +188,7 @@ export function MemberSpaceForm({
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
aspectRatio: "1200 / 630",
|
||||
aspectRatio: "1 / 1",
|
||||
background: STRIPE_WARM,
|
||||
overflow: "hidden",
|
||||
display: "flex",
|
||||
|
||||
@@ -75,7 +75,7 @@ export default async function PromotionsPage() {
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
aspectRatio: "1200 / 630",
|
||||
aspectRatio: "1 / 1",
|
||||
background: isPending ? STRIPE_COOL : STRIPE_WARM,
|
||||
overflow: "hidden",
|
||||
display: "flex",
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ export default async function AccueilPage() {
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
aspectRatio: "1200 / 630",
|
||||
aspectRatio: "1 / 1",
|
||||
background: STRIPE_WARM,
|
||||
overflow: "hidden",
|
||||
display: "flex",
|
||||
|
||||
Reference in new issue
Block a user