diff --git a/resources/css/app.css b/resources/css/app.css index f957684..0a3b171 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -65,6 +65,8 @@ @theme inline { --color-status-reminded: var(--status-reminded); --text-xs: 0.694rem; + + --shadow-arrow: 0 2px 1px rgb(0 0 0 / 0.1) } @@ -111,7 +113,7 @@ :root { --secondary-foreground: hsl(0 0% 9%); --muted: var(--color-slate-50); --muted-foreground: var(--color-slate-400); - --accent: var(--color-stone-50); + --accent: var(--color-slate-50); --accent-foreground: hsl(0 0% 9%); --destructive: var(--color-red-500); --destructive-foreground: hsl(0 0% 98%); @@ -143,9 +145,10 @@ :root { .dark { --background: var(--color-neutral-800); --foreground: var(--color-neutral-300); - --card: hsl(0 0% 3.9%); + --card: var(--color-neutral-800); --card-foreground: hsl(0 0% 98%); - --popover: hsl(0 0% 3.9%); + /* --popover: hsl(0 0% 3.9%); */ + --popover: var(--color-neutral-900); --popover-foreground: hsl(0 0% 98%); --primary: var(--color-orange-300); --primary-foreground: var(--color-orange-600); diff --git a/resources/js/components/CustomerDialog.vue b/resources/js/components/CustomerDialog.vue index f4fa69d..b372e6c 100644 --- a/resources/js/components/CustomerDialog.vue +++ b/resources/js/components/CustomerDialog.vue @@ -73,6 +73,31 @@ const cancelChanges = (event: Event | null) => { } } +const handleLogoUpload = (event: Event) => { + const target = event.target as HTMLInputElement; + if (target.files && target.files[0]) { + const file = target.files[0]; + + // Hier könntest du die Datei validieren (Größe, Typ, etc.) + if (file.size > 2 * 1024 * 1024) { // 2MB + alert('Die Datei ist zu groß. Maximal 2MB erlaubt.'); + return; + } + + // Hier könntest du die Datei hochladen und den Pfad speichern + // customer.value.logo = ... // Pfad zur hochgeladenen Datei + + // Für die Vorschau: + const reader = new FileReader(); + reader.onload = (e) => { + if (customer.value) { + customer.value.logo = e.target?.result as string; + } + }; + reader.readAsDataURL(file); + } +}; +