diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 2312b76..446f9dc 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -3,6 +3,8 @@ import { uploadCSVAction } from "./actions"; import { useEffect, useState } from "react"; +import Card from "@/components/Card" + interface Songbook { id: number; name: string; @@ -103,25 +105,20 @@ export default function AdminPage() { }; return ( -
+
{/* HEADER */} -
-

Chor-Anzeige Admin Panel

-

Datenbank verwalten, neue Bücher erstellen und Lieder einpflegen.

-
+ +

+ Datenbank verwalten, neue Bücher erstellen und Lieder einpflegen +

{/* DREISPALTIRES GRID */}
- - {/* KARTE 1: NEUES LIEDERBUCH */} -
-
-

- Neues Liederbuch -

-
+ + +
setNewBookLanguage(e.target.value)} />
-
-
- -
+
+ - {/* KARTE 2: LIED HINZUFÜGEN */} -
-
-

- Lied hinzufügen -

-
+ +
@@ -240,25 +220,22 @@ export default function AdminPage() { className="w-full text-sm text-neutral-400 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-xs file:font-semibold file:bg-neutral-800 file:text-neutral-200 hover:file:bg-neutral-700 file:transition cursor-pointer" />
+
+ + {uploadStatus && ( +

+ {uploadStatus} +

+ )} +
-
- -
- - {uploadStatus && ( -

- {uploadStatus} -

- )} -
-
- +
diff --git a/components/Card.tsx b/components/Card.tsx new file mode 100644 index 0000000..0a8450d --- /dev/null +++ b/components/Card.tsx @@ -0,0 +1,14 @@ +import { ReactNode } from "react"; + +export default function Card({title, children}: {title: string, children: ReactNode}) { + return ( +
+

+ {title} +

+
+ {children} +
+
+ ); +} \ No newline at end of file diff --git a/components/Textfield.tsx b/components/Textfield.tsx new file mode 100644 index 0000000..e69de29