Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Site vitrine purement statique de la carte éducative **STeaMi**, hébergé sur

```text
data/contenu.json ← Tous les textes, liens, spécifications et listes (à modifier en priorité)
assets/css/style.css ← Couleurs (:root), mise en page et transitions
assets/css/style.css ← Couleurs (:root), polices (@font-face), mise en page et transitions
assets/fonts/ ← Polices auto-hébergées WOFF2 (Space Grotesk et Figtree, SIL OFL 1.1)
assets/js/main.js ← Interactivité légère (scrollspy, animations d'apparition, retour en haut, menu mobile)
assets/img/ ← Photos de la carte et logos locaux (plateformes, partenaires, financeurs)
scripts/build.py ← Générateur statique (Python 3 stdlib uniquement)
Expand Down
85 changes: 75 additions & 10 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,72 @@
/*
* Feuille de style principale de steami.cc
* Fidèle à l'identité visuelle STeaMi : blanc, gris clair (#E8E6E6), jaune (#FFBF23) et trait noir.
* Polices auto-hébergées (SIL OFL 1.1) : Space Grotesk pour les titres, Figtree en repli libre de Proxima Nova.
*/

@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Figtree';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'Figtree';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('../fonts/figtree-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Figtree';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('../fonts/figtree-italic-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'Figtree';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('../fonts/figtree-italic-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
--blanc: #ffffff;
--gris-bandeau: #e8e6e6;
Expand All @@ -15,7 +79,8 @@

--police-titre: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
sans-serif;
--police-texte: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--police-texte: 'Proxima Nova', 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto,
Helvetica, Arial, sans-serif;

--largeur-max: 1120px;
--rayon: 8px;
Expand Down Expand Up @@ -271,7 +336,7 @@ summary:focus-visible {
margin: 0 0 0.35rem;
font-family: var(--police-titre);
font-size: clamp(2.4rem, 4.6vw, 3.35rem);
font-weight: 800;
font-weight: 700;
line-height: 1.08;
letter-spacing: -0.025em;
color: var(--noir);
Expand Down Expand Up @@ -376,7 +441,7 @@ summary:focus-visible {
margin: 0 0 1.2rem;
font-family: var(--police-titre);
font-size: clamp(1.65rem, 3vw, 2.15rem);
font-weight: 800;
font-weight: 700;
color: var(--noir);
}

Expand Down Expand Up @@ -404,7 +469,7 @@ summary:focus-visible {
margin: 0 0 2.5rem;
font-family: var(--police-titre);
font-size: clamp(1.85rem, 3.2vw, 2.35rem);
font-weight: 800;
font-weight: 700;
color: var(--noir);
}

Expand Down Expand Up @@ -480,7 +545,7 @@ summary:focus-visible {
text-align: center;
font-family: var(--police-titre);
font-size: clamp(1.7rem, 3vw, 2.15rem);
font-weight: 800;
font-weight: 700;
color: var(--noir);
}

Expand Down Expand Up @@ -568,7 +633,7 @@ summary:focus-visible {
margin: 0;
font-family: var(--police-titre);
font-size: clamp(1.65rem, 3vw, 2.15rem);
font-weight: 800;
font-weight: 700;
color: var(--noir);
}

Expand Down Expand Up @@ -627,7 +692,7 @@ summary:focus-visible {
margin: 0 0 0.75rem;
font-family: var(--police-titre);
font-size: clamp(2rem, 3.8vw, 2.85rem);
font-weight: 800;
font-weight: 700;
letter-spacing: -0.025em;
color: var(--noir);
}
Expand Down Expand Up @@ -716,7 +781,7 @@ summary:focus-visible {
margin: 0 0 1rem;
font-family: var(--police-titre);
font-size: clamp(1.6rem, 2.8vw, 2rem);
font-weight: 800;
font-weight: 700;
color: var(--noir);
}

Expand Down Expand Up @@ -776,7 +841,7 @@ summary:focus-visible {

.pied-marque-nom {
font-family: var(--police-titre);
font-weight: 800;
font-weight: 700;
font-size: 1.25rem;
line-height: 1.15;
}
Expand Down Expand Up @@ -958,7 +1023,7 @@ summary:focus-visible {
margin: 0 0 1.5rem;
font-family: var(--police-titre);
font-size: clamp(2rem, 4vw, 2.6rem);
font-weight: 800;
font-weight: 700;
color: var(--noir);
}

Expand Down
Binary file added assets/fonts/figtree-italic-latin-ext.woff2
Binary file not shown.
Binary file added assets/fonts/figtree-italic-latin.woff2
Binary file not shown.
Binary file added assets/fonts/figtree-latin-ext.woff2
Binary file not shown.
Binary file added assets/fonts/figtree-latin.woff2
Binary file not shown.
Binary file added assets/fonts/space-grotesk-latin-ext.woff2
Binary file not shown.
Binary file added assets/fonts/space-grotesk-latin.woff2
Binary file not shown.
2 changes: 2 additions & 0 deletions scripts/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def test_generation_complete(self) -> None:
self.assertEqual((dist / "CNAME").read_text(encoding="utf-8").strip(), "steami.cc")
self.assertTrue((dist / ".nojekyll").is_file())
self.assertTrue((dist / "assets" / "css" / "style.css").is_file())
self.assertTrue((dist / "assets" / "fonts" / "space-grotesk-latin.woff2").is_file())
self.assertTrue((dist / "assets" / "fonts" / "figtree-latin.woff2").is_file())
self.assertTrue((dist / "assets" / "js" / "main.js").is_file())
self.assertIn('assets/js/main.js', index)
self.assertIn('data-anim="float"', index)
Expand Down
Loading