feat: locales in header & footer

This commit is contained in:
kittentm 2026-07-19 08:50:50 +02:00
commit 354148357f
Signed by: kitten
GPG key ID: 394B4EABE4405A83
4 changed files with 44 additions and 11 deletions

View file

@ -1,4 +1,8 @@
<script lang="ts" src="../composables/MainFooter.ts"></script>
<script setup lang="ts">
import { footerLinks } from '../composables/MainFooter'
const { t } = useLocale()
</script>
<template>
<UFooter>
@ -16,12 +20,12 @@
</span>
</div>
<div class="text-sm text-gray-400 space-y-1">
<p>Copyright 2026</p>
<p>Site maintained by Spacebar Network</p>
<p>Developed by our contributors</p>
<p>Copyright {{ new Date().getFullYear() }}</p>
<p>{{ t.footer?.siteMaintained }}</p>
<p>{{ t.footer?.developedBy }}</p>
<p class="mt-4 max-w-[320px] leading-snug text-gray-500">
Spacebar Network (SPBR) is an extension of Splatfestival Network (SPFN), which aims to be a Nintendo Network recreation primarily for hosting Splatfests. Spacebar is separate from this purpose, though we remain partnered with Splatfestival.
{{ t.footer?.description }}
</p>
</div>
</div>
@ -31,7 +35,7 @@
<template #left>
<span class="text-sm text-gray-500">
© {{ new Date().getFullYear() }} Spacebar Network. All rights reserved.
© {{ new Date().getFullYear() }} {{ t.footer?.copyright }}
</span>
</template>

View file

@ -12,17 +12,17 @@
</RouterLink>
<nav class="links">
<a href="#">Supported games</a>
<a href="#">Error Codes</a>
<a href="#">Discord Server</a>
<a href="#">Install SPBR</a>
<a href="#">{{ t.nav?.supportedGames }}</a>
<a href="#">{{ t.nav?.errorCodes }}</a>
<a href="#">{{ t.nav?.discordServer }}</a>
<a href="#">{{ t.nav?.installSpbr }}</a>
</nav>
<div class="search-box">
<input
v-model="query"
type="text"
placeholder="Search"
:placeholder="t.nav?.searchPlaceholder"
>
<button class="search-btn">
<Icon
@ -40,6 +40,8 @@
import { ref } from 'vue'
const query = ref('')
const { t } = useLocale()
</script>
<style scoped>