Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Unroll loops to ease the toll on the Rust compiler #52

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions src/lib/components/layout/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@
{ text: "Contacto", href: "/contact" },
{ text: "Miembros", href: "/members" },
];

const { 0: link1, 1: link2, 2: link3, 3: link4, 4: link5 } = LINKS;
</script>

<nav class="flex items-center justify-between p-4">
<img src={gecko_code} alt="Logo de Kokoa" width="52.9" height="24.4" />
<div class="flex gap-x-8 text-lg">
{#each LINKS as { href, text } (href)}
<a {href} class="relative font-fira hover:underline">
<span
aria-hidden="true"
class="absolute -left-3 text-lime-500 {current_path !== href ? 'hidden' : ''}"
>
{"{"}
</span>
{text}
<span
aria-hidden="true"
class="absolute -right-3 text-lime-500 {current_path !== href ? 'hidden' : ''}"
>
{"}"}
</span>
</a>
{/each}
<a {link1.href} class="relative font-fira hover:underline">
<span
aria-hidden="true"
class="absolute -left-3 text-lime-500 {current_path !== href ? 'hidden' : ''}"
>
{"{"}
</span>
{link1.text}
<span
aria-hidden="true"
class="absolute -right-3 text-lime-500 {current_path !== href ? 'hidden' : ''}"
>
{"}"}
</span>
</a>
</div>
</nav>
15 changes: 7 additions & 8 deletions src/routes/projects/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
import CommonCard from "$lib/components/CommonCard.svelte";

let { data } = $props();
let { 0: project } = data.projects;
</script>

<p class="font-medium">{data.description}</p>
<div class="mt-8 flex flex-col items-center sm:flex sm:flex-row sm:flex-wrap">
{#each data.projects as project}
<CommonCard
term={project.term}
name={project.name}
category={project.category}
description={project.description}
/>
{/each}
<CommonCard
term={project.term}
name={project.name}
category={project.category}
description={project.description}
/>
</div>
Loading