|
|
@ -14,7 +14,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.JustSearchResources
|
|
|
|
<div class="relative bg-white shadow-md dark:bg-gray-800 sm:rounded-lg">
|
|
|
|
<div class="relative bg-white shadow-md dark:bg-gray-800 sm:rounded-lg">
|
|
|
|
<div class="flex flex-col items-center justify-between p-4 space-y-3 md:flex-row md:space-y-0 md:space-x-4">
|
|
|
|
<div class="flex flex-col items-center justify-between p-4 space-y-3 md:flex-row md:space-y-0 md:space-x-4">
|
|
|
|
<div class="w-full grow">
|
|
|
|
<div class="w-full grow">
|
|
|
|
<form class="flex items-center" phx-submit="search">
|
|
|
|
<form class="flex items-center" phx-change="search" phx-submit="search">
|
|
|
|
<label for="simple-search" class="sr-only">Search</label>
|
|
|
|
<label for="simple-search" class="sr-only">Search</label>
|
|
|
|
<div class="relative w-full">
|
|
|
|
<div class="relative w-full">
|
|
|
|
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
|
|
|
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
|
|
@ -22,7 +22,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.JustSearchResources
|
|
|
|
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
|
|
|
|
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input name="query" type="text" id="simple-search" class="block w-full p-2 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500" placeholder={@search_placeholder} value={@search_query}>
|
|
|
|
<input name="query" type="text" phx-debounce="300" autocomplete="off" id="simple-search" class="block w-full p-2 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500" placeholder={@search_placeholder} value={@search_query}>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|