mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 00:43:50 +01:00
(add) blog: タイッツーへのシェア
This commit is contained in:
parent
8fc8942625
commit
0547ae28de
1
assets/svg/taittsuu_bi.svg
Normal file
1
assets/svg/taittsuu_bi.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg class="bi" fill="currentColor" version="1.1" viewBox="0 0 126.22 126.22" xmlns="http://www.w3.org/2000/svg"><g transform="translate(-54.697 -82.805)"><path d="m75.354 82.886c-4.5287-0.06275-5.1592 4.8149-4.8106 8.2767 0.03516 37.786-0.07041 75.581 0.05276 113.36 0.40371 2.8548 3.3766 4.9761 6.231 4.3072 4.713-0.16533 9.4829 0.32054 14.164-0.22427 6.7529-1.3204 11.866-8.1382 11.048-15.013v-67.35h31.531c0.0476 26.149-0.0949 52.311 0.0708 78.451 0.45285 2.8115 3.3948 4.867 6.2134 4.2096 4.713-0.16534 9.4829 0.32054 14.164-0.22428 6.7528-1.3207 11.866-8.1387 11.048-15.014 2.7e-4 -35.324-2.9e-4 -70.647-5.3e-4 -105.97 0.0631-4.5288-4.8143-5.1599-8.2762-4.8111h-81.436z" fill-rule="evenodd" stroke-width=".26458"/></g></svg>
|
After Width: | Height: | Size: 731 B |
@ -17,6 +17,7 @@
|
||||
<h2 class="font-bold text-lg mb-4">{{ $t('share') }}</h2>
|
||||
<div class="mb-6 flex items-center justify-center w-full space-x-4">
|
||||
<GNuxtLink :to="miShareUrl" target="_blank" class="h-12 p-3 flex items-center rounded-full bg-accent-600 hover:opacity-80 text-white"><MiIco class="w-7 h-7" /><span class="sr-only">Misskey</span><div class="ml-1.5 font-bold">{{ $t('note') }}</div></GNuxtLink>
|
||||
<GNuxtLink :to="taittsuuShareUrl" target="_blank" class="w-12 h-12 p-3 rounded-full bg-[#999] dark:bg-[#666] hover:opacity-80 text-white"><TaittsuuIco class="w-6 h-6" /><span class="sr-only">タイッツー</span></GNuxtLink>
|
||||
<GNuxtLink :to="mtdShareUrl" target="_blank" class="w-12 h-12 p-3 rounded-full bg-[#563ACC] hover:opacity-80 text-white"><MastoIco class="w-6 h-6" /><span class="sr-only">Mastodon</span></GNuxtLink>
|
||||
<GNuxtLink :to="twShareUrl" target="_blank" class="w-12 h-12 p-3 rounded-full bg-black dark:bg-gray-700 hover:opacity-80 text-white"><TwitterXIco class="w-6 h-6" /><span class="sr-only">X (Twitter)</span></GNuxtLink>
|
||||
</div>
|
||||
@ -35,6 +36,7 @@ import { isLocalPath } from '@/assets/js/misc';
|
||||
import type { MiBlogParsedContent } from '~/types/content';
|
||||
|
||||
import MiIco from '@/assets/svg/misskey_mi_bi.svg';
|
||||
import TaittsuuIco from '@/assets/svg/taittsuu_bi.svg';
|
||||
import MastoIco from 'bi/mastodon.svg';
|
||||
import TwitterXIco from 'bi/twitter-x.svg';
|
||||
|
||||
@ -85,6 +87,10 @@ const miShareUrl = computed(() => withQuery('https://misskey-hub.net/share', {
|
||||
url: `${runtimeConfig.public.baseUrl}/ja/blog/${route.params.slug}/`,
|
||||
}));
|
||||
|
||||
const taittsuuShareUrl = computed(() => withQuery('https://taittsuu.com/share', {
|
||||
text: route.meta.title + ` - Misskey Hub\n${runtimeConfig.public.baseUrl}/ja/blog/${route.params.slug}/`,
|
||||
}));
|
||||
|
||||
const mtdShareUrl = computed(() => withQuery('https://donshare.net/share.html', {
|
||||
text: route.meta.title + ' - Misskey Hub',
|
||||
url: `${runtimeConfig.public.baseUrl}/ja/blog/${route.params.slug}/`,
|
||||
|
Loading…
Reference in New Issue
Block a user