Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
"social": {
"twitch": "Twitch",
"youtube": "YouTube",
"tiktok": "TikTok",
"instagram": "Instagram",
"facebook": "Facebook",
"linkedin": "LinkedIn",
"github": "GitHub"
Expand Down
2 changes: 2 additions & 0 deletions i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
"social": {
"twitch": "Twitch",
"youtube": "YouTube",
"tiktok": "TikTok",
"instagram": "Instagram",
"facebook": "Facebook",
"linkedin": "LinkedIn",
"github": "GitHub"
Expand Down
14 changes: 12 additions & 2 deletions layers/footer/components/SiteFooter.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed } from '#imports'
import { useI18n } from 'vue-i18n'
import { faFacebook, faGithub, faLinkedin, faTwitch, faYoutube } from '@fortawesome/free-brands-svg-icons'
import { faFacebook, faGithub, faInstagram, faLinkedin, faTiktok, faTwitch, faYoutube } from '@fortawesome/free-brands-svg-icons'
const { t } = useI18n()
const appConfig = useAppConfig()
const { discordUrl } = useRuntimeConfig().public
Expand All @@ -12,7 +12,17 @@ const versionLabel = computed(() =>

const socialLinks = [
{ href: 'https://twitch.tv/onelitefeathernet', icon: faTwitch, labelKey: 'social.twitch' },
{ href: 'https://youtube.com/onelitefeathernet', icon: faYoutube, labelKey: 'social.youtube' },
{
href: 'https://www.youtube.com/channel/UCfPUI5tvNVWJeJ-t93fdj0g',
icon: faYoutube,
labelKey: 'social.youtube',
},
{ href: 'https://www.tiktok.com/@onelitefeather.net', icon: faTiktok, labelKey: 'social.tiktok' },
{
href: 'https://www.instagram.com/onelitefeather/',
icon: faInstagram,
labelKey: 'social.instagram',
},
{ href: 'https://facebook.com/onelitefeathernet', icon: faFacebook, labelKey: 'social.facebook' },
{
href: 'https://linkedin.com/company/onelitefeathernet',
Expand Down
7 changes: 7 additions & 0 deletions tests/footer/links.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ describe('SiteFooter links', () => {
expect(hrefs).toContain('/de/about')
})

it('links the official YouTube, TikTok and Instagram profiles', async () => {
const hrefs = (await open('/de')).map((a) => a.attributes('href'))
expect(hrefs).toContain('https://www.youtube.com/channel/UCfPUI5tvNVWJeJ-t93fdj0g')
expect(hrefs).toContain('https://www.tiktok.com/@onelitefeather.net')
expect(hrefs).toContain('https://www.instagram.com/onelitefeather/')
})

it('localises the about link', async () => {
const hrefs = (await open('/en')).map((a) => a.attributes('href'))
expect(hrefs).toContain('/en/about')
Expand Down
Loading