feat: add Textfield component
This commit is contained in:
1 parent
f26060cf6b
commit
b97e5ea7bb
3 files changed
+24
-10
No files matched your search
+5
-8
@@ -4,6 +4,7 @@ import { uploadCSVAction } from "./actions";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import Card from "@/components/Card"
|
||||
import Textfield from "@/components/Textfield";
|
||||
|
||||
interface Songbook {
|
||||
id: number;
|
||||
@@ -121,20 +122,18 @@ export default function AdminPage() {
|
||||
<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
|
||||
<Textfield
|
||||
type="text"
|
||||
placeholder="z.B. Gesangbuch"
|
||||
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
|
||||
value={newBookName}
|
||||
onChange={(e) => setNewBookName(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Sprache (Optional)</label>
|
||||
<input
|
||||
<Textfield
|
||||
type="text"
|
||||
placeholder="z.B. Deutsch"
|
||||
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
|
||||
value={newBookLanguage}
|
||||
onChange={(e) => setNewBookLanguage(e.target.value)}
|
||||
/>
|
||||
@@ -168,20 +167,18 @@ export default function AdminPage() {
|
||||
<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
|
||||
<Textfield
|
||||
type="text"
|
||||
placeholder="12a"
|
||||
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
|
||||
value={number}
|
||||
onChange={(e) => setNumber(e.target.value)}
|
||||
/>
|
||||
</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
|
||||
<Textfield
|
||||
type="text"
|
||||
placeholder="Großer Gott, wir..."
|
||||
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
|
||||
value={title}
|
||||
onChange={(e) => setTitle(e.target.value)}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user