blob: 47c4953978bbfcd0dfa02df081c15fbe4fcda8c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
import "./stylesheets/shared.css"
import "./stylesheets/search_bar.css"
export default function SearchBar({ path }) {
return(
<div className="my-4">
<form action={path} method="get" id="search-form">
<div className="flex justify-start">
<div className="search-bar-field">
<input className="h-10 rounded-lg border border-solid border-neutral-300 bg-transparent bg-clip-padding px-3 py-[0.25rem] text-base font-normal leading-[1.6] text-neutral-700 outline-none transition duration-200 ease-in-out focus:z-[3] focus:border-primary focus:text-neutral-700 focus:shadow-[inset_0_0_0_1px_rgb(59,113,202)] focus:outline-none dark:border-neutral-600 dark:text-neutral-200 dark:placeholder:text-neutral-200 dark:focus:border-primary"
type="text" placeholder="Búsqueda" name="name" id="search"/>
</div>
<div className="mx-2">
<select id="order-by-price" name="price" className="h-10 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<option value="">Ordenar por precio</option>
<option value="asc">Ascendente</option>
<option value="desc">Descendente</option>
</select>
</div>
<div>
<select id="order-by-bulk-price" name="bulk_price" className="h-10 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<option value="">Ordenar por precio al mayoreo</option>
<option value="asc">Ascendente</option>
<option value="desc">Descendente</option>
</select>
</div>
<div className="mx-2">
<select id="order-by-availaible-quantity" name="quantity" className="h-10 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<option value="">Ordenar por cantidad disponible</option>
<option value="asc">Ascendente</option>
<option value="desc">Descendente</option>
</select>
</div>
<div>
<button form="search-form"
className="h-10 button rounded-r px-6 py-2 text-xs font-medium uppercase leading-tight text-white shadow-md transition duration-150 ease-in-out hover:bg-primary-700 hover:shadow-lg focus:bg-primary-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-primary-800 active:shadow-lg">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
className="h-5 w-5">
<path
fillRule="evenodd"
d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z"
clipRule="evenodd" />
</svg>
</button>
</div>
</div>
</form>
</div>
);
}
|