Files
librodrome/app/components/admin/AdminFieldText.vue
Yvv 9d92c4a5b3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix typos blanches admin lightmode + hero audience
- 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>
2026-03-15 16:08:03 +01:00

57 lines
1.1 KiB
Vue

<template>
<div class="field">
<label :for="id" class="field-label">{{ label }}</label>
<input
:id="id"
:value="modelValue"
type="text"
class="field-input"
:placeholder="placeholder"
@input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)"
/>
</div>
</template>
<script setup lang="ts">
const props = defineProps<{
label: string
modelValue: string
placeholder?: string
}>()
defineEmits<{
'update:modelValue': [value: string]
}>()
const id = computed(() => `field-${props.label.toLowerCase().replace(/\s+/g, '-')}`)
</script>
<style scoped>
.field {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
.field-label {
font-size: 0.8rem;
font-weight: 500;
color: hsl(var(--color-text-muted));
}
.field-input {
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
border: 1px solid hsl(var(--color-surface-light));
background: hsl(var(--color-bg));
color: hsl(var(--color-text));
font-size: 0.875rem;
transition: border-color 0.2s;
}
.field-input:focus {
outline: none;
border-color: hsl(var(--color-primary) / 0.5);
}
</style>