diff --git a/docs/app-ios/store/entete.html b/docs/app-ios/store/entete.html new file mode 100644 index 0000000..3446b4a --- /dev/null +++ b/docs/app-ios/store/entete.html @@ -0,0 +1,81 @@ + + + + +Image d'en-tête App Store + + + + +
+
+
+ + + + + + +
+
MonEspacePro
+

La fidélité,
au comptoir

+

Un scan, un tampon : la carte de fidélité de vos clients se met à jour toute seule dans Apple Wallet.

+
Tampons ou pointsRécompensesCampagnesStatistiques
+
+ + +
+
+
+
9:41
+ +
+
+
+
+ + +
+
+
+ +
+
+
+
+
+ + +
+
+
+
9:41
+ +
+
+
+
+ + +
+ Café DémoTampons 7 / 10 +
+
+
+
+
+
+ + diff --git a/docs/app-ios/store/export/entete.jpg b/docs/app-ios/store/export/entete.jpg new file mode 100644 index 0000000..635f20f Binary files /dev/null and b/docs/app-ios/store/export/entete.jpg differ diff --git a/docs/app-ios/store/panorama.html b/docs/app-ios/store/panorama.html index f3030f6..61eac8d 100644 --- a/docs/app-ios/store/panorama.html +++ b/docs/app-ios/store/panorama.html @@ -3,64 +3,10 @@ Captures App Store — panorama + diff --git a/docs/app-ios/store/render.js b/docs/app-ios/store/render.js index f835aeb..8fab98b 100644 --- a/docs/app-ios/store/render.js +++ b/docs/app-ios/store/render.js @@ -1,5 +1,5 @@ // Rend panorama.html et le découpe en 5 captures App Store 1320 × 2868 (JPEG : aucune couche alpha, exigé par Apple), -// plus un aperçu du panorama complet. Usage : npm install && node render.js +// plus un aperçu du panorama complet, le format 6,3" et l'image d'en-tête. Usage : npm install && node render.js const path = require('path'); const fs = require('fs'); const { chromium } = require('playwright-core'); @@ -28,6 +28,12 @@ const W = 1320, H = 2868, NAMES = ['01-accroche', '02-tampon', '03-recompenses', await small.setContent(``); await small.screenshot({ path: path.join(out, '6.3', `${name}.jpg`), type: 'jpeg', quality: 95 }); } + // Image d'en-tête de la page produit (3840 × 1646). + const header = await browser.newPage({ viewport: { width: 3840, height: 1646 }, deviceScaleFactor: 1 }); + await header.goto(pathToFileURL(path.join(__dirname, 'entete.html')).href); + await header.evaluate(() => document.fonts.ready); + await header.waitForLoadState('networkidle'); + await header.screenshot({ path: path.join(out, 'entete.jpg'), type: 'jpeg', quality: 95 }); await browser.close(); console.log(`${NAMES.length} captures dans ${out}`); })(); diff --git a/docs/app-ios/store/style.css b/docs/app-ios/store/style.css new file mode 100644 index 0000000..6d2f4f7 --- /dev/null +++ b/docs/app-ios/store/style.css @@ -0,0 +1,56 @@ + /* Styles communs : captures App Store (panorama.html) et image d'en-tête (entete.html). */ + @font-face { font-family: Figtree; font-weight: 500; src: url(fonts/Figtree_500Medium.ttf); } + @font-face { font-family: Figtree; font-weight: 600; src: url(fonts/Figtree_600SemiBold.ttf); } + @font-face { font-family: Figtree; font-weight: 700; src: url(fonts/Figtree_700Bold.ttf); } + @font-face { font-family: Figtree; font-weight: 800; src: url(fonts/Figtree_800ExtraBold.ttf); } + :root { + --green: #0E7A66; --card: #3A7A6A; --soft: #EAF6F2; --gold: #F2B544; + --cream: #F6F6F3; --ink: #1C1C19; --W: 1320px; --H: 2868px; + } + * { box-sizing: border-box; margin: 0; padding: 0; } + .stage { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #FBFBF8 0%, var(--cream) 40%, #EFF5F1 100%); } + + /* Décor continu */ + .blob { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(14,122,102,.16) 0%, rgba(14,122,102,.07) 45%, rgba(14,122,102,0) 70%); } + svg.ribbon { position: absolute; inset: 0; z-index: 1; } + + /* Titres */ + .title { position: absolute; top: 210px; width: 1120px; z-index: 5; } + .eyebrow { display: inline-flex; align-items: center; gap: 16px; font-weight: 700; font-size: 40px; letter-spacing: 4px; text-transform: uppercase; color: var(--green); } + .eyebrow::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); } + h1 { margin-top: 34px; font-weight: 800; font-size: 124px; line-height: 1.02; letter-spacing: -3px; } + h1 em { font-style: normal; color: var(--green); } + + /* iPhone 17 Pro Max */ + .phone { position: absolute; top: 790px; width: 940px; height: 1991px; border-radius: 150px; padding: 20px; z-index: 3; + background: linear-gradient(145deg, #3B3B37, #141412 40%, #2A2A27); box-shadow: 0 0 0 5px #8D8C85, 0 0 0 7px #55544F, 0 60px 120px rgba(28,28,25,.28), 0 20px 40px rgba(28,28,25,.18); } + .screen { position: relative; width: 900px; height: 1951px; border-radius: 130px; overflow: hidden; background: var(--cream); } + .island { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); width: 288px; height: 85px; border-radius: 43px; background: #000; z-index: 4; } + .shot { position: absolute; left: 0; width: 900px; display: block; } + .status { position: absolute; top: 0; left: 0; right: 0; height: 126px; z-index: 3; } + .status .time { position: absolute; left: 110px; top: 44px; font-weight: 600; font-size: 40px; letter-spacing: -.5px; } + .status svg { position: absolute; right: 74px; top: 52px; } + + /* Carte Wallet dessinée */ + .pass { position: absolute; width: 600px; height: 380px; border-radius: 30px; background: linear-gradient(160deg, #468C79, var(--card) 55%, #2F6B5B); color: #fff; padding: 36px 40px; z-index: 6; + box-shadow: 0 50px 90px rgba(20,60,50,.35), 0 12px 24px rgba(20,60,50,.22); } + .pass b { display: block; font-weight: 700; font-size: 40px; } + .pass small { display: block; margin-top: 8px; font-weight: 600; font-size: 22px; letter-spacing: 3px; opacity: .8; text-transform: uppercase; } + .stamps { position: absolute; left: 40px; right: 40px; bottom: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 0; justify-items: center; } + .stamps i { width: 66px; height: 66px; border-radius: 50%; border: 4px solid rgba(255,255,255,.75); } + .stamps i.on { background: var(--gold); border-color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); } + + /* Pièces */ + .coin { position: absolute; border-radius: 50%; z-index: 6; background: radial-gradient(circle at 35% 30%, #FFE3A3 0%, var(--gold) 45%, #C98A1B 100%); + box-shadow: inset 0 0 0 calc(var(--s) * .09) rgba(255,255,255,.35), inset 0 0 0 calc(var(--s) * .16) rgba(201,138,27,.55), 0 18px 30px rgba(120,80,10,.25); width: var(--s); height: var(--s); } + + /* Notification */ + .notif { position: absolute; display: flex; gap: 26px; align-items: flex-start; border-radius: 48px; padding: 30px 34px; background: rgba(250,250,247,.93); backdrop-filter: blur(20px); box-shadow: 0 30px 70px rgba(10,40,34,.28); } + .notif .ic { flex: none; width: 84px; height: 84px; border-radius: 20px; background: var(--card); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 44px; } + .notif .tx { flex: 1; font-size: 32px; line-height: 1.28; } + .notif .hd { display: flex; justify-content: space-between; align-items: baseline; } + .notif .hd b { font-weight: 700; } + .notif .hd span { font-size: 26px; color: #6B6A63; } + .lock { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, #4F9C88 0%, #1E5D4F 45%, #0D2E27 100%); color: #fff; text-align: center; } + .lock .date { margin-top: 190px; font-weight: 600; font-size: 40px; opacity: .9; } + .lock .clock { font-weight: 700; font-size: 230px; line-height: 1; letter-spacing: -6px; }