Skip to content

Commit 4e6ab1d

Browse files
committed
make partner logo clickable
1 parent 94d2d6e commit 4e6ab1d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/partners/components/PartnerCard.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const { data, hero, page } = defineProps<{
99
page?: boolean
1010
}>()
1111
12-
const { name, intro, region, logo, proficiencies, flipLogo } = data
12+
const { name, intro, region, logo, proficiencies, flipLogo, website } =
13+
data
1314
</script>
1415

1516
<template>
@@ -20,13 +21,15 @@ const { name, intro, region, logo, proficiencies, flipLogo } = data
2021
:href="'/partners/' + normalizeName(name) + '.html'"
2122
>
2223
<div class="info">
23-
<img
24-
class="logo dark"
25-
v-if="hero && flipLogo"
26-
:src="getLogo(logo, flipLogo)"
27-
/>
28-
<img class="logo" v-if="hero" :src="getLogo(logo)" />
29-
<h3 v-else>{{ name }}</h3>
24+
<a :href="website.url" target="_blank">
25+
<img
26+
class="logo dark"
27+
v-if="hero && flipLogo"
28+
:src="getLogo(logo, flipLogo)"
29+
/>
30+
<img class="logo" v-if="hero" :src="getLogo(logo)" />
31+
<h3 v-else>{{ name }}</h3>
32+
</a>
3033

3134
<p class="region"><Location /> {{ region.join(', ') }}</p>
3235

0 commit comments

Comments
 (0)