Skip to content

Commit 040edd5

Browse files
committed
feat(site): replace floating AJ button with persistent resizable right drawer & SearchModal Ask agent item
1 parent aeeac77 commit 040edd5

7 files changed

Lines changed: 989 additions & 1025 deletions

File tree

‎apps/site/src/components/ChatModal.astro‎

Lines changed: 453 additions & 347 deletions
Large diffs are not rendered by default.

‎apps/site/src/components/Header.astro‎

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const desktopLinks = navLinks.filter((link) => link?.sideOnly !== true);
1313
---
1414

1515
<header
16+
id="site-header"
1617
class="fixed left-0 right-0 top-0 z-40 flex items-center justify-between px-6 py-4 shadow-md bg-background"
1718
>
1819
<div class="flex items-center gap-4">
@@ -31,23 +32,26 @@ const desktopLinks = navLinks.filter((link) => link?.sideOnly !== true);
3132
id="search-header-trigger"
3233
data-track="search_open"
3334
data-track-label="header_search"
34-
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"
35+
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"
3536
aria-label="Search CodingCat.dev (⌘K)"
3637
>
37-
<svg
38-
class="size-4"
39-
viewBox="0 0 24 24"
40-
fill="none"
41-
stroke="currentColor"
42-
stroke-width="2"
43-
stroke-linecap="round"
44-
stroke-linejoin="round"
45-
aria-hidden="true"
46-
>
47-
<circle cx="11" cy="11" r="8"></circle>
48-
<path d="m21 21-4.3-4.3"></path>
49-
</svg>
50-
<span class="hidden md:inline-flex items-center text-[10px] font-mono bg-muted px-1.5 py-0.5 rounded border border-border">⌘K</span>
38+
<span class="inline-flex items-center gap-1.5">
39+
<svg
40+
class="size-3.5"
41+
viewBox="0 0 24 24"
42+
fill="none"
43+
stroke="currentColor"
44+
stroke-width="2"
45+
stroke-linecap="round"
46+
stroke-linejoin="round"
47+
aria-hidden="true"
48+
>
49+
<circle cx="11" cy="11" r="8"></circle>
50+
<path d="m21 21-4.3-4.3"></path>
51+
</svg>
52+
<span class="hidden sm:inline font-mono text-[11px] uppercase tracking-wider">Search</span>
53+
</span>
54+
<span class="hidden md:inline-flex items-center text-[10px] font-mono text-muted-foreground">⌘K</span>
5155
</button>
5256
<ThemeToggle />
5357
<button

0 commit comments

Comments
 (0)