190 lines
7.0 KiB
HTML
190 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>REBOUR — COMMANDE CONFIRMÉE</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--clr-bg: #e8e8e4;
|
|
--clr-black: #111;
|
|
--clr-accent: #e8a800;
|
|
--border: 1px solid #111;
|
|
--font-mono: 'Space Mono', monospace;
|
|
}
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html { font-size: 13px; }
|
|
body {
|
|
background: var(--clr-bg);
|
|
color: var(--clr-black);
|
|
font-family: var(--font-mono);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
padding: 1.1rem 2rem;
|
|
border-bottom: var(--border);
|
|
}
|
|
.logo { font-size: 1rem; font-weight: 700; letter-spacing: 0.18em; }
|
|
main {
|
|
flex-grow: 1;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
.left {
|
|
border-right: var(--border);
|
|
padding: 5rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
gap: 2rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.product-img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0.55;
|
|
}
|
|
.label { font-size: 0.75rem; color: #888; }
|
|
h1 {
|
|
font-size: clamp(2.5rem, 5vw, 4.5rem);
|
|
font-weight: 700;
|
|
line-height: 0.95;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.status-line {
|
|
font-size: 0.82rem;
|
|
line-height: 1.8;
|
|
color: #555;
|
|
}
|
|
.amount {
|
|
display: inline-block;
|
|
background: var(--clr-accent);
|
|
padding: 0.3rem 0.7rem;
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
}
|
|
.right {
|
|
padding: 5rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
gap: 1.5rem;
|
|
}
|
|
hr { border: none; border-top: var(--border); }
|
|
.info-row {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
padding: 0.6rem 0;
|
|
border-bottom: 1px solid rgba(0,0,0,0.1);
|
|
font-size: 0.8rem;
|
|
align-items: baseline;
|
|
}
|
|
.info-key { color: #888; width: 8rem; flex-shrink: 0; font-size: 0.72rem; }
|
|
a.back {
|
|
display: inline-block;
|
|
border: var(--border);
|
|
padding: 0.9rem 1.5rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
color: var(--clr-black);
|
|
transition: background 0.15s;
|
|
align-self: flex-start;
|
|
margin-top: 1rem;
|
|
}
|
|
a.back:hover { background: var(--clr-black); color: #f5f5f0; }
|
|
footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 1.1rem 2rem;
|
|
border-top: var(--border);
|
|
font-size: 0.75rem;
|
|
}
|
|
#loading { color: #888; font-size: 0.78rem; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<span class="logo">REBOUR</span>
|
|
<span style="font-size:0.78rem;color:#888">COLLECTION_001</span>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="left">
|
|
<img id="product-img" class="product-img" src="/assets/lamp-violet.jpg" alt="">
|
|
<p class="label" style="position:relative">// COMMANDE_CONFIRMÉE</p>
|
|
<h1 style="position:relative">MERCI<br>POUR<br>VOTRE<br>COMMANDE</h1>
|
|
<p class="status-line" id="loading" style="position:relative">Vérification du paiement...</p>
|
|
</div>
|
|
<div class="right">
|
|
<p class="label">// RÉCAPITULATIF</p>
|
|
<hr>
|
|
<div id="order-details" style="display:none; flex-direction:column; gap:0;">
|
|
<div class="info-row"><span class="info-key">PRODUIT</span><span>LUMIÈRE_ORBITALE</span></div>
|
|
<div class="info-row"><span class="info-key">COLLECTION</span><span>001 — ÉDITION UNIQUE</span></div>
|
|
<div class="info-row"><span class="info-key">MONTANT</span><span id="amount-display"></span></div>
|
|
<div class="info-row"><span class="info-key">EMAIL</span><span id="email-display"></span></div>
|
|
<div class="info-row"><span class="info-key">DÉLAI</span><span>6 À 8 SEMAINES</span></div>
|
|
<div class="info-row"><span class="info-key">STATUS</span><span style="color:#e8a800; font-weight:700">CONFIRMÉ ■</span></div>
|
|
</div>
|
|
<p style="font-size:0.78rem; line-height:1.8; color:#555; margin-top:1rem;">
|
|
Un email de confirmation vous sera envoyé.<br>
|
|
Votre lampe est fabriquée à la main à Paris.
|
|
</p>
|
|
<a href="/" class="back">← RETOUR À LA COLLECTION</a>
|
|
</div>
|
|
</main>
|
|
|
|
<footer>
|
|
<span>© 2026 REBOUR STUDIO — PARIS</span>
|
|
<span>INSTAGRAM / CONTACT</span>
|
|
</footer>
|
|
|
|
<script>
|
|
const params = new URLSearchParams(window.location.search)
|
|
const sessionId = params.get('session_id')
|
|
|
|
const PRODUCT_IMAGES = {
|
|
lumiere_orbitale: '/assets/lamp-violet.jpg',
|
|
table_terrazzo: '/assets/table-terrazzo.jpg',
|
|
module_serie: '/assets/lampes-serie.jpg',
|
|
}
|
|
|
|
if (sessionId) {
|
|
fetch(`/api/session/${sessionId}`)
|
|
.then(r => r.json())
|
|
.then(data => {
|
|
document.getElementById('loading').style.display = 'none'
|
|
document.getElementById('order-details').style.display = 'flex'
|
|
|
|
const amount = data.amount ? `${(data.amount / 100).toLocaleString('fr-FR')} €` : '—'
|
|
document.getElementById('amount-display').textContent = amount
|
|
document.getElementById('email-display').textContent = data.customer_email ?? '—'
|
|
|
|
if (data.product && PRODUCT_IMAGES[data.product]) {
|
|
document.getElementById('product-img').src = PRODUCT_IMAGES[data.product]
|
|
}
|
|
})
|
|
.catch(() => {
|
|
document.getElementById('loading').textContent = 'Commande enregistrée.'
|
|
})
|
|
} else {
|
|
document.getElementById('loading').textContent = 'Commande enregistrée.'
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|