Skip to content

Commit f51e448

Browse files
committed
box detail fix
1 parent 4cc6695 commit f51e448

3 files changed

Lines changed: 45 additions & 41 deletions

File tree

frontend/src/components/ServerListView.tsx

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -498,40 +498,44 @@ export function ServerListView({
498498

499499
{/* Live Apps Section — sample.html line 146-284 */}
500500
<section className="max-w-7xl mx-auto px-6 mb-32 scroll-mt-24" id="live-servers">
501-
<div className="flex flex-col md:flex-row md:items-end justify-between gap-6 mb-12">
502-
<div>
503-
<h2 className="text-3xl font-extrabold tracking-tight mb-2">Browse live apps</h2>
504-
<p className="text-text-muted">Explore public tunnels currently active on the network.</p>
505-
</div>
506-
<div className="flex flex-wrap gap-3">
507-
{/* search pill — replaces mockup line 153-158 static input */}
508-
<div className="bg-secondary px-4 py-2 rounded-xl flex items-center gap-2 border border-border/10">
509-
<Search className="text-text-muted h-[18px] w-[18px]" />
510-
<input
511-
className="bg-transparent border-none p-0 text-sm w-32 text-foreground outline-none placeholder:text-text-muted"
512-
placeholder="Search apps..."
513-
type="text"
514-
value={searchQuery}
515-
onChange={(e) => onSearchChange(e.target.value)}
501+
<div className="mb-12 space-y-4">
502+
<div className="flex flex-col md:flex-row md:items-end justify-between gap-6">
503+
<div>
504+
<h2 className="text-3xl font-extrabold tracking-tight mb-2">Browse live apps</h2>
505+
<p className="text-text-muted">Explore public tunnels currently active on the network.</p>
506+
</div>
507+
<div className="flex flex-col gap-2">
508+
<div className="flex flex-wrap gap-3">
509+
{/* search pill — replaces mockup line 153-158 static input */}
510+
<div className="bg-secondary px-4 py-2 rounded-xl flex items-center gap-2 border border-border/10">
511+
<Search className="text-text-muted h-4.5 w-4.5" />
512+
<input
513+
className="bg-transparent border-none p-0 text-sm w-32 text-foreground outline-none placeholder:text-text-muted"
514+
placeholder="Search apps..."
515+
type="text"
516+
value={searchQuery}
517+
onChange={(e) => onSearchChange(e.target.value)}
518+
/>
519+
</div>
520+
{/* status select — replaces mockup line 159-163 static button */}
521+
<StatusSelect
522+
status={status}
523+
onStatusChange={onStatusChange}
524+
/>
525+
{/* sort select — replaces mockup line 164-168 static button */}
526+
<SortbySelect
527+
sortBy={sortBy}
528+
onSortByChange={onSortByChange}
529+
/>
530+
</div>
531+
{/* tag combobox — replaces mockup line 169-173 static button */}
532+
<TagCombobox
533+
availableTags={availableTags}
534+
selectedTags={selectedTags}
535+
onAdd={onTagToggle}
536+
onRemove={onTagToggle}
516537
/>
517538
</div>
518-
{/* status select — replaces mockup line 159-163 static button */}
519-
<StatusSelect
520-
status={status}
521-
onStatusChange={onStatusChange}
522-
/>
523-
{/* sort select — replaces mockup line 164-168 static button */}
524-
<SortbySelect
525-
sortBy={sortBy}
526-
onSortByChange={onSortByChange}
527-
/>
528-
{/* tag combobox — replaces mockup line 169-173 static button */}
529-
<TagCombobox
530-
availableTags={availableTags}
531-
selectedTags={selectedTags}
532-
onAdd={onTagToggle}
533-
onRemove={onTagToggle}
534-
/>
535539
</div>
536540
</div>
537541
{/* App Grid (Bento Style) — sample.html line 177, cards replaced with dynamic ServerCard */}
@@ -565,7 +569,7 @@ export function ServerListView({
565569
target="_blank"
566570
rel="noopener noreferrer"
567571
>
568-
<Code className="h-[18px] w-[18px]" />
572+
<Code className="h-4.5 w-4.5" />
569573
Open registry.json
570574
</a>
571575
</div>

frontend/src/components/TagCombobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function TagCombobox({
125125
onBlur={handleBlur}
126126
onKeyDown={handleKeyDown}
127127
placeholder="Add tag…"
128-
className="min-w-[120px] flex-1 bg-transparent text-sm outline-none placeholder:text-text-muted"
128+
className="min-w-30 flex-1 bg-transparent text-sm outline-none placeholder:text-text-muted"
129129
role="combobox"
130130
aria-expanded={open}
131131
aria-controls={listId}

frontend/src/index.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
--card-foreground: oklch(22.6% 0.033 98);
4343
--popover: oklch(100% 0 0);
4444
--popover-foreground: oklch(22.6% 0.033 98);
45-
--primary: oklch(61% 0.214 257);
45+
--primary: oklch(51.1% 0.278 277);
4646
--primary-foreground: oklch(100% 0 0);
4747
--secondary: oklch(93.1% 0.042 92);
4848
--secondary-foreground: oklch(22.6% 0.033 98);
@@ -54,7 +54,7 @@
5454
--destructive-foreground: oklch(100% 0 0);
5555
--border: oklch(83% 0.031 294);
5656
--input: oklch(96.4% 0.042 92);
57-
--ring: oklch(61% 0.214 257);
57+
--ring: oklch(51.1% 0.278 277);
5858

5959
--green-status: oklch(57.1% 0.095 263);
6060
--text-muted: oklch(57% 0.014 271);
@@ -87,8 +87,8 @@
8787
--card-foreground: oklch(91.5% 0.007 295);
8888
--popover: oklch(26.5% 0.008 275);
8989
--popover-foreground: oklch(91.5% 0.007 295);
90-
--primary: oklch(58.7% 0.092 179);
91-
--primary-foreground: oklch(100% 0 0);
90+
--primary: oklch(71.5% 0.103 179);
91+
--primary-foreground: oklch(15% 0 0);
9292
--secondary: oklch(23.6% 0.008 275);
9393
--secondary-foreground: oklch(91.5% 0.007 295);
9494
--muted: oklch(26.5% 0.008 275);
@@ -99,7 +99,7 @@
9999
--destructive-foreground: oklch(98% 0 0);
100100
--border: oklch(36.9% 0.009 277);
101101
--input: oklch(23.6% 0.008 275);
102-
--ring: oklch(58.7% 0.092 179);
102+
--ring: oklch(71.5% 0.103 179);
103103

104104
--green-status: oklch(96.7% 0.065 137);
105105
--text-muted: oklch(69% 0.007 277);
@@ -113,15 +113,15 @@
113113
--hero-gradient-end: var(--accent-orange);
114114
--hero-terminal-bg:
115115
linear-gradient(160deg, oklch(19% 0 0 / 0.78), oklch(12% 0.01 250 / 0.88));
116-
--hero-terminal-border: oklch(58.7% 0.092 179 / 0.3);
116+
--hero-terminal-border: oklch(71.5% 0.103 179 / 0.3);
117117
--hero-terminal-foreground: oklch(91.5% 0.007 295);
118118
--hero-terminal-accent: var(--neon-cyan);
119119
--hero-terminal-shadow: oklch(0% 0 0 / 0.28);
120120

121121
--card-media-fallback-start: oklch(26% 0.03 235);
122122
--card-media-fallback-end: oklch(18% 0.02 260);
123123
--card-media-overlay:
124-
radial-gradient(circle at top left, oklch(58.7% 0.092 179 / 0.26), transparent 36%),
124+
radial-gradient(circle at top left, oklch(71.5% 0.103 179 / 0.26), transparent 36%),
125125
linear-gradient(180deg, transparent, oklch(10% 0 0 / 0.78));
126126
}
127127

0 commit comments

Comments
 (0)