Skip to content

Commit

Permalink
#205 Fix events and users
Browse files Browse the repository at this point in the history
  • Loading branch information
DDuran19 committed Jun 25, 2024
1 parent 186e8ef commit cf881a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/routes/(default)/search/EventsComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

<div class="mb-20">
{#each eventsData as event}
<div class="card variant-ghost-surface mb-5 block overflow-hidden md:p-4">
<a
class="card variant-ghost-surface mb-5 block overflow-hidden md:p-4"
href={`/events/${event.title.toLowerCase().replaceAll(' ', '-')}`}
>
<div
class="md:items-centerX flex
flex-col gap-3
Expand Down Expand Up @@ -67,7 +70,7 @@
</div>
</div>
</div>
</div>
</a>
{/each}
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/(default)/search/UsersComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{/if}

{#each usersData as user}
<a href="/profile/{user.username}" class="card variant-ghost-surface mb-5 block p-4">
<a href="/{user.username}" class="card variant-ghost-surface mb-5 block p-4">
<div class="flex flex-col gap-1">
<div class="flex items-center gap-3">
<Avatar
Expand Down

0 comments on commit cf881a7

Please sign in to comment.