Ui corrections #15
No files matched your search
+7
-7
@@ -122,7 +122,7 @@ export default function AdminPage() {
|
|||||||
<Card title="Neues Liederbuch">
|
<Card title="Neues Liederbuch">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div>
|
<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
|
<Input.Text
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="z.B. Gesangbuch"
|
placeholder="z.B. Gesangbuch"
|
||||||
@@ -131,7 +131,7 @@ export default function AdminPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<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
|
<Input.Text
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="z.B. Deutsch"
|
placeholder="z.B. Deutsch"
|
||||||
@@ -151,7 +151,7 @@ export default function AdminPage() {
|
|||||||
<Card title="Lied hinzufügen">
|
<Card title="Lied hinzufügen">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div>
|
<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
|
<Input.Select
|
||||||
value={selectedSongbookId}
|
value={selectedSongbookId}
|
||||||
onChange={(e) => setSelectedSongbookId(e.target.value)}
|
onChange={(e) => setSelectedSongbookId(e.target.value)}
|
||||||
@@ -166,7 +166,7 @@ export default function AdminPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-3 gap-2">
|
<div className="grid grid-cols-3 gap-2">
|
||||||
<div className="col-span-1">
|
<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
|
<Input.Text
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="12a"
|
placeholder="12a"
|
||||||
@@ -175,7 +175,7 @@ export default function AdminPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-span-2">
|
<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
|
<Input.Text
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Großer Gott, wir..."
|
placeholder="Großer Gott, wir..."
|
||||||
@@ -193,7 +193,7 @@ export default function AdminPage() {
|
|||||||
<input type="hidden" name="songbookId" value={selectedSongbookId} />
|
<input type="hidden" name="songbookId" value={selectedSongbookId} />
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div>
|
<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
|
<Input.Select
|
||||||
value={selectedSongbookId}
|
value={selectedSongbookId}
|
||||||
onChange={(e) => setSelectedSongbookId(e.target.value)}
|
onChange={(e) => setSelectedSongbookId(e.target.value)}
|
||||||
@@ -207,7 +207,7 @@ export default function AdminPage() {
|
|||||||
</Input.Select>
|
</Input.Select>
|
||||||
</div>
|
</div>
|
||||||
<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
|
<Input.File
|
||||||
name="csvFile"
|
name="csvFile"
|
||||||
accept=".csv"
|
accept=".csv"
|
||||||
|
|||||||
@@ -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 = {
|
export const Input = {
|
||||||
Text: Textfield,
|
Text: Textfield,
|
||||||
Select: Dropdown,
|
Select: Dropdown,
|
||||||
File: File,
|
File: File,
|
||||||
Button: Button,
|
Button: Button,
|
||||||
|
Label: Label,
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user