Move search bar above sport/date filters, below page title

This commit is contained in:
Davide Scaini
2026-05-13 11:54:37 +02:00
parent 861748a059
commit cb3c9b6e41
2 changed files with 11 additions and 11 deletions
+10 -10
View File
@@ -193,6 +193,16 @@
];
</script>
<!-- Search -->
<div class="relative mb-4">
<input
type="search"
placeholder="Search activities…"
bind:value={query}
class="w-full px-4 py-2 rounded-lg bg-zinc-900 border border-zinc-700 text-white placeholder-zinc-500 text-sm focus:outline-none focus:border-zinc-500 transition-colors"
/>
</div>
<!-- Sport filter bar -->
<div class="flex gap-2 mb-3 flex-wrap">
{#each sports as s}
@@ -219,16 +229,6 @@
{/if}
</div>
<!-- Search -->
<div class="relative mb-3">
<input
type="search"
placeholder="Search activities…"
bind:value={query}
class="w-full px-4 py-2 rounded-lg bg-zinc-900 border border-zinc-700 text-white placeholder-zinc-500 text-sm focus:outline-none focus:border-zinc-500 transition-colors"
/>
</div>
<!-- Date filter bar -->
<div class="flex gap-2 mb-6 flex-wrap">
{#each [{ value: 'all', label: 'All time' }, { value: '7d', label: '7 days' }, { value: '30d', label: '30 days' }, { value: '6mo', label: '6 months' }, ...allYears.map(y => ({ value: y, label: y }))] as d}
+1 -1
View File
@@ -18,7 +18,7 @@ const singleHandle = isSingleUser ? shards[0].handle : null;
) : (
<!-- Multi-user activity feed -->
<Base title="BincioActivity - Feed">
<h1 class="text-2xl font-bold text-white mb-6">Feed</h1>
<h1 class="text-2xl font-bold text-white mb-3">Feed</h1>
<ActivityFeed {base} client:only="svelte" />
</Base>
)}