mobile-friendly (#2)
All checks were successful
Deployment / Install (push) Successful in 3m26s

Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
Reviewed-on: #2
This commit is contained in:
Benjamin Palko 2025-05-01 13:33:06 -04:00
parent 9dfbdcc554
commit fbcb3179c9
12 changed files with 170 additions and 122 deletions

View file

@ -1,30 +1,36 @@
<script lang="ts">
import { Menu } from 'lucide-svelte';
interface Props {
drawerId: string;
title: string;
pages: { slug: string; name: string }[];
route: { id: string | null };
}
let { title, pages, route }: Props = $props();
let { drawerId, title, pages, route }: Props = $props();
</script>
<nav class="navbar">
<div class="flex flex-1 items-center gap-4">
<a href="/">
<div class="avatar avatar-placeholder w-12">
<div class="avatar avatar-placeholder animate-pulse">
<div
class="ring-primary ring-offset-base-100 bg-base-200 text-base-content mx-auto w-10 rounded-full ring-2 ring-offset-2 transition-all ease-in hover:w-12 hover:text-2xl"
class="ring-primary ring-offset-base-100 bg-base-200 text-base-content mx-auto w-8 rounded-full ring-2 ring-offset-2 transition-all ease-in hover:text-2xl lg:w-12"
>
<span class="text-2xl"> {title.at(0)} </span>
<span class="text-xl lg:text-2xl"> {title.at(0)} </span>
</div>
</div>
</a>
<h2 class="text-primary text-3xl font-light">
<h2 class="text-primary text-2xl font-light lg:text-3xl">
<span class="text-base-content font-semibold">Benjamin</span>
Palko
</h2>
</div>
<div class="flex gap-4 text-lg">
<label for={drawerId} aria-label="open sidebar" class="btn btn-square btn-outline lg:hidden">
<Menu />
</label>
<div class="hidden gap-4 text-lg lg:flex">
{#each pages as page (page.slug)}
<a
href={page.slug}