1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-03 20:25:18 +02:00
AdventureLog/src/routes/+layout.svelte

23 lines
506 B
Svelte
Raw Normal View History

<script lang="ts">
2024-04-05 22:17:20 +00:00
export let data;
2024-04-02 22:02:20 +00:00
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 -->
2024-04-05 22:17:20 +00:00
<Navbar user={data.user} />
<section>
2024-04-02 22:02:20 +00:00
<slot />
</section>
<!-- <Footer /> -->
2024-04-02 22:02:20 +00:00
<!-- <style>
section {
margin-top: 2rem;
margin-bottom: 5rem;
/* gives the footer space! */
}
2024-04-02 22:02:20 +00:00
</style> -->