diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f550998..82a2fc2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,6 +48,7 @@ Les fichiers YAML sont dans `site/pages/`, organisés en sous-dossiers par secti - Persisté en `localStorage('palette')` pour les visites suivantes - CSS : variables `--color-primary`, `--color-accent`, etc. + classe `.palette-light`/`.palette-dark` - Overrides light mode dans `main.css` (`.palette-light .text-white` → couleur adaptive) +- Admin : tous les `color: white` dans les composants admin sont remplacés par `hsl(var(--color-text))` sauf les boutons sur fond `hsl(var(--color-primary))` (`AdminSaveButton`, `.login-btn`) ## Shadoks diff --git a/README.md b/README.md index c92d8a6..6a9df21 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,10 @@ site/pages/ Administration via `/admin/pages` (éditeur YAML, authentifié). +Le hero de la home (`home.yml`) supporte deux blocs dépliables : +- `approach` + `axes` : approche par dimension (numérique → code source, etc.) +- `audience` + `addressees` : à qui s'adresse le projet (collectifs, entreprises, collectivités) + ## Développement ```bash diff --git a/app/components/admin/AdminFieldText.vue b/app/components/admin/AdminFieldText.vue index 2f18ada..857e168 100644 --- a/app/components/admin/AdminFieldText.vue +++ b/app/components/admin/AdminFieldText.vue @@ -44,7 +44,7 @@ const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-' border-radius: 0.5rem; border: 1px solid hsl(var(--color-surface-light)); background: hsl(var(--color-bg)); - color: white; + color: hsl(var(--color-text)); font-size: 0.875rem; transition: border-color 0.2s; } diff --git a/app/components/admin/AdminFieldTextarea.vue b/app/components/admin/AdminFieldTextarea.vue index afddc12..a615a12 100644 --- a/app/components/admin/AdminFieldTextarea.vue +++ b/app/components/admin/AdminFieldTextarea.vue @@ -45,7 +45,7 @@ const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-' border-radius: 0.5rem; border: 1px solid hsl(var(--color-surface-light)); background: hsl(var(--color-bg)); - color: white; + color: hsl(var(--color-text)); font-size: 0.875rem; resize: vertical; min-height: 5rem; diff --git a/app/components/admin/AdminFormSection.vue b/app/components/admin/AdminFormSection.vue index bf87921..1f21fe6 100644 --- a/app/components/admin/AdminFormSection.vue +++ b/app/components/admin/AdminFormSection.vue @@ -32,7 +32,7 @@ defineProps<{ padding: 0.75rem 1rem; font-weight: 600; font-size: 0.9rem; - color: white; + color: hsl(var(--color-text)); cursor: pointer; background: hsl(var(--color-bg)); user-select: none; diff --git a/app/components/admin/AdminMarkdownEditor.vue b/app/components/admin/AdminMarkdownEditor.vue index 9a7d39e..b5183e3 100644 --- a/app/components/admin/AdminMarkdownEditor.vue +++ b/app/components/admin/AdminMarkdownEditor.vue @@ -129,7 +129,7 @@ const renderedHtml = computed(() => { } .md-tab--active { - color: white; + color: hsl(var(--color-text)); background: hsl(var(--color-surface)); } @@ -139,7 +139,7 @@ const renderedHtml = computed(() => { transition: color 0.2s; } .md-fullscreen:hover, -.md-fullscreen--active { color: white; } +.md-fullscreen--active { color: hsl(var(--color-text)); } .md-body { display: flex; @@ -171,7 +171,7 @@ const renderedHtml = computed(() => { padding: 1rem; border: none; background: hsl(var(--color-bg)); - color: white; + color: hsl(var(--color-text)); font-family: var(--font-mono, monospace); font-size: 0.85rem; line-height: 1.7; diff --git a/app/components/admin/AdminMediaBrowser.vue b/app/components/admin/AdminMediaBrowser.vue index 9417ccc..ce7d9f6 100644 --- a/app/components/admin/AdminMediaBrowser.vue +++ b/app/components/admin/AdminMediaBrowser.vue @@ -169,7 +169,7 @@ function formatSize(bytes: number): string { .media-name { font-size: 0.72rem; - color: white; + color: hsl(var(--color-text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/app/components/admin/AdminSidebar.vue b/app/components/admin/AdminSidebar.vue index 50f33b5..92452f0 100644 --- a/app/components/admin/AdminSidebar.vue +++ b/app/components/admin/AdminSidebar.vue @@ -139,7 +139,7 @@ async function logout() { .sidebar-link:hover { background: hsl(var(--color-surface)); - color: white; + color: hsl(var(--color-text)); } .sidebar-link--active { diff --git a/app/components/home/HeroSection.vue b/app/components/home/HeroSection.vue index 33d38b7..99fcb82 100644 --- a/app/components/home/HeroSection.vue +++ b/app/components/home/HeroSection.vue @@ -65,6 +65,8 @@ const hero = computed(() => { citations: Array.isArray(raw.citations) ? raw.citations : [], approach: raw.approach || '', axes: Array.isArray(raw.axes) ? raw.axes : [], + audience: raw.audience || '', + addressees: Array.isArray(raw.addressees) ? raw.addressees : [], } }) diff --git a/app/components/home/TypewriterText.vue b/app/components/home/TypewriterText.vue index 191b9a7..49e82ca 100644 --- a/app/components/home/TypewriterText.vue +++ b/app/components/home/TypewriterText.vue @@ -34,6 +34,17 @@ + + +
{{ hero.audience }}
+