Skip to content

Commit

Permalink
feat: add subscribe to league calendar link
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Apr 12, 2024
1 parent 86aba66 commit 8a827b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/pages/leagues/[name]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
CalculatorIcon,
ChartBarSquareIcon,
GlobeEuropeAfricaIcon,
CalendarIcon,
} from '@heroicons/vue/24/outline'
import type { LeagueOverview } from '~/api-types'
Expand Down Expand Up @@ -59,11 +60,19 @@ if (league.value) {
</template>
<template v-else> All events points count </template>
</ImageRow>
<ImageRow v-if="nextEvent" :icon="CalendarIcon" hover>
<a
:href="`https://munroleagues.com/api/leagues/${league.name}/events/calendar`"
>
Subscribe to calendar
</a>
</ImageRow>
<ImageRow v-if="league.website" :icon="GlobeEuropeAfricaIcon" hover>
<a :href="league.website" rel="noopener noreferrer" target="_blank">
{{ league.website }}
</a>
</ImageRow>

<template v-if="league.more_information" #extra>
<p
v-for="paragraph in league.more_information.split('|')"
Expand Down

0 comments on commit 8a827b6

Please sign in to comment.