Ui update #7

Merged
robin merged 13 commits from ui-update into main 2026-07-25 17:51:19 +00:00
3 changed files with 22 additions and 10 deletions
Showing only changes of commit ccf36197fe - Show all commits

No files matched your search

+5 -6
View File
@@ -138,12 +138,12 @@ export default function AdminPage() {
onChange={(e) => setNewBookLanguage(e.target.value)} onChange={(e) => setNewBookLanguage(e.target.value)}
/> />
</div> </div>
<button <Input.Button
onClick={addSongbook} onClick={addSongbook}
className="w-full mt-6 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg px-4 py-2.5 transition text-sm shadow-sm" className="w-full mt-6 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg px-4 py-2.5 transition text-sm shadow-sm"
> >
Liederbuch erstellen Liederbuch erstellen
</button> </Input.Button>
</div> </div>
</Card> </Card>
@@ -183,7 +183,7 @@ export default function AdminPage() {
/> />
</div> </div>
</div> </div>
<button onClick={addSong} className="w-full mt-6 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg px-4 py-2.5 transition text-sm shadow-sm">Lied speichern</button> <Input.Button onClick={addSong} className="w-full mt-6 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg px-4 py-2.5 transition text-sm shadow-sm">Lied speichern</Input.Button>
</div> </div>
</Card> </Card>
@@ -214,12 +214,11 @@ export default function AdminPage() {
/> />
</div> </div>
<div className="mt-6 space-y-3"> <div className="mt-6 space-y-3">
<button <Input.Button
type="submit" type="submit"
className="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg px-4 py-2.5 transition text-sm shadow-sm"
> >
Hochladen & Verarbeiten Hochladen & Verarbeiten
</button> </Input.Button >
{uploadStatus && ( {uploadStatus && (
<p className="text-xs text-center font-medium px-3 py-2 rounded-md bg-black border border-neutral-800 text-blue-400"> <p className="text-xs text-center font-medium px-3 py-2 rounded-md bg-black border border-neutral-800 text-blue-400">
{uploadStatus} {uploadStatus}
+3 -3
View File
@@ -138,12 +138,12 @@ export default function SenderPage() {
{song.song_number} {song.song_number}
</td> </td>
<td className="p-3 text-right"> <td className="p-3 text-right">
<button <Input.Button
onClick={() => sendID(String(song.song_id), String(song.songbook_id))} onClick={() => sendID(String(song.song_id), String(song.songbook_id))}
className="bg-white dark:bg-black hover:bg-blue-600 dark:hover:bg-blue-600 border border-neutral-300 dark:border-neutral-700 hover:border-blue-600 dark:hover:border-blue-500 text-neutral-700 dark:text-neutral-200 hover:text-white font-medium rounded-md px-3 py-1.5 transition text-xs shadow-sm" className="bg-white dark:bg-black hover:bg-blue-600 dark:hover:bg-blue-600 border border-neutral-300 dark:border-neutral-700 hover:border-blue-600 dark:hover:border-blue-500 hover:text-white font-medium rounded-md px-3 py-1.5 transition text-xs"
> >
Anzeigen Anzeigen
</button> </Input.Button>
</td> </td>
</tr> </tr>
); );
+14 -1
View File
@@ -25,7 +25,7 @@ function Dropdown({ children, ...props }: ComponentPropsWithoutRef<"select">) {
); );
} }
export function File({ ...props }: ComponentPropsWithoutRef<"input">) { function File({ ...props }: ComponentPropsWithoutRef<"input">) {
return ( return (
<input <input
type="file" type="file"
@@ -34,8 +34,21 @@ export function File({ ...props }: ComponentPropsWithoutRef<"input">) {
/> />
); );
} }
function Button({ children, ...props }: ComponentPropsWithoutRef<"button">) {
return (
<button
className="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg px-4 py-2.5 transition text-sm shadow-sm"
{...props}
>
{children}
</button>
)
}
export const Input = { export const Input = {
Text: Textfield, Text: Textfield,
Select: Dropdown, Select: Dropdown,
File: File, File: File,
Button: Button,
}; };