Fix typos blanches admin lightmode + hero audience
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- Remplace color:white → hsl(var(--color-text)) dans tous les composants admin
  (AdminFieldText, AdminFieldTextarea, AdminFormSection, AdminMarkdownEditor,
  AdminMediaBrowser, AdminSidebar, book/index, book/[slug], login, messages, site, songs)
- Conserve color:white uniquement sur fond primary (AdminSaveButton, login-btn)
- Hero home : ajout bloc audience/addressees (clé distincte pour éviter conflit YAML)
- home.yml : réordonne axes (citoyenne en premier — effet triangle)
- TypewriterText : affiche le second bloc avec séparateur fin

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-03-15 16:08:03 +01:00
parent 8f548afb17
commit 9d92c4a5b3
17 changed files with 53 additions and 19 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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 : [],
}
})
</script>

View File

@@ -34,6 +34,17 @@
</div>
</dl>
</div>
<!-- Audience + Addressees -->
<div v-if="hero.audience" class="hero-approach hero-audience">
<p class="hero-approach-text">{{ hero.audience }}</p>
<dl v-if="hero.addressees?.length" class="hero-axes">
<div v-for="(item, i) in hero.addressees" :key="i" class="hero-axis">
<dt>{{ item.label }}</dt>
<dd>{{ item.value }}</dd>
</div>
</dl>
</div>
</div>
</details>
</div>
@@ -50,6 +61,8 @@ interface HeroData {
citations: string[]
approach: string
axes: HeroAxis[]
audience: string
addressees: HeroAxis[]
}
defineProps<{
@@ -213,6 +226,12 @@ defineProps<{
text-align: center;
}
.hero-audience {
margin-top: 1rem;
padding-top: 0.75rem;
border-top: 1px solid hsl(var(--color-text) / 0.07);
}
.hero-approach-text {
font-family: var(--font-sans);
font-size: 0.82rem;