Skip to content
Merged
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
19 changes: 13 additions & 6 deletions src/components/app/PieHome.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<div
class="mx-auto w-full max-w-xl px-4 pb-16 pt-5 sm:max-w-2xl sm:px-6 sm:pb-20 sm:pt-7 lg:max-w-3xl lg:px-8 lg:pt-8"
>
<header class="flex items-center justify-between gap-3 sm:gap-5">
<div>
<header class="flex items-center justify-between gap-3 sm:gap-4">
<div class="min-w-0 flex-1">
<h1
{@attach capturePageHeading}
data-home-heading
Expand All @@ -51,12 +51,19 @@
</p>
</div>
<div
class="flex items-center gap-1.5 rounded-full border bg-card px-3 py-1.5 text-sm font-semibold sm:gap-2 sm:px-4 sm:py-2 sm:text-base"
class="flex shrink-0 items-center gap-2 whitespace-nowrap rounded-full border bg-card px-3 py-2 sm:gap-2.5 sm:px-3.5 sm:py-2.5"
title={`${game.streak.current}-day streak${game.streak.longest ? ` · best ${game.streak.longest}` : ""}`}
aria-label={`${game.streak.current}-day streak${game.streak.longest ? `, best ${game.streak.longest}` : ""}`}
>
<span aria-hidden="true">🔥</span>
<span class="tabular-nums">{game.streak.current}</span>
<span class="text-xs font-medium text-muted-foreground sm:text-sm">day streak</span>
<span class="inline-flex items-center gap-1 leading-none" aria-hidden="true">
<span class="text-sm sm:text-base">🔥</span>
<span class="text-sm font-bold tabular-nums tracking-tight sm:text-base"
>{game.streak.current}</span
>
</span>
<span class="text-xs font-medium leading-none text-muted-foreground sm:text-sm" aria-hidden="true"
>day streak</span
>
</div>
</header>

Expand Down