diff --git a/src/lib/config.ts b/src/lib/config.ts index 77fbb8c..efc071d 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -1,6 +1,7 @@ export const site = { name: 'Mihkel Martin Kasterpalu', author: 'Mihkel Martin Kasterpalu', + email: 'mihkel@kasterpalu.ee', description: 'Portfoolio - Arendaja, Disainer, Muusik, DJ, Ettevõtja.', image: '/web-app-manifest-512x512.png' }; @@ -8,6 +9,7 @@ export const site = { export const stuffSite = { name: 'Kasterpalu Stuff', author: 'Mihkel Martin Kasterpalu', + email: 'mihkel@kasterpalu.ee', description: 'Minimängud ja muud huvitavat. Kui mul tekkis lahe idee ja suutsin sellest midagi lahedat arendada siis näed seda ka siin.', image: '/web-app-manifest-512x512.png' diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 800bc28..466b4aa 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -10,10 +10,12 @@ import Moon from 'lucide-svelte/icons/moon'; import LaptopMinimal from 'lucide-svelte/icons/laptop-minimal'; import { site } from '$lib/config'; + import { onMount } from 'svelte'; let { children } = $props(); let theme: string = $state('system'); + let email: string | undefined = $state(undefined); const cycleTheme = () => { if (theme === 'dark') { @@ -27,6 +29,10 @@ setMode('dark'); } }; + + onMount(() => { + email = site.email; + }); @@ -60,13 +66,27 @@ {@render children()} -