Main #21

Merged
robin merged 37 commits from main into feat-dashboard 2026-07-29 10:48:35 +00:00
2 changed files with 16 additions and 7 deletions
Showing only changes of commit b4084fdb1b - Show all commits

No files matched your search

+7 -7
View File
@@ -122,7 +122,7 @@ export default function AdminPage() {
<Card title="Neues Liederbuch">
<div className="space-y-4">
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Name des Buchs</label>
<Input.Label>Name des Buchs</Input.Label>
<Input.Text
type="text"
placeholder="z.B. Gesangbuch"
@@ -131,7 +131,7 @@ export default function AdminPage() {
/>
</div>
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Sprache (Optional)</label>
<Input.Label>Sprache (Optional)</Input.Label>
<Input.Text
type="text"
placeholder="z.B. Deutsch"
@@ -151,7 +151,7 @@ export default function AdminPage() {
<Card title="Lied hinzufügen">
<div className="space-y-4">
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liederbuch wählen</label>
<Input.Label>Liederbuch wählen</Input.Label>
<Input.Select
value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)}
@@ -166,7 +166,7 @@ export default function AdminPage() {
</div>
<div className="grid grid-cols-3 gap-2">
<div className="col-span-1">
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Nummer</label>
<Input.Label>Nummer</Input.Label>
<Input.Text
type="text"
placeholder="12a"
@@ -175,7 +175,7 @@ export default function AdminPage() {
/>
</div>
<div className="col-span-2">
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liedtitel</label>
<Input.Label>Titel</Input.Label>
<Input.Text
type="text"
placeholder="Großer Gott, wir..."
@@ -193,7 +193,7 @@ export default function AdminPage() {
<input type="hidden" name="songbookId" value={selectedSongbookId} />
<div className="space-y-4">
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Ziel-Liederbuch</label>
<Input.Label>Ziel-Liederbuch</Input.Label>
<Input.Select
value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)}
@@ -207,7 +207,7 @@ export default function AdminPage() {
</Input.Select>
</div>
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Datei auswählen (.csv)</label>
<Input.Label>Datei auswählen (.csv)</Input.Label>
<Input.File
name="csvFile"
accept=".csv"
+9
View File
@@ -47,9 +47,18 @@ function Button({ children, ...props }: ComponentPropsWithoutRef<"button">) {
)
}
function Label( {children}: ComponentPropsWithoutRef<"label">) {
return (
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">
{children}
</label>
)
}
export const Input = {
Text: Textfield,
Select: Dropdown,
File: File,
Button: Button,
Label: Label,
};