do not show footer on signup page
All checks were successful
deploy / build-and-deploy (push) Successful in 22s
All checks were successful
deploy / build-and-deploy (push) Successful in 22s
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
---
|
||||
import WebsiteLayout from './WebsiteLayout.astro';
|
||||
|
||||
interface Props {
|
||||
signupEnabled: boolean;
|
||||
}
|
||||
|
||||
const { signupEnabled } = Astro.props;
|
||||
---
|
||||
|
||||
<WebsiteLayout title="Anmeldung">
|
||||
<div
|
||||
class="flex justify-center w-full min-h-screen bg-base-200"
|
||||
class:list={[!signupEnabled ? 'max-h-screen overflow-hidden' : undefined]}
|
||||
>
|
||||
<div class="relative grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 my-12 bg-base-100 shadow-lg h-min">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</WebsiteLayout>
|
@ -7,9 +7,11 @@ import Menu from '@components/website/layout/Menu.svelte';
|
||||
interface Props {
|
||||
title: string;
|
||||
description?: string;
|
||||
|
||||
footer?: boolean;
|
||||
}
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
const { title, description, footer = true } = Astro.props;
|
||||
---
|
||||
|
||||
<BaseLayout title={title} description={description} viewTransition>
|
||||
@ -19,7 +21,7 @@ const { title, description } = Astro.props;
|
||||
<nav>
|
||||
<Menu client:load transition:persist />
|
||||
</nav>
|
||||
<footer class="flex justify-around items-center h-14 w-full bg-base-300 relative">
|
||||
<footer class="flex justify-around items-center h-14 w-full bg-base-300 relative" hidden={!footer}>
|
||||
<div class="hidden sm:block">
|
||||
<p>© {new Date().getFullYear()} mhsl.eu</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user