Skip to content

Commit 6564bb9

Browse files
committed
add href to icons
1 parent 6640f8b commit 6564bb9

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed

apps/web/app/pages/namecard/[id]/share.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,22 @@ useHead({
5252
<VFComment class="share-namecard" :title="t('share_namecard')" />
5353
<ul class="sns-list">
5454
<li>
55-
<VFIcon color="vue-blue" name="x40" />
55+
<VFIconButton
56+
color="vue-blue"
57+
name="x40"
58+
:href="`https://x.com/share?url=${encodeURIComponent(
59+
`https://vuefes.jp/2024/namecard/${id}/share`,
60+
)}`"
61+
/>
5662
</li>
5763
<li>
58-
<VFIcon color="vue-blue" name="Facebook" />
64+
<VFIconButton
65+
color="vue-blue"
66+
name="Facebook"
67+
:href="`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
68+
`https://vuefes.jp/2024/namecard/${id}/share`,
69+
)}`"
70+
/>
5971
</li>
6072
<li>
6173
<VFIcon color="vue-blue" name="external" :can-hover="false" />

apps/web/app/pages/sessions/[id]/share.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,22 @@ useHead({
6060
<VFComment class="share-session" :title="$t('share_namecard')" />
6161
<ul class="sns-list">
6262
<li>
63-
<VFIcon color="vue-blue" name="x40" />
63+
<VFIconButton
64+
color="vue-blue"
65+
name="x40"
66+
:href="`https://x.com/share?url=${encodeURIComponent(
67+
`https://vuefes.jp/2024/namecard/${id}/share`,
68+
)}`"
69+
/>
6470
</li>
6571
<li>
66-
<VFIcon color="vue-blue" name="Facebook" />
72+
<VFIconButton
73+
color="vue-blue"
74+
name="Facebook"
75+
:href="`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
76+
`https://vuefes.jp/2024/namecard/${id}/share`,
77+
)}`"
78+
/>
6779
</li>
6880
<li>
6981
<VFIcon color="vue-blue" name="external" :can-hover="false" />

apps/web/app/pages/sponsors/[id]/share.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,22 @@ useHead({
6060
<VFComment class="share-session" :title="$t('share_namecard')" />
6161
<ul class="sns-list">
6262
<li>
63-
<VFIcon color="vue-blue" name="x40" />
63+
<VFIconButton
64+
color="vue-blue"
65+
name="x40"
66+
:href="`https://x.com/share?url=${encodeURIComponent(
67+
`https://vuefes.jp/2024/namecard/${id}/share`,
68+
)}`"
69+
/>
6470
</li>
6571
<li>
66-
<VFIcon color="vue-blue" name="Facebook" />
72+
<VFIconButton
73+
color="vue-blue"
74+
name="Facebook"
75+
:href="`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
76+
`https://vuefes.jp/2024/namecard/${id}/share`,
77+
)}`"
78+
/>
6779
</li>
6880
<li>
6981
<VFIcon color="vue-blue" name="external" :can-hover="false" />

0 commit comments

Comments
 (0)