diff --git a/frontend/src/lib/components/layout/PortfolioCarousel.svelte b/frontend/src/lib/components/layout/PortfolioCarousel.svelte index a9f0986..6ec473e 100644 --- a/frontend/src/lib/components/layout/PortfolioCarousel.svelte +++ b/frontend/src/lib/components/layout/PortfolioCarousel.svelte @@ -38,7 +38,7 @@
-

Our Portfolio

+

Our Portfolio

diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 964ac40..11ad8af 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -6,9 +6,16 @@ import { toast } from 'svelte-sonner'; import { authStore } from '$lib/stores/auth.svelte'; import { onMount } from 'svelte'; + import { page } from '$app/stores'; const { children } = $props(); + let hideFooter = $derived( + $page.url.pathname === '/admin/schedule' || + $page.url.pathname === '/account' || + $page.url.searchParams.get('format') === 'pdf' + ); + // Default to 'top-center' (mobile-first approach) let toasterPosition = $state<'top-center' | 'bottom-center'>('top-center'); @@ -59,25 +66,33 @@ /> - - +
+ + -
- {#if authStore.currentUser?.role === 'unverified_email'} -
- Please verify your email address to continue. Didn't recieve the email? Check your spam - folder, or - to resend it. -
+
+ {#if authStore.currentUser?.role === 'unverified_email'} +
+ Please verify your email address to continue. Didn't recieve the email? Check your spam + folder, or + to resend it. +
+ {/if} + {@render children?.()} +
+ + {#if !hideFooter} +
+ © {new Date().getFullYear()} Crussell Nails. All rights reserved. +
{/if} - {@render children?.()} -
+