Files
bitvid/views/search.html
T
google-labs-jules[bot] 2515ed9e8e Implement user and video search functionality
- Updated `js/index.js` to handle search input:
  - Redirects valid npubs to the channel profile.
  - Redirects other queries to the new search view.
- Created `views/search.html` to display search results.
- Created `js/searchView.js` to perform NIP-50 searches for profiles (Kind 0) and videos (Kind 30078).
  - Includes specific handling for hashtag searches (using `#t` filter).
- Updated `js/viewManager.js` to register the new search view.
2026-01-16 23:02:42 +00:00

35 lines
864 B
HTML

<div class="fade-in bv-stack">
<header class="mb-4">
<h1
id="searchTitle"
class="text-2xl font-bold tracking-tight text-text-strong"
>
Search Results
</h1>
</header>
<section class="bv-stack">
<h2 class="text-lg font-semibold uppercase tracking-wide text-muted-strong">
Channels
</h2>
<div
id="searchChannelList"
class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"
>
<!-- Channel cards injected here -->
</div>
</section>
<section class="bv-stack mt-8">
<h2 class="text-lg font-semibold uppercase tracking-wide text-muted-strong">
Videos
</h2>
<div
id="searchVideoList"
class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"
>
<!-- Video cards injected here -->
</div>
</section>
</div>