Skip to content

Commit

Permalink
show event link
Browse files Browse the repository at this point in the history
  • Loading branch information
anahitachavan authored and Isak-Kallini committed Jan 29, 2025
1 parent 2e06fe3 commit 38b670d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/routes/(app)/events/Event.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| "imageUrl"
| "isCancelled"
| "location"
| "link"
> &
Partial<Pick<Event, "removedAt">>;
</script>
Expand Down Expand Up @@ -56,6 +57,21 @@
</div>
</section>
{/if}
{#if event.link}
<section class="my-2">
<div class="flex items-center gap-2 text-primary">
<span class="i-mdi-link text-lg"></span>
<a
href={event.link}
class="text-base leading-none hover:underline"
target="_blank"
rel="noopener noreferrer"
>
{m.events_link()}
</a>
</div>
</section>
{/if}

<slot name="buttons" />

Expand Down
15 changes: 15 additions & 0 deletions src/routes/(app)/events/SmallEventCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@
</div>
</section>
{/if}
{#if event.link}
<section class="my-2">
<div class="flex items-center gap-2">
<span class="i-mdi-link text-lg"></span>
<a
href={event.link}
class="text-base leading-none hover:underline"
target="_blank"
rel="noopener noreferrer"
>
{m.events_link()}
</a>
</div>
</section>
{/if}
</section>

<InterestedGoingButtons
Expand Down

0 comments on commit 38b670d

Please sign in to comment.