Skip to content

Commit

Permalink
Create component Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanEstrada003 committed Aug 4, 2024
1 parent 0d5d033 commit da81f13
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"editor.formatOnType": false,
"notebook.formatOnSave.enabled": true,
"editor.formatOnPaste": false
}
13 changes: 4 additions & 9 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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();
</script>



<svelte:head>
<title>{$page.data.title} - KOKOA</title>
<meta name="description" content={$page.data.description} />
</svelte:head>

<nav>
<a href="/">Inicio</a>
<a href="/eventos">Eventos</a>
<a href="/proyectos">Proyectos</a>
<a href="/contacto">Contacto</a>
<a href="/miembros">Miembros</a>
</nav>
<!--<Toaster richColors closeButton />-->
<Navbar/>

<Toaster richColors closeButton />
{@render children()}
7 changes: 7 additions & 0 deletions src/routes/components/Navbar.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<nav>
<a href="/">Inicio</a>
<a href="/events">Eventos</a>
<a href="/projects">Proyectos</a>
<a href="/contact">Contacto</a>
<a href="/member">Miembros</a>
</nav>

0 comments on commit da81f13

Please sign in to comment.