EsiPeppol-Woocommerce/exemple-timeline.html
2026-01-23 16:32:40 +01:00

300 lines
9.2 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exemple Timeline Verticale</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 900px;
margin: 0 auto;
background: #ffffff;
border-radius: 16px;
padding: 40px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
h1 {
text-align: center;
color: #1f2937;
margin-bottom: 40px;
font-size: 32px;
}
/* ====================================
TIMELINE VERTICALE
==================================== */
.timeline {
max-width: 800px;
margin: 0 auto;
}
.step {
position: relative;
padding-left: 70px;
padding-bottom: 40px;
min-height: 80px;
}
/* Dernier élément sans padding-bottom */
.step:last-child {
padding-bottom: 0;
}
/* Cercle numéroté (::before) */
.step::before {
content: attr(data-step);
position: absolute;
left: 0;
top: 0;
width: 44px;
height: 44px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 18px;
z-index: 2;
/* État par défaut : cercle blanc, bord gris, numéro gris */
background-color: #ffffff;
border: 3px solid #d1d5db;
color: #9ca3af;
}
/* Ligne verticale (::after) */
.step::after {
content: '';
position: absolute;
left: 22px; /* Centre du cercle (44px / 2) */
top: 44px; /* Sous le cercle */
bottom: 0;
width: 3px;
/* État par défaut : ligne grise */
background-color: #d1d5db;
z-index: 1;
}
/* Masquer la ligne sur le dernier élément */
.step:last-child::after {
display: none;
}
/* Carte de contenu */
.step-card {
background-color: #f3f4f6;
border: 2px solid #e5e7eb;
border-radius: 8px;
padding: 20px 24px;
transition: all 0.3s ease;
}
.step-card h3 {
margin: 0 0 8px 0;
font-size: 18px;
font-weight: 600;
color: #374151;
}
.step-card p {
margin: 0 0 16px 0;
color: #6b7280;
line-height: 1.6;
}
.step-card .step-value {
display: inline-block;
background-color: #ffffff;
border: 1px solid #d1d5db;
border-radius: 4px;
padding: 8px 12px;
margin-top: 8px;
}
.step-card .step-value strong {
display: block;
margin-bottom: 4px;
font-size: 13px;
color: #6b7280;
}
.step-card .step-value code {
color: #1f2937;
font-size: 14px;
font-weight: 500;
font-family: 'Courier New', Courier, monospace;
}
.step-card .btn {
display: inline-block;
padding: 10px 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
text-decoration: none;
border-radius: 6px;
font-weight: 500;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card .btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
/* ========================================
ÉTAT COMPLÉTÉ : .is-done
======================================== */
.step.is-done::before {
/* Check ✓ ou numéro en bleu */
background-color: #dbeafe;
border-color: #3b82f6;
color: #2563eb;
font-weight: 700;
}
.step.is-done::after {
/* Ligne bleue */
background-color: #3b82f6;
}
.step.is-done .step-card {
/* Carte fond bleu, texte blanc */
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
border-color: #2563eb;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.step.is-done .step-card h3 {
color: #ffffff;
}
.step.is-done .step-card p {
color: #dbeafe;
}
.step.is-done .step-card .step-value {
background-color: rgba(255, 255, 255, 0.95);
border-color: #2563eb;
}
.step.is-done .step-card .step-value strong {
color: #2563eb;
}
.step.is-done .step-card .step-value code {
color: #1e40af;
background-color: #eff6ff;
padding: 2px 6px;
border-radius: 3px;
}
/* Pour afficher un check ✓ sur les étapes complétées */
.step.is-done[data-step="✓"]::before {
font-size: 22px;
content: "✓";
}
.note {
text-align: center;
margin-top: 40px;
padding-top: 30px;
border-top: 2px solid #e5e7eb;
color: #6b7280;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<h1>Timeline Verticale - Exemple</h1>
<div class="timeline">
<!-- Étape 1: Complétée -->
<div class="step is-done" data-step="✓">
<div class="step-card">
<h3>Configuration du connecteur</h3>
<p>Le numéro de TVA de votre boutique doit être renseigné dans WooCommerce > Réglages > Général</p>
<div class="step-value">
<strong>Valeur configurée :</strong>
<code>BE0431.066.713</code>
</div>
</div>
</div>
<!-- Étape 2: Complétée -->
<div class="step is-done" data-step="✓">
<div class="step-card">
<h3>Numéro de TVA de la boutique</h3>
<p>Le champ utilisé pour récupérer le numéro de TVA du client dans les commandes</p>
<div class="step-value">
<strong>Champ détecté :</strong>
<code>billing_vat_number</code>
</div>
</div>
</div>
<!-- Étape 3: Non complétée -->
<div class="step" data-step="3">
<div class="step-card">
<h3>Champ TVA client</h3>
<p>Le champ utilisé pour récupérer le numéro de TVA du client dans les commandes</p>
<p style="margin-bottom: 0; color: #ef4444; font-weight: 500;">Aucun champ détecté</p>
</div>
</div>
<!-- Étape 4: Non complétée -->
<div class="step" data-step="4">
<div class="step-card">
<h3>Identifiants API</h3>
<p>Votre clé API et mot de passe pour vous connecter à la plateforme ESI Peppol</p>
<p style="margin-bottom: 0; color: #ef4444; font-weight: 500;">Aucune clé API détectée</p>
</div>
</div>
<!-- Étape 5: Non complétée -->
<div class="step" data-step="5">
<div class="step-card">
<h3>URL Webhook</h3>
<p>URL à configurer dans votre profil d'entreprise sur la plateforme</p>
<div class="step-value">
<strong>Configurez cette URL :</strong>
<code>https://peppol.esi-web.be/webhook/callback</code>
</div>
</div>
</div>
<!-- Étape 6: Non complétée (optionnelle) -->
<div class="step" data-step="6">
<div class="step-card">
<h3>Email de notification (optionnel)</h3>
<p>Adresse email pour recevoir les notifications en cas d'erreur d'envoi des factures</p>
<a href="#" class="btn">Configurer un email</a>
</div>
</div>
</div>
<div class="note">
<p><strong>Structure CSS:</strong> .step avec ::before (cercle) et ::after (ligne)</p>
<p><strong>États:</strong> Par défaut (gris) | .is-done (bleu avec check ✓)</p>
</div>
</div>
</body>
</html>