Skip to content

Commit

Permalink
search.html: make outline blue, make everyone the default
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Oct 5, 2023
1 parent 6c3d052 commit d23af6d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/js/utils/search-people.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function debouncedSearch(

export default function searchPeople() {
return {
filterType: "expert",
filterType: "",
filterExpertise: [],
filterLocation: [],
filterArea: [],
Expand Down
28 changes: 21 additions & 7 deletions layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="text-g-9">
<input
id="search"
type="search"
class="block w-full appearance-none rounded-full border-2 border-g-5 bg-white px-10 py-2 tracking-wider text-g-8 placeholder-g-5 placeholder-opacity-100"
class="block w-full appearance-none rounded-full border-2 border-g-5 bg-white px-10 py-2 tracking-wider text-g-8 placeholder-g-5 placeholder-opacity-100 outline-none ring-blue focus:ring-2"
x-model="query"
@keydown.escape="clear()"
placeholder="Ex. “Jane Smith” “History” “Boulder”"
Expand Down Expand Up @@ -54,6 +54,7 @@ <h2 class="text-g-9">
<div
class="grid items-end gap-4 md:grid-cols-2"
x-show="filterType === 'expert'"
x-cloak
>
{{ partial "combobox.html" (dict
"options" (.GetPage "expertise").Pages
Expand Down Expand Up @@ -90,21 +91,34 @@ <h2 class="text-g-9">
<div class="mt-2 flex flex-wrap gap-4">
<label>
<input
class="accent-blue"
x-model="filterType"
type="radio"
name="type"
value="expert"
value=""
checked
/>
<span class="ml-1">Community Members</span>
<span class="ml-1">Everyone</span>
</label>
<label>
<input x-model="filterType" type="radio" name="type" value="journalist" />
<span class="ml-1">Journalists</span>
<input
class="accent-blue"
x-model="filterType"
type="radio"
name="type"
value="expert"
/>
<span class="ml-1">Community Members</span>
</label>
<label>
<input x-model="filterType" type="radio" name="type" value="" />
<span class="ml-1">Everyone</span>
<input
class="accent-blue"
x-model="filterType"
type="radio"
name="type"
value="journalist"
/>
<span class="ml-1">Journalists</span>
</label>
</div>
<p class="mt-1 text-g-7" x-text="resultsText"></p>
Expand Down

0 comments on commit d23af6d

Please sign in to comment.