À écrire.
+
+ [01] Parcours
+ Un parcours pas en ligne droite
+
+ Je suis ingénieur diplômé de l’INSA Rennes en électronique et informatique industrielle,
+ avec un semestre d’échange à Erlangen, en Allemagne. Mon projet de fin d’études portait sur
+ un fauteuil roulant électrique équipé de capteurs pour détecter les obstacles, destiné à des
+ personnes polyhandicapées.
+
+
+ J’ai ensuite enseigné les mathématiques et la technologie au collège. Pendant le confinement
+ de 2020, j’ai mis en place les outils de communication de l’équipe et coordonné les cours à
+ distance de tout l’établissement. C’est là que j’ai appris à rendre simples des outils
+ techniques pour des personnes qui n’ont pas le temps de s’y plonger.
+
+
+ J’ai aussi été consultant en numérique responsable, à mesurer et réduire l’impact des
+ services numériques. Et dans une association d’interprétariat, j’ai rédigé un audit complet
+ de l’organisation et de ses outils, dont les recommandations ont été reprises par l’équipe
+ informatique.
+
+
+
+
+ [02] Associations
+ Les associations, de l’intérieur
+
+ Depuis plusieurs années, je suis bénévole dans des associations autour du handicap, du vélo,
+ de la transition écologique et du logement. J’y ai vu des équipes faire des choses
+ essentielles avec peu de moyens, et une informatique qui leur prend souvent plus d’énergie
+ qu’elle ne leur en rend.
+
+
+ C’est en aidant ces structures que mon activité a pris forme : des adhésions automatisées et
+ une tablette de suivi des pièces pour un atelier vélo associatif, puis une mission pour
+ remettre à plat sept ans d’informatique sans informaticien dans une association.
+
+
+
+
+ [03] Pourquoi
+ Pourquoi en indépendant
+
+ Travailler à mon compte me permet de choisir les structures que j’accompagne, et de
+ travailler comme je pense qu’il faut le faire : en transparence, avec des outils libres, et
+ en rendant les équipes autonomes plutôt que dépendantes de moi.
+
+
+ À côté, je bricole beaucoup : électronique, son, vélo. Vous trouverez tout ça dans
+ l’atelier.
+
+ Parlons de votre structure →
+
diff --git a/src/pages/atelier/[...slug].astro b/src/pages/atelier/[...slug].astro
new file mode 100644
index 0000000..ced1499
--- /dev/null
+++ b/src/pages/atelier/[...slug].astro
@@ -0,0 +1,18 @@
+---
+import { getCollection, render } from 'astro:content';
+import Projet from '../../layouts/Projet.astro';
+
+export async function getStaticPaths() {
+ const projets = await getCollection(
+ 'projets',
+ ({ data }) => data.categorie === 'atelier' && !data.brouillon,
+ );
+ return projets.map((projet) => ({ params: { slug: projet.id }, props: { projet } }));
+}
+
+const { projet } = Astro.props;
+const { Content } = await render(projet);
+---
+
+
+ [00] Infogérance · associations · TPE · ESS
Que l’informatique devienne un outil, pas un frein
-
+
J’accompagne les associations, les TPE et les acteurs de l’économie sociale et solidaire
dans la gestion et la sécurisation de leur informatique, en toute transparence.
- Parlons de votre structure
+ Parlons de votre structure →
- Ce que je fais
- {services.map((s) => (
-
- {s.titre}
- {s.texte}
-
- ))}
+ [01] Services
+ Ce que je fais pour vous
+
+ {services.map((s) => (
+
+ {s.titre}
+ {s.texte}
+
+ ))}
+
- {misEnAvant.length > 0 && (
+
+ [02] Méthode
+ Comment je travaille
+
+ {etapes.map((e) => (
+ -
+
{e.titre}
+ {e.texte}
+
+ ))}
+
+
+
+ {realisations.length > 0 && (
+ [03] Réalisations
Quelques réalisations
-
- Tous les projets
+ {RUBRIQUES.realisations.chapeau}
+
+
+ )}
+
+ {atelier.length > 0 && (
+
+ [04] Atelier
+ Projets personnels
+ {RUBRIQUES.atelier.chapeau}
+
)}
diff --git a/src/pages/mentions-legales.astro b/src/pages/mentions-legales.astro
new file mode 100644
index 0000000..3d431f6
--- /dev/null
+++ b/src/pages/mentions-legales.astro
@@ -0,0 +1,7 @@
+---
+import Base from '../layouts/Base.astro';
+---
+
+ Mentions légales
+ À compléter : nom, statut (EI), SIRET, adresse, contact, hébergeur.
+
diff --git a/src/pages/projets/index.astro b/src/pages/projets/index.astro
deleted file mode 100644
index c82c297..0000000
--- a/src/pages/projets/index.astro
+++ /dev/null
@@ -1,26 +0,0 @@
----
-import { getCollection } from 'astro:content';
-import Base from '../../layouts/Base.astro';
-
-const projets = (await getCollection('projets', ({ data }) => !data.brouillon)).sort(
- (a, b) => b.data.date.valueOf() - a.data.date.valueOf(),
-);
-
-const sections = [
- { titre: 'Réalisations', items: projets.filter((p) => p.data.categorie === 'client') },
- { titre: 'Atelier', items: projets.filter((p) => p.data.categorie === 'atelier') },
-];
----
-
- Projets
- {sections.map(({ titre, items }) => items.length > 0 && (
-
- ))}
-
diff --git a/src/pages/projets/[...slug].astro b/src/pages/realisations/[...slug].astro
similarity index 74%
rename from src/pages/projets/[...slug].astro
rename to src/pages/realisations/[...slug].astro
index ea43d3c..6bf369f 100644
--- a/src/pages/projets/[...slug].astro
+++ b/src/pages/realisations/[...slug].astro
@@ -3,7 +3,10 @@ import { getCollection, render } from 'astro:content';
import Projet from '../../layouts/Projet.astro';
export async function getStaticPaths() {
- const projets = await getCollection('projets', ({ data }) => !data.brouillon);
+ const projets = await getCollection(
+ 'projets',
+ ({ data }) => data.categorie === 'client' && !data.brouillon,
+ );
return projets.map((projet) => ({ params: { slug: projet.id }, props: { projet } }));
}
diff --git a/src/pages/realisations/index.astro b/src/pages/realisations/index.astro
new file mode 100644
index 0000000..34c6656
--- /dev/null
+++ b/src/pages/realisations/index.astro
@@ -0,0 +1,7 @@
+---
+import PageRubrique from '../../layouts/PageRubrique.astro';
+import { projetsRubrique } from '../../utils/projets';
+
+const projets = await projetsRubrique('realisations');
+---
+
diff --git a/src/styles/global.css b/src/styles/global.css
index d6aa450..290c6d4 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -1,155 +1,212 @@
-/*
- The CSS in this style tag is based off of Bear Blog's default CSS.
- https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css
- License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
- */
-
+/* ---------- Couleurs ---------- */
:root {
- --accent: #2337ff;
- --accent-dark: #000d8a;
- --black: 15, 18, 25;
- --gray: 96, 115, 159;
- --gray-light: 229, 233, 240;
- --gray-dark: 34, 41, 57;
- --gray-gradient: rgba(var(--gray-light), 50%), #fff;
- --box-shadow:
- 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%), 0 16px 32px
- rgba(var(--gray), 33%);
-}
-@font-face {
- font-family: "Atkinson";
- src: url("/fonts/atkinson-regular.woff") format("woff");
- font-weight: 400;
- font-style: normal;
- font-display: swap;
-}
-@font-face {
- font-family: "Atkinson";
- src: url("/fonts/atkinson-bold.woff") format("woff");
- font-weight: 700;
- font-style: normal;
- font-display: swap;
-}
-body {
- font-family: "Atkinson", sans-serif;
- margin: 0;
- padding: 0;
- text-align: left;
- background: linear-gradient(var(--gray-gradient)) no-repeat;
- background-size: 100% 600px;
- word-wrap: break-word;
- overflow-wrap: break-word;
- color: rgb(var(--gray-dark));
- font-size: 20px;
- line-height: 1.7;
-}
-main {
- width: 720px;
- max-width: calc(100% - 2em);
- margin: auto;
- padding: 3em 1em;
-}
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- margin: 0 0 0.5rem 0;
- color: rgb(var(--black));
- line-height: 1.2;
-}
-h1 {
- font-size: 3.052em;
-}
-h2 {
- font-size: 2.441em;
-}
-h3 {
- font-size: 1.953em;
-}
-h4 {
- font-size: 1.563em;
-}
-h5 {
- font-size: 1.25em;
-}
-strong,
-b {
- font-weight: 700;
-}
-a {
- color: var(--accent);
-}
-a:hover {
- color: var(--accent);
-}
-p {
- margin-bottom: 1em;
-}
-.prose p {
- margin-bottom: 2em;
-}
-textarea {
- width: 100%;
- font-size: 16px;
-}
-input {
- font-size: 16px;
-}
-table {
- width: 100%;
-}
-img {
- max-width: 100%;
- height: auto;
- border-radius: 8px;
-}
-code {
- padding: 2px 5px;
- background-color: rgb(var(--gray-light));
- border-radius: 2px;
-}
-pre {
- padding: 1.5em;
- border-radius: 8px;
-}
-pre > code {
- all: unset;
-}
-blockquote {
- border-left: 4px solid var(--accent);
- padding: 0 0 0 20px;
- margin: 0;
- font-size: 1.333em;
-}
-hr {
- border: none;
- border-top: 1px solid rgb(var(--gray-light));
-}
-@media (max-width: 720px) {
- body {
- font-size: 18px;
- }
- main {
- padding: 1em;
- }
+ --papier: #f6f3ec;
+ --papier-carte: #fbf9f4;
+ --encre: #1c1b19;
+ --encre-douce: #5c5750;
+ --trait: #d8d1c3;
+ --point: #ddd6c8;
+ --accent: #b93c0b;
+ --accent-fond: #f7e1d3;
+ --sur-accent: #ffffff;
+ --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
+ --mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+ --largeur: 64rem;
+ color-scheme: light;
}
-.sr-only {
- border: 0;
- padding: 0;
- margin: 0;
- position: absolute !important;
- height: 1px;
- width: 1px;
- overflow: hidden;
- /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */
- clip: rect(1px 1px 1px 1px);
- /* maybe deprecated but we need to support legacy browsers */
- clip: rect(1px, 1px, 1px, 1px);
- /* modern browsers, clip-path works inwards from each corner */
- clip-path: inset(50%);
- /* added line to stop words getting smushed together (as they go onto separate lines and some screen readers do not understand line feeds as a space */
- white-space: nowrap;
+:root[data-theme="dark"] {
+ --papier: #15171b;
+ --papier-carte: #1b1e23;
+ --encre: #ece7dd;
+ --encre-douce: #a9a39a;
+ --trait: #30343b;
+ --point: #262a30;
+ --accent: #f08a4b;
+ --accent-fond: #3a2618;
+ --sur-accent: #15171b;
+ color-scheme: dark;
}
+
+/* Sans JavaScript, on suit le réglage du système */
+@media (prefers-color-scheme: dark) {
+ :root:not([data-theme]) {
+ --papier: #15171b;
+ --papier-carte: #1b1e23;
+ --encre: #ece7dd;
+ --encre-douce: #a9a39a;
+ --trait: #30343b;
+ --point: #262a30;
+ --accent: #f08a4b;
+ --accent-fond: #3a2618;
+ --sur-accent: #15171b;
+ color-scheme: dark;
+ }
+}
+
+/* ---------- Base ---------- */
+*, *::before, *::after { box-sizing: border-box; }
+body {
+ margin: 0;
+ font-family: var(--sans);
+ font-size: 1.0625rem;
+ line-height: 1.65;
+ color: var(--encre);
+ background-color: var(--papier);
+ background-image: radial-gradient(var(--point) 1px, transparent 1px);
+ background-size: 22px 22px;
+}
+img { max-width: 100%; height: auto; display: block; }
+a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
+a:hover { text-decoration-thickness: 2px; }
+:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
+h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; text-wrap: balance; }
+h1 { font-size: clamp(1.8rem, 2vw + 1.1rem, 2.3rem); font-weight: 800; }
+h2 { font-size: clamp(1.45rem, 1.2vw + 1.05rem, 1.85rem); font-weight: 750; }
+h3 { font-size: 1.15rem; font-weight: 700; }
+p { margin: 0 0 1rem; text-wrap: pretty; }
+code { font-family: var(--mono); font-size: 0.9em; }
+
+/* ---------- Mise en page ---------- */
+.entete nav, main, .pied { max-width: var(--largeur); margin-inline: auto; padding-inline: 1rem; }
+main { padding-block: 3rem 4rem; }
+main > section { margin-bottom: 4.5rem; padding-top: 1.25rem; border-top: 1px solid var(--trait); }
+main > section:first-child { border-top: 0; padding-top: 0; }
+
+/* ---------- En-tête ---------- */
+.entete { border-bottom: 1px solid var(--trait); background: var(--papier); }
+.entete nav {
+ display: flex; flex-wrap: wrap; align-items: center;
+ gap: 0.5rem 1.5rem; padding-block: 0.9rem;
+}
+.logo { font-family: var(--mono); font-weight: 700; color: var(--encre); text-decoration: none; }
+.logo span { color: var(--accent); }
+.entete ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0 auto; padding: 0; }
+.entete ul a {
+ font-family: var(--mono); font-size: 0.9rem; color: var(--encre-douce);
+ text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent;
+}
+.entete ul a:hover, .entete ul a.active { color: var(--encre); border-bottom-color: var(--accent); }
+
+.bascule {
+ display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
+ padding: 0; cursor: pointer; color: var(--encre);
+ background: var(--papier-carte); border: 1px solid var(--trait);
+}
+.bascule:hover { border-color: var(--encre); }
+.bascule svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
+:root[data-theme="dark"] .icone-lune,
+:root:not([data-theme="dark"]) .icone-soleil { display: none; }
+:root:not([data-theme]) .bascule { display: none; }
+
+/* ---------- Pied de page ---------- */
+.pied { padding-block: 2rem 3rem; border-top: 1px solid var(--trait); color: var(--encre-douce); font-size: 0.95rem; }
+.pied p { margin: 0; }
+
+/* ---------- Éléments communs ---------- */
+.etiquette {
+ font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase;
+ letter-spacing: 0.08em; color: var(--encre-douce); margin-bottom: 0.5rem;
+}
+.chapeau { font-size: 1.15rem; color: var(--encre-douce); max-width: 56rem; }
+.accroche h1 { max-width: none; }
+.suite { margin-top: 1.25rem; }
+
+.bouton {
+ display: inline-block; font-family: var(--mono); font-weight: 700;
+ padding: 0.7rem 1.1rem; color: var(--sur-accent); background: var(--accent);
+ border: 1.5px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); text-decoration: none;
+}
+.bouton:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
+@media (prefers-reduced-motion: no-preference) {
+ .bouton { transition: transform 0.12s, box-shadow 0.12s; }
+}
+
+/* ---------- Services ---------- */
+.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
+.service { border-top: 2px solid var(--encre); padding-top: 0.9rem; }
+.service p:last-child { margin-bottom: 0; }
+
+/* ---------- Étapes reliées par des pointillés ---------- */
+.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: etape; }
+.etapes li { position: relative; counter-increment: etape; }
+.etapes li::before {
+ content: "0" counter(etape); display: inline-block; font-family: var(--mono); font-size: 0.8rem;
+ padding: 0.15rem 0.5rem; border: 1px solid var(--encre); background: var(--papier); margin-bottom: 0.75rem;
+}
+.etapes li:last-child::before { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
+@media (min-width: 52rem) {
+ .etapes { grid-template-columns: repeat(4, 1fr); }
+ .etapes li:not(:last-child)::after {
+ content: ""; position: absolute; top: 1.05rem; left: 3.2rem; right: -1.25rem;
+ border-top: 1px dashed var(--encre-douce);
+ }
+}
+
+/* ---------- Filtres ---------- */
+.filtres { margin-bottom: 1.5rem; }
+.filtres ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
+.filtres a {
+ display: inline-block; font-family: var(--mono); font-size: 0.8rem; padding: 0.3rem 0.7rem;
+ color: var(--encre); text-decoration: none; border: 1px solid var(--trait); background: var(--papier-carte);
+}
+.filtres a:hover { border-color: var(--encre); }
+.filtres a[aria-current="page"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
+
+/* ---------- Planches : cartes de projets ---------- */
+.planches { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
+.planche {
+ position: relative; display: flex; flex-direction: column; min-height: 16rem;
+ padding: 1.25rem; background: var(--papier-carte); border: 1px solid var(--trait);
+}
+.planche:hover { border-color: var(--encre); }
+.planche:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
+.planche-haut { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
+.planche-image {
+ width: calc(100% + 2.5rem); max-width: none; margin: 0 -1.25rem 1rem;
+ aspect-ratio: 4 / 3; object-fit: cover; border-block: 1px solid var(--trait);
+}
+.planche h3 a { color: var(--encre); text-decoration: none; }
+.planche h3 a:focus-visible { outline: none; }
+.planche h3 a::after { content: ""; position: absolute; inset: 0; }
+.planche p { color: var(--encre-douce); font-size: 0.95rem; }
+
+.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: auto 0 0; padding: 0; }
+.tags li {
+ font-family: var(--mono); font-size: 0.75rem; padding: 0.1rem 0.45rem;
+ color: var(--accent); background: var(--accent-fond);
+}
+
+/* ---------- Fiche projet ---------- */
+.fiche { max-width: 56rem; }
+.cartouche {
+ display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; align-items: baseline;
+ margin: 2rem 0; padding-block: 1rem; border-block: 1px solid var(--trait);
+}
+.cartouche dt {
+ font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
+ letter-spacing: 0.08em; color: var(--encre-douce);
+}
+.cartouche dd { margin: 0; }
+.technos { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
+.technos li {
+ font-family: var(--mono); font-size: 0.8rem; padding: 0.1rem 0.45rem;
+ border: 1px solid var(--trait); background: var(--papier-carte);
+}
+.illustration { border: 1px solid var(--trait); margin-block: 2rem; }
+.contenu h2 { font-size: 1.4rem; margin-top: 2.5rem; }
+
+/* ---------- À propos ---------- */
+.presentation { display: grid; gap: 2rem; align-items: start; }
+@media (min-width: 52rem) {
+ .presentation:has(.portrait) { grid-template-columns: 1fr 16rem; }
+}
+.portrait { width: 100%; max-width: 16rem; border: 1px solid var(--trait); }
+.texte { max-width: 56rem; }
+
+/* Filtres sur place : ancres invisibles */
+.ancre { position: fixed; top: 0; left: 0; width: 0; height: 0; }
+
+
+/* Pas de marge sous la dernière section */
+main > section:last-child { margin-bottom: 0; }
diff --git a/src/utils/projets.ts b/src/utils/projets.ts
new file mode 100644
index 0000000..9d9ba96
--- /dev/null
+++ b/src/utils/projets.ts
@@ -0,0 +1,32 @@
+import { getCollection, type CollectionEntry } from 'astro:content';
+import { BESOINS, DOMAINES, type Rubrique } from '../consts';
+
+type Projet = CollectionEntry<'projets'>;
+export type Tag = { id: string; label: string };
+
+export const rubriqueProjet = (p: Projet): Rubrique =>
+ p.data.categorie === 'atelier' ? 'atelier' : 'realisations';
+
+export const urlProjet = (p: Projet) => `/${rubriqueProjet(p)}/${p.id}/`;
+
+export const tagsProjet = (p: Projet): Tag[] =>
+ p.data.categorie === 'atelier'
+ ? p.data.domaines.map((id) => ({ id, label: DOMAINES[id] }))
+ : p.data.besoins.map((id) => ({ id, label: BESOINS[id] }));
+
+export const tagsPresents = (rubrique: Rubrique, projets: Projet[]): Tag[] => {
+ const ids = new Set(projets.flatMap((p) => tagsProjet(p).map((t) => t.id)));
+ const source: Record = rubrique === 'atelier' ? DOMAINES : BESOINS;
+ return Object.entries(source)
+ .filter(([id]) => ids.has(id))
+ .map(([id, label]) => ({ id, label }));
+};
+
+export const projetsRubrique = async (rubrique: Rubrique) =>
+ (
+ await getCollection(
+ 'projets',
+ ({ data }) =>
+ data.categorie === (rubrique === 'atelier' ? 'atelier' : 'client') && !data.brouillon,
+ )
+ ).sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf());