congo/layouts/partials/search.html

48 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2022-01-13 04:56:30 +00:00
<div
id="search-wrapper"
2023-12-26 00:56:32 +00:00
class="invisible fixed inset-0 z-50 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm sm:p-6 md:p-[10vh] lg:p-[12vh] dark:bg-neutral-900/50"
data-url="{{ "" | absLangURL }}"
2022-01-13 04:56:30 +00:00
>
<div
id="search-modal"
2023-12-26 00:56:32 +00:00
class="top-20 mx-auto flex min-h-0 w-full max-w-3xl flex-col rounded-md border border-neutral-200 bg-neutral shadow-lg dark:border-neutral-700 dark:bg-neutral-800"
2022-01-13 04:56:30 +00:00
>
2023-12-26 00:56:32 +00:00
<header class="relative z-10 flex flex-none items-center justify-between px-2">
<form class="flex min-w-0 flex-auto items-center">
<div class="flex h-8 w-8 items-center justify-center text-neutral-400">
2022-01-13 04:56:30 +00:00
{{ partial "icon.html" "search" }}
</div>
<input
type="search"
id="search-query"
2023-12-26 00:56:32 +00:00
class="mx-1 flex h-12 flex-auto appearance-none bg-transparent focus:outline-dotted focus:outline-2 focus:outline-transparent"
2022-01-13 04:56:30 +00:00
placeholder="{{ i18n "search.input_placeholder" }}"
tabindex="0"
/>
</form>
<button
id="close-search-button"
2023-12-26 00:56:32 +00:00
class="flex h-8 w-8 items-center justify-center text-neutral-700 hover:text-primary-600 dark:text-neutral dark:hover:text-primary-400"
2022-01-13 04:56:30 +00:00
title="{{ i18n "search.close_button_title" }}"
>
2022-03-09 05:13:36 +00:00
{{ partial "icon.html" "xmark" }}
2022-01-13 04:56:30 +00:00
</button>
</header>
2023-12-26 00:56:32 +00:00
<section class="flex-auto overflow-auto px-2">
2022-01-13 04:56:30 +00:00
<ul id="search-results">
<!-- <li class="mb-2">
<a class="flex items-center px-3 py-2 rounded-md appearance-none bg-neutral-100 dark:bg-neutral-700 focus:bg-primary-100 hover:bg-primary-100 dark:hover:bg-primary-900 dark:focus:bg-primary-900 focus:outline-dotted focus:outline-transparent focus:outline-2" href="${value.item.permalink}" tabindex="0">
<div class="grow">
<div class="-mb-1 text-lg font-bold">${value.item.title}</div>
<div class="text-sm text-neutral-500 dark:text-neutral-400">${value.item.section}<span class="px-2 text-primary-500">&middot;</span>${value.item.date}</span></div>
<div class="text-sm italic">${value.item.summary}</div>
</div>
<div class="ml-2 ltr:block rtl:hidden text-neutral-500">&rarr;</div>
<div class="mr-2 ltr:hidden rtl:block text-neutral-500">&larr;</div>
</a>
</li> -->
</ul>
</section>
</div>
</div>