1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 03:35:18 +02:00
AdventureLog/src/routes/+layout.svelte
2024-04-05 22:22:09 +00:00

22 lines
506 B
Svelte

<script lang="ts">
export let data;
import Footer from "$lib/components/Footer.svelte";
import Navbar from "$lib/components/Navbar.svelte";
import "../app.css";
// only show footer if scrolled to the bottom
</script>
<!-- passes the user object to the navbar component -->
<Navbar user={data.user} />
<section>
<slot />
</section>
<!-- <Footer /> -->
<!-- <style>
section {
margin-top: 2rem;
margin-bottom: 5rem;
/* gives the footer space! */
}
</style> -->