Ui update #7

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

No files matched your search

+1 -3
View File
@@ -207,12 +207,10 @@ export default function AdminPage() {
</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> <label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Datei auswählen (.csv)</label>
<input <Input.File
type="file"
name="csvFile" name="csvFile"
accept=".csv" accept=".csv"
required required
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"
/> />
</div> </div>
<div className="mt-6 space-y-3"> <div className="mt-6 space-y-3">
+10
View File
@@ -25,7 +25,17 @@ function Dropdown({ children, ...props }: ComponentPropsWithoutRef<"select">) {
); );
} }
export function File({ ...props }: ComponentPropsWithoutRef<"input">) {
return (
<input
type="file"
className="p-1 text-sm w-full rounded-lg border border-neutral-300 dark:border-neutral-700 bg-white dark:bg-black text-black dark:text-white cursor-pointer file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:font-semibold file:transition file:bg-neutral-100 file:text-neutral-900 dark:file:bg-neutral-800 dark:file:text-white hover:file:bg-neutral-900 hover:file:text-white dark:hover:file:bg-white dark:hover:file:text-black"
{...props}
/>
);
}
export const Input = { export const Input = {
Text: Textfield, Text: Textfield,
Select: Dropdown, Select: Dropdown,
File: File,
}; };