Skip to content

Commit

Permalink
Banner: add cta
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Jan 2, 2025
1 parent 0b01df5 commit e2e57bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions documentation/.vuepress/components/discountbanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type Discount = {
banner: {
title: string,
subtitle: string,
cta?: string,
}
url: string,
}
Expand All @@ -36,9 +37,9 @@ if (typeof window !== "undefined") {
<div class="text">{{ discount.banner.subtitle }}</div>
</div>

<div class="action">
<div class="action" v-if="discount.url && discount.banner.cta">
<a target="_blank" tabindex="-1" :href="discount.url">
Claim now
{{ discount.banner.cta }}
</a>
</div>
</div>
Expand Down

0 comments on commit e2e57bc

Please sign in to comment.