diff options
Diffstat (limited to 'templates/partials/shared')
-rw-r--r-- | templates/partials/shared/nav.html | 9 | ||||
-rw-r--r-- | templates/partials/shared/search.html | 13 |
2 files changed, 16 insertions, 6 deletions
diff --git a/templates/partials/shared/nav.html b/templates/partials/shared/nav.html index a4a4b99..adb1a70 100644 --- a/templates/partials/shared/nav.html +++ b/templates/partials/shared/nav.html @@ -22,13 +22,16 @@ {% endfor %} {% endif %} {% endfor %} - <button + <a id="nav-search-btn" + href="javascript:openSearchModal()" type="button" title="Open Search (alt + S)" class="focus:bg-white hover:bg-white hover:shadow px-4 py-2 rounded-lg"> - <svg id="nav-search-btn-icon" class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> - </button> + <svg id="nav-search-btn-icon" class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path> + </svg> + </a> <a href="https://garagehq.deuxfleurs.fr/_releases.html" class="group flex items-center justify-center space-x-1 font-semibold shadow hover:shadow px-2 py-1.5 rounded text-white transition-all duration-500 bg-gradient-to-tl from-garage-orange via-orange-500 to-orange-300 bg-size-200 bg-pos-0 hover:bg-pos-100"> diff --git a/templates/partials/shared/search.html b/templates/partials/shared/search.html index cb0ae2e..c41feca 100644 --- a/templates/partials/shared/search.html +++ b/templates/partials/shared/search.html @@ -17,9 +17,16 @@ <div class="search-results__items max-h-96 overflow-y-scroll p-2 md:p-4 focus:outline outline-garage-orange"></div> </div> </section> - <button aria-label="close" id="close-modal-btn" class="absolute top-4 right-4 flex items-center group rounded-full shadow-inner bg-gray-300 border border-transparent hover:border-gray-500 bg-opacity-50 p-2"> - <svg id="close-modal-btn-icon" class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg> + <a + aria-label="close" + type="button" + id="close-modal-btn" + href="javascript:closeSearchModal()" + class="absolute top-4 right-4 flex items-center group rounded-full shadow-inner bg-gray-300 border border-transparent hover:border-gray-500 bg-opacity-50 p-2"> + <svg id="close-modal-btn-icon" class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> + </svg> <small class="text-xs text-gray-400">(Esc)</small> - </button> + </a> </div> </section>
\ No newline at end of file |