diff --git a/frontend/src/lib/components/Avatar.svelte b/frontend/src/lib/components/Avatar.svelte new file mode 100644 index 0000000..459b9bd --- /dev/null +++ b/frontend/src/lib/components/Avatar.svelte @@ -0,0 +1,78 @@ + + +{#if src} + {label} +{:else} + +{/if} diff --git a/frontend/src/routes/dashboard/+layout.svelte b/frontend/src/routes/dashboard/+layout.svelte index 41162cb..20cf648 100644 --- a/frontend/src/routes/dashboard/+layout.svelte +++ b/frontend/src/routes/dashboard/+layout.svelte @@ -15,6 +15,7 @@ import { Separator } from '@/components/ui/separator' import Logo from '$lib/components/Logo.svelte' import TeamSwitcher from '$lib/components/TeamSwitcher.svelte' + import Avatar from '$lib/components/Avatar.svelte' import RunningTimesToast from '$lib/components/RunningTimesToast.svelte' import { Home, Calendar, LogOut, Menu, X, Moon, Sun, Route, Settings, Bike } from 'lucide-svelte' import { toggleMode, mode } from 'mode-watcher' @@ -123,7 +124,10 @@ Zeile, das Team-Dropdown darunter. -->