refactor: update mobile-nav, projects-item, timeline, and tools-item components

This commit is contained in:
Bart van der Braak 2024-01-15 10:57:01 +01:00
parent b13ece80d5
commit 998d788cef
4 changed files with 8 additions and 5 deletions

View file

@ -23,6 +23,7 @@
</Sheet.Trigger> </Sheet.Trigger>
<Sheet.Content side="right" class="pr-0"> <Sheet.Content side="right" class="pr-0">
<MobileLink href="/" class="flex items-center" bind:open> <MobileLink href="/" class="flex items-center" bind:open>
<span class="sr-only">Return to home</span>
<img src={Icons.logoIcon} class="mr-2 h-4 w-4" alt="icon of hellob.art" /> <img src={Icons.logoIcon} class="mr-2 h-4 w-4" alt="icon of hellob.art" />
<span class="font-mono font-bold tracking-tighter">{siteConfig.name}</span> <span class="font-mono font-bold tracking-tighter">{siteConfig.name}</span>
</MobileLink> </MobileLink>

View file

@ -12,7 +12,7 @@
<Card.Root class="hover:bg-muted/50"> <Card.Root class="hover:bg-muted/50">
<Card.Header class="grid grid-cols-[1fr_110px] items-start gap-4 space-y-0"> <Card.Header class="grid grid-cols-[1fr_110px] items-start gap-4 space-y-0">
<div class="space-y-1"> <div class="space-y-1">
<Card.Title>{title}</Card.Title> <Card.Title tag="h2">{title}</Card.Title>
<Card.Description> <Card.Description>
{description} {description}
</Card.Description> </Card.Description>

View file

@ -6,7 +6,7 @@
<Card.Root> <Card.Root>
<Card.Header class="pb-3"> <Card.Header class="pb-3">
<Card.Title>Timeline</Card.Title> <Card.Title tag="h2">Timeline</Card.Title>
<Card.Description> <Card.Description>
A time-based overview showcasing when I embarked on projects, jobs, certifications, and A time-based overview showcasing when I embarked on projects, jobs, certifications, and
various events. various events.

View file

@ -8,10 +8,12 @@
<Card.Root class="mb-4 inline-block h-full w-full hover:bg-muted/50"> <Card.Root class="mb-4 inline-block h-full w-full hover:bg-muted/50">
<Card.Header class="flex flex-row items-center justify-between space-y-0 pb-1"> <Card.Header class="flex flex-row items-center justify-between space-y-0 pb-1">
<Card.Title> <div>
<h4 class="text-2xl font-bold">{name}</h4> <Card.Title tag="h2" class="text-2xl font-bold">
{name}
</Card.Title>
<span class="text-sm font-medium">{tagLine}</span> <span class="text-sm font-medium">{tagLine}</span>
</Card.Title> </div>
{#if enhanced} {#if enhanced}
<enhanced:img <enhanced:img
src={logo} src={logo}