Skip to content

Commit

Permalink
lint: fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghofficial committed Oct 23, 2024
1 parent c4a4263 commit 269baa6
Showing 1 changed file with 61 additions and 39 deletions.
100 changes: 61 additions & 39 deletions src/components/navigation/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,49 +44,71 @@
<div
class="bg-blur-md bg-white/80 dark:bg-black dark:text-white md:flex-row md:px-8 flex items-center justify-between px-4 border-b border-gray-500"
>
<div class="flex items-center justify-center gap-4 px-2 py-2">
<div>
<a href="/">
<img src={PUBLIC_OBA_LOGO_URL} alt={PUBLIC_OBA_REGION_NAME} class="h-10 rounded-sm" />
</a>
<div class="md:flex-none flex items-center justify-between flex-1">
<div class="md:w-auto flex justify-between w-full gap-4 px-2 py-2">
<div>
<a href="/">
<img src={PUBLIC_OBA_LOGO_URL} alt={PUBLIC_OBA_REGION_NAME} class="h-10 rounded-sm" />
</a>
</div>

<div class="md:hidden flex items-center justify-end">
<button on:click={toggleNavbar}>
<svg
class="burger-icon dark:text-white w-6 h-6 text-gray-900"
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="M4 6h16M4 12h16m-7 6h7"
></path>
</svg>
</button>
</div>
</div>

{#if PUBLIC_OBA_SEARCH_ENABLED === 'true'}
<div class="max-w-md mx-auto">
<label
for="default-search"
class="dark:text-white mb-2 text-sm font-medium text-gray-900 sr-only">Search</label
>
<div class="relative">
<div class="start-0 ps-3 absolute inset-y-0 flex items-center pointer-events-none">
<svg
class="dark:text-gray-400 w-4 h-4 text-gray-500"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 20 20"
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
/>
</svg>
<div class="md:flex items-center hidden gap-4 px-2 py-2">
{#if PUBLIC_OBA_SEARCH_ENABLED === 'true'}
<div class="max-w-md mx-auto">
<label
for="default-search"
class="dark:text-white mb-2 text-sm font-medium text-gray-900 sr-only">Search</label
>
<div class="relative">
<div class="start-0 ps-3 absolute inset-y-0 flex items-center pointer-events-none">
<svg
class="dark:text-gray-400 w-4 h-4 text-gray-500"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 20 20"
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
/>
</svg>
</div>
<input
type="search"
id="search"
class="bg-gray-50 ps-10 dark:border-gray-600 dark:placeholder-gray-400 block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-full"
placeholder="Search a stop or route"
required
bind:value={searchInput}
on:keydown={onHandleSearch}
/>
</div>
<input
type="search"
id="search"
class="bg-gray-50 ps-10 dark:border-gray-600 dark:placeholder-gray-400 block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-full"
placeholder="Search a stop or route"
required
bind:value={searchInput}
on:keydown={onHandleSearch}
/>
</div>
</div>
{/if}
{/if}

<div class="gap-x-4 flex">
{#each Object.entries(headerLinks) as [key, value]}
Expand Down

0 comments on commit 269baa6

Please sign in to comment.