From da81f1315587fd0687c013c257b496768a75cfa6 Mon Sep 17 00:00:00 2001 From: BryanEstrada003 Date: Sun, 4 Aug 2024 17:31:25 -0500 Subject: [PATCH] Create component Navbar --- .vscode/settings.json | 6 ++++++ src/routes/+layout.svelte | 13 ++++--------- src/routes/components/Navbar.svelte | 7 +++++++ 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 src/routes/components/Navbar.svelte diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9e9b51d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "editor.formatOnSave": true, + "editor.formatOnType": false, + "notebook.formatOnSave.enabled": true, + "editor.formatOnPaste": false +} \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 04659d8..a5e8afd 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,23 +2,18 @@ import "../app.postcss"; import { Toaster } from "svelte-sonner"; import { page } from "$app/stores"; + import Navbar from "./components/Navbar.svelte"; let { children } = $props(); - {$page.data.title} - KOKOA - - + + + {@render children()} \ No newline at end of file diff --git a/src/routes/components/Navbar.svelte b/src/routes/components/Navbar.svelte new file mode 100644 index 0000000..865bbbe --- /dev/null +++ b/src/routes/components/Navbar.svelte @@ -0,0 +1,7 @@ +