Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable searching #4

Open
mscottford opened this issue May 1, 2023 · 0 comments
Open

Enable searching #4

mscottford opened this issue May 1, 2023 · 0 comments

Comments

@mscottford
Copy link
Contributor

mscottford commented May 1, 2023

Enable searching for episodes.

There is some UI for this, but it's commented out (see

{/* <label htmlFor="mobile-search" className="sr-only">
Search
</label>
<div className="relative text-brand-yellow-900 focus-within:text-gray-800">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<MagnifyingGlassIcon className="h-5 w-5" aria-hidden="true" />
</div>
<input
id="mobile-search"
className="block w-full rounded-md border-0 bg-brand-yellow-400 py-1.5 pl-10 pr-3 text-black placeholder:text-brand-yellow-900 focus:bg-brand-yellow-400 focus:text-gray-900 focus:ring-0 focus:placeholder:text-gray-900 sm:text-sm sm:leading-6"
placeholder="Search"
type="search"
name="search"
/>
and
{/* <label htmlFor="desktop-search" className="sr-only">
Search
</label>
<div className="relative text-brand-yellow-900 focus-within:text-gray-800">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<MagnifyingGlassIcon className="h-5 w-5" aria-hidden="true" />
</div>
<input
id="desktop-search"
className="block w-full rounded-md border-0 bg-brand-yellow-400 py-1.5 pl-10 pr-3 text-black placeholder:text-brand-yellow-900 focus:bg-brand-yellow-400 focus:text-gray-900 focus:ring-0 focus:placeholder:text-gray-900 sm:text-sm sm:leading-6"
placeholder="Search"
type="search"
name="search"
/>
</div> */}
).

This will need to work without having to change the fact that the website is served via a NextJS export. See https://nextjs.org/docs/advanced-features/static-html-export for the limitations that static export imposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant