Files
gong.gp/src/lib/components/Timeline.svelte
T
sucupiraandClaude Opus 4.8 cd9b9b093c Refonte complète en SvelteKit (méthode OKI, AI-Overview ready)
Reconstruit le site statique mono-page (Bulma + htmx + Strapi) en SvelteKit 2 +
Svelte 5 (runes) + TypeScript, 100 % statique (adapter-static), auto-hébergé.

- Contenu enrichi à partir du dossier documentaire sourcé : 28 pages (histoire,
  Mé 67, procès 1968, 9 fiches militants, idéologie, héritage, publications,
  charte, orientation, sources, FAQ, actualités, contact, mentions légales).
- Souveraineté : retrait de Bulma/htmx/mustache/ionicons/Plausible/Google Fonts
  et de l'API Strapi. Polices Archivo/Inter et sprite SVG auto-hébergés (zéro emoji).
- Identité GONG (drapeau vert/blanc/rouge), thème sombre par défaut + clair AA,
  cadences motion gwoka, KineticText, timeline, 404 kréyòl, PWA hors-ligne.
- SEO/AI-Overview : HTML sémantique, JSON-LD (Organization, Person, Event,
  FAQPage, Article...), hreflang, sitemap dynamique, robots/humans.txt.
- Sécurité : CSP hachée + en-têtes (.htaccess o2switch + _headers Cloudflare), HSTS.
- Actualités éditées via Sveltia CMS (git-based) ; Strapi retiré.

npm run build : vert · npm run check : 0 erreur / 0 warning · JS 97 Ko gzip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 23:57:37 -04:00

87 lines
1.9 KiB
Svelte

<script lang="ts">
// Chronologie verticale accessible (liste ordonnée). Jalons majeurs mis en exergue.
// Révélation au scroll en cascade gwoka ; contenu complet sans JS.
import { reveal } from '$lib/motion/reveal';
import type { EvenementChrono } from '$lib/data/types';
interface Props {
evenements: EvenementChrono[];
}
let { evenements }: Props = $props();
</script>
<ol class="timeline">
{#each evenements as e, i (e.date + e.evenement)}
<li class="timeline__item" class:is-major={e.majeur} use:reveal={i}>
<span class="timeline__dot" aria-hidden="true"></span>
<div class="timeline__body">
<p class="timeline__date">{e.date}</p>
<h3 class="timeline__event">{e.evenement}</h3>
<p class="timeline__ctx">{e.contexte}</p>
</div>
</li>
{/each}
</ol>
<style>
.timeline {
list-style: none;
margin: 0;
padding: 0;
position: relative;
}
.timeline::before {
content: '';
position: absolute;
left: 7px;
top: 6px;
bottom: 6px;
width: 2px;
background: var(--line);
}
.timeline__item {
position: relative;
padding: 0 0 var(--space-3) var(--space-4);
}
.timeline__dot {
position: absolute;
left: 0;
top: 6px;
width: 16px;
height: 16px;
border-radius: 2px;
background: var(--noir);
border: 2px solid var(--muted-fort);
transform: rotate(45deg);
}
.is-major .timeline__dot {
border-color: var(--accent);
background: var(--accent);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.timeline__date {
font-family: var(--font-display);
font-weight: 700;
text-transform: uppercase;
font-size: 0.82rem;
letter-spacing: 0.05em;
color: var(--accent);
margin: 0 0 0.2rem;
}
.timeline__event {
font-size: 1.05rem;
text-transform: none;
letter-spacing: 0;
margin: 0 0 0.3rem;
}
.is-major .timeline__event {
font-size: 1.25rem;
text-transform: uppercase;
}
.timeline__ctx {
color: var(--muted);
margin: 0;
font-size: 0.96rem;
}
</style>