From 3e638b9689e8e919dde586b7d6139c31a6a298fc Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Sat, 24 Aug 2024 23:44:07 -0500 Subject: [PATCH] feature: Unroll loops to ease the toll on the Rust compiler --- src/lib/components/layout/Navbar.svelte | 34 ++++++++++++------------- src/routes/projects/+page.svelte | 15 +++++------ 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 1474b48..1558efb 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -11,27 +11,27 @@ { text: "Contacto", href: "/contact" }, { text: "Miembros", href: "/members" }, ]; + + const { 0: link1, 1: link2, 2: link3, 3: link4, 4: link5 } = LINKS; diff --git a/src/routes/projects/+page.svelte b/src/routes/projects/+page.svelte index 8e69570..fb3ceeb 100644 --- a/src/routes/projects/+page.svelte +++ b/src/routes/projects/+page.svelte @@ -2,16 +2,15 @@ import CommonCard from "$lib/components/CommonCard.svelte"; let { data } = $props(); + let { 0: project } = data.projects;

{data.description}

- {#each data.projects as project} - - {/each} +