App Store : image d'en-tête 3840 × 1646 (entete.html), styles communs dans style.css

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tony AVERTY 2026-10-15 11:45:10 +02:00
parent 4835d580ef
commit bd149a180d
5 changed files with 145 additions and 56 deletions

View file

@ -0,0 +1,81 @@
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Image d'en-tête App Store</title>
<link rel="stylesheet" href="style.css">
<style>
/* Image d'en-tête de la page produit App Store : 3840 × 1646, rendue par render.js. */
html, body { width: 3840px; height: 1646px; overflow: hidden; background: var(--cream); font-family: Figtree, sans-serif; color: var(--ink); }
.stage { background: linear-gradient(120deg, #FBFBF8 0%, var(--cream) 45%, #E6F1EC 100%); }
.hero { position: absolute; left: 260px; top: 300px; width: 1700px; z-index: 5; }
.hero h1 { font-size: 200px; letter-spacing: -6px; }
.hero p { margin-top: 48px; width: 1350px; font-weight: 500; font-size: 58px; line-height: 1.35; color: #45443E; }
.chips { display: flex; gap: 22px; margin-top: 64px; }
.chips span { padding: 20px 38px; border-radius: 999px; background: #fff; border: 2px solid #DEDDD6; font-weight: 700; font-size: 38px; color: var(--green); box-shadow: 0 10px 24px rgba(28,28,25,.06); }
/* Les iPhone reprennent le gabarit des captures (940 × 1991), réduits. */
.holder { position: absolute; width: 940px; height: 1991px; transform-origin: top left; }
.holder .phone { top: 0; left: 0; }
</style>
</head>
<body>
<div class="stage">
<div class="blob" style="left: 2300px; top: -300px; width: 1900px; height: 1900px"></div>
<div class="blob" style="left: -500px; top: 900px; width: 1400px; height: 1400px"></div>
<svg class="ribbon" width="3840" height="1646" viewBox="0 0 3840 1646">
<path d="M -80 1420 C 500 1600, 1200 1250, 1900 1390 S 3000 1560, 3940 1260" fill="none" stroke="#0E7A66" stroke-width="84" stroke-linecap="round"/>
<path d="M -80 1420 C 500 1600, 1200 1250, 1900 1390 S 3000 1560, 3940 1260" fill="none" stroke="#F2B544" stroke-width="11" stroke-linecap="round" transform="translate(0 -80)" opacity=".9"/>
</svg>
<div class="title hero">
<div class="eyebrow">MonEspacePro</div>
<h1>La fidélité,<br><em>au comptoir</em></h1>
<p>Un scan, un tampon : la carte de fidélité de vos clients se met à jour toute seule dans Apple Wallet.</p>
<div class="chips"><span>Tampons ou points</span><span>Récompenses</span><span>Campagnes</span><span>Statistiques</span></div>
</div>
<!-- Statistiques (gauche, en retrait) -->
<div class="holder" style="left: 2100px; top: 250px; transform: scale(.6) rotate(-7deg)">
<div class="phone">
<div class="screen">
<div class="status"><span class="time">9:41</span><svg width="150" height="34" viewBox="0 0 150 34"><g fill="#1C1C19"><rect x="0" y="22" width="9" height="12" rx="2"/><rect x="13" y="16" width="9" height="18" rx="2"/><rect x="26" y="9" width="9" height="25" rx="2"/><rect x="39" y="2" width="9" height="32" rx="2"/><path d="M73 30 l-6-6 a9 9 0 0 1 12 0 z M61 18 a17 17 0 0 1 24 0 l-4 4 a11 11 0 0 0-16 0 z M55 12 a26 26 0 0 1 36 0 l-4 4 a20 20 0 0 0-28 0 z"/><rect x="100" y="4" width="44" height="26" rx="8" fill="none" stroke="#1C1C19" stroke-width="3" opacity=".45"/><rect x="104" y="8" width="36" height="18" rx="5"/><rect x="146" y="12" width="4" height="10" rx="2" opacity=".45"/></g></svg></div>
<img class="shot" src="../captures/statistiques.jpg" style="top: 126px">
<div class="island"></div>
</div>
</div>
</div>
<!-- Wallet (droite, en retrait) -->
<div class="holder" style="left: 3080px; top: 190px; transform: scale(.6) rotate(7deg)">
<div class="phone">
<div class="screen" style="background: #F2F2F7">
<img class="shot" src="../captures/wallet.jpg" style="top: 0">
<div style="position: absolute; left: 0; right: 0; top: 1390px; bottom: 0; background: #F2F2F7"></div>
<div class="island"></div>
</div>
</div>
</div>
<!-- Fiche client (centre, au premier plan) -->
<div class="holder" style="left: 2560px; top: 130px; transform: scale(.68); z-index: 4">
<div class="phone">
<div class="screen">
<div class="status"><span class="time">9:41</span><svg width="150" height="34" viewBox="0 0 150 34"><g fill="#1C1C19"><rect x="0" y="22" width="9" height="12" rx="2"/><rect x="13" y="16" width="9" height="18" rx="2"/><rect x="26" y="9" width="9" height="25" rx="2"/><rect x="39" y="2" width="9" height="32" rx="2"/><path d="M73 30 l-6-6 a9 9 0 0 1 12 0 z M61 18 a17 17 0 0 1 24 0 l-4 4 a11 11 0 0 0-16 0 z M55 12 a26 26 0 0 1 36 0 l-4 4 a20 20 0 0 0-28 0 z"/><rect x="100" y="4" width="44" height="26" rx="8" fill="none" stroke="#1C1C19" stroke-width="3" opacity=".45"/><rect x="104" y="8" width="36" height="18" rx="5"/><rect x="146" y="12" width="4" height="10" rx="2" opacity=".45"/></g></svg></div>
<img class="shot" src="../captures/client.jpg" style="top: 126px">
<div class="island"></div>
</div>
</div>
</div>
<!-- Carte et pièces au premier plan -->
<div class="pass" style="left: 1990px; top: 1020px; transform: rotate(-9deg) scale(.95); z-index: 7">
<b>Café Démo</b><small>Tampons 7 / 10</small>
<div class="stamps"><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i></i><i></i><i></i></div>
</div>
<div class="coin" style="--s: 130px; left: 3330px; top: 1180px; z-index: 7"></div>
<div class="coin" style="--s: 92px; left: 3500px; top: 1080px; z-index: 7"></div>
<div class="coin" style="--s: 64px; left: 3460px; top: 1310px; z-index: 7"></div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 KiB

View file

@ -3,64 +3,10 @@
<head>
<meta charset="utf-8">
<title>Captures App Store — panorama</title>
<link rel="stylesheet" href="style.css">
<style>
/* Panorama de 5 captures App Store 1320 × 2868 (iPhone 6,9"), découpé par render.js. */
@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; }
html, body { width: calc(var(--W) * 5); height: var(--H); overflow: hidden; background: var(--cream); font-family: Figtree, sans-serif; color: var(--ink); }
.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; }
</style>
</head>
<body>

View file

@ -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(`<body style="margin:0"><img src="${src}" style="display:block;width:1206px;height:2622px"></body>`);
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}`);
})();

View file

@ -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; }