Skip to content

Commit

Permalink
Fixed search bar, changed name of button and removed a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joshniemela committed Aug 18, 2024
1 parent ee50f44 commit c6dc41c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/BigCheckbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
</script>

<div class="flex flex-col w-full text-sm md:text-base">
<div
<button
type="button"
class="bg-kuRed text-white text-center px-2 py-1"
on:click="{() => (show = !show)}"
>
<h2>
{show ? "Hide" : "Show"}
{header_name}s {selected.length ? `(${selected.length})` : ""}
</h2>
</div>
</button>

<div class="flex flex-col {show ? 'visible' : 'hidden'}">
<button
Expand Down
11 changes: 8 additions & 3 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,17 @@
<h1 class="text-brand-500 text-4xl font-bold -mb-4">KU Courses 2.0</h1>
<ChangelogButton />
<div>
<input type="text" placeholder="Search" bind:value="{search}" />
<input
class="p-2 border-2 border-kuGray"
type="text"
placeholder="Search"
bind:value="{search}"
/>
<button
class="bg-kuRed text-white p-2"
class="bg-kuRed text-white p-2 border-2 border-kuRed"
on:click="{() => (search = '')}"
>
Clear search
Clear text
</button>
</div>
<div>
Expand Down

0 comments on commit c6dc41c

Please sign in to comment.