Skip to content
Open
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
768 changes: 470 additions & 298 deletions apps/site/src/components/ChatModal.astro

Large diffs are not rendered by default.

32 changes: 18 additions & 14 deletions apps/site/src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const desktopLinks = navLinks.filter((link) => link?.sideOnly !== true);
---

<header
id="site-header"
class="fixed left-0 right-0 top-0 z-40 flex items-center justify-between px-6 py-4 shadow-md bg-background"
>
<div class="flex items-center gap-4">
Expand All @@ -31,22 +32,25 @@ const desktopLinks = navLinks.filter((link) => link?.sideOnly !== true);
id="search-header-trigger"
data-track="search_open"
data-track-label="header_search"
class="inline-flex items-center justify-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors border border-border/60 cursor-pointer"
class="inline-flex items-center justify-between gap-3 rounded-full px-3 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors border border-border/70 cursor-pointer"
aria-label="Search CodingCat.dev (⌘K)"
>
<svg
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
>
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.3-4.3"></path>
</svg>
<span class="inline-flex items-center gap-1.5">
<svg
class="size-3.5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
>
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.3-4.3"></path>
</svg>
<span class="hidden sm:inline font-mono text-[11px] uppercase tracking-wider text-foreground">Search</span>
</span>
<span class="hidden md:inline-flex items-center text-[10px] font-mono bg-muted text-foreground px-1.5 py-0.5 rounded border border-border">⌘K</span>
</button>
<ThemeToggle />
Expand Down
Loading
Loading