Ui update #7
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
export default function MeineSeite() {
|
export default function DashboardPage() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Das Hintergrundbild brecht aus allen Containern aus und füllt das Fenster */}
|
{/* Das Hintergrundbild brecht aus allen Containern aus und füllt das Fenster */}
|
||||||
|
|||||||
+18
-28
@@ -86,68 +86,60 @@ export default function SenderPage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-black text-white font-sans p-4 sm:p-6 lg:p-8">
|
<div>
|
||||||
<div className="max-w-4xl mx-auto space-y-6">
|
|
||||||
|
|
||||||
{/* TITEL DER SEITE */}
|
|
||||||
<header className="border-b border-neutral-800 pb-4">
|
|
||||||
<h1 className="text-2xl sm:text-3xl font-bold tracking-tight text-white">Chor-Anzeige Bedienfeld</h1>
|
|
||||||
<p className="text-neutral-400 text-sm mt-1">Lieder auswählen und live auf das Display übertragen.</p>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{/* LIEDERSUCHE */}
|
{/* LIEDERSUCHE */}
|
||||||
<div className="bg-neutral-900 border border-neutral-800 rounded-xl p-4 sm:p-6 shadow-md flex flex-col h-[500px]">
|
<div className="p-4 sm:p-6 flex flex-col h-[500px]">
|
||||||
<h2 className="text-lg font-semibold text-white mb-3 flex items-center gap-2">
|
<h2 className="text-lg font-semibold mb-3 flex items-center gap-2">
|
||||||
<span className="h-2 w-2 rounded-full bg-blue-400"></span> Liedersuche & Datenbank
|
Liedersuche & Datenbank
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Nach Songtitel oder Nummer suchen..."
|
placeholder="Nach Songtitel oder Nummer suchen..."
|
||||||
className="w-full bg-black border border-neutral-700 rounded-lg px-4 py-2.5 text-white placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
|
className="w-full border border-neutral-700 rounded-lg px-4 py-2.5 text-white placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
|
||||||
value={song_search_name}
|
value={song_search_name}
|
||||||
onChange={(e) => search(e.target.value)}
|
onChange={(e) => search(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* TABELLE */}
|
{/* TABELLE */}
|
||||||
<div className="flex-1 overflow-auto border border-neutral-800 rounded-lg bg-black">
|
<div className="flex-1 overflow-auto border border-neutral-200 dark:border-neutral-800 rounded-lg bg-white dark:bg-black">
|
||||||
<table className="w-full text-left border-collapse text-sm">
|
<table className="w-full text-left border-collapse text-sm">
|
||||||
<thead className="bg-neutral-900 sticky top-0 border-b border-neutral-800 z-10">
|
<thead className="bg-neutral-100 dark:bg-neutral-900 sticky top-0 border-b border-neutral-200 dark:border-neutral-800 z-10">
|
||||||
<tr>
|
<tr>
|
||||||
<th className="p-3 text-xs font-semibold text-neutral-400 uppercase tracking-wider">Titel</th>
|
<th className="p-3 text-xs font-semibold text-neutral-600 dark:text-neutral-400 uppercase tracking-wider">Titel</th>
|
||||||
<th className="p-3 text-xs font-semibold text-neutral-400 uppercase tracking-wider hidden sm:table-cell">Liederbuch</th>
|
<th className="p-3 text-xs font-semibold text-neutral-400 uppercase tracking-wider hidden sm:table-cell">Liederbuch</th>
|
||||||
<th className="p-3 text-xs font-semibold text-neutral-400 uppercase tracking-wider text-center">Nummer</th>
|
<th className="p-3 text-xs font-semibold text-neutral-600 dark:text-neutral-400 uppercase tracking-wider text-center">Nummer</th>
|
||||||
<th className="p-3 text-xs font-semibold text-neutral-400 uppercase tracking-wider text-right">Aktion</th>
|
<th className="p-3 text-xs font-semibold text-neutral-600 dark:text-neutral-400 uppercase tracking-wider text-right">Aktion</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="divide-y divide-neutral-800">
|
<tbody className="divide-y divide-neutral-200 dark:divide-neutral-800">
|
||||||
{searchResults.length === 0 ? (
|
{searchResults.length === 0 ? (
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={4} className="p-8 text-center text-neutral-500">Keine Lieder gefunden</td>
|
<td colSpan={4} className="p-8 text-center text-neutral-400 dark:text-neutral-500">Keine Lieder gefunden</td>
|
||||||
</tr>
|
</tr>
|
||||||
) : (
|
) : (
|
||||||
searchResults.map((song) => {
|
searchResults.map((song) => {
|
||||||
const songBook = songbooks.find((book) => book.id === song.songbook_id);
|
const songBook = songbooks.find((book) => book.id === song.songbook_id);
|
||||||
return (
|
return (
|
||||||
<tr key={`${song.songbook_id}-${song.song_id}`} className="hover:bg-neutral-900/40 transition">
|
<tr key={`${song.songbook_id}-${song.song_id}`} className="hover:bg-neutral-100/60 dark:hover:bg-neutral-900/40 transition">
|
||||||
<td className="p-3 font-medium text-white max-w-[180px] sm:max-w-none truncate">
|
<td className="p-3 font-medium text-neutral-900 dark:text-white max-w-[180px] sm:max-w-none truncate">
|
||||||
{song.title}
|
{song.title}
|
||||||
<span className="block text-xs text-neutral-400 sm:hidden mt-0.5">
|
<span className="block text-xs text-neutral-500 dark:text-neutral-400 sm:hidden mt-0.5">
|
||||||
{songBook ? songBook.name : "Unbekannt"}
|
{songBook ? songBook.name : "Unbekannt"}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td className="p-3 text-neutral-300 hidden sm:table-cell">
|
<td className="p-3 text-neutral-700 dark:text-neutral-300 hidden sm:table-cell">
|
||||||
{songBook ? songBook.name : "Unbekannt"}
|
{songBook ? songBook.name : "Unbekannt"}
|
||||||
</td>
|
</td>
|
||||||
<td className="p-3 text-center font-mono text-blue-400 font-bold">
|
<td className="p-3 text-center font-mono text-blue-600 dark:text-blue-400 font-bold">
|
||||||
{song.song_number}
|
{song.song_number}
|
||||||
</td>
|
</td>
|
||||||
<td className="p-3 text-right">
|
<td className="p-3 text-right">
|
||||||
<button
|
<button
|
||||||
onClick={() => sendID(String(song.song_id), String(song.songbook_id))}
|
onClick={() => sendID(String(song.song_id), String(song.songbook_id))}
|
||||||
className="bg-black hover:bg-blue-600 border border-neutral-700 hover:border-blue-500 text-neutral-200 hover:text-white font-medium rounded-md px-3 py-1.5 transition text-xs"
|
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"
|
||||||
>
|
>
|
||||||
Anzeigen
|
Anzeigen
|
||||||
</button>
|
</button>
|
||||||
@@ -160,8 +152,6 @@ export default function SenderPage() {
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user