From 86a66aad37f6136fb813a849a02aaf8a080389f2 Mon Sep 17 00:00:00 2001 From: Pascal Syma Date: Sat, 30 Aug 2025 17:56:52 +0200 Subject: [PATCH] Add imprint --- app/lang/de.json | 4 ++ app/lang/en.json | 4 ++ app/layouts/default.vue | 11 ++++ app/pages/impressum.vue | 116 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 app/pages/impressum.vue diff --git a/app/lang/de.json b/app/lang/de.json index afa32be..1adc5cc 100644 --- a/app/lang/de.json +++ b/app/lang/de.json @@ -141,6 +141,10 @@ "title": "Hilfe", "subtitle": "Hier sind einige Themen und Wörter erklärt. Wenn du weiterhin Fragen hast, wende dich bitte ans Admin Team!", "head": "PicHunt Hilfe" + }, + "imprint": { + "title": "Impressum", + "head": "PicHunt Impressum" } }, "validation": { diff --git a/app/lang/en.json b/app/lang/en.json index e1e4e2e..ce99302 100644 --- a/app/lang/en.json +++ b/app/lang/en.json @@ -141,6 +141,10 @@ "title": "Help", "subtitle": "Here are some topics and words explained. If you still have questions, please contact the Admin Team!", "head": "PicHunt Help" + }, + "imprint": { + "title": "Imprint", + "head": "PicHunt Imprint" } }, "validation": { diff --git a/app/layouts/default.vue b/app/layouts/default.vue index fafc457..0f1bf63 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -59,6 +59,17 @@ const slugs = computed(() => checkSlug(route.params)); Home + + + + {{ + t('page.imprint.title') + }} + + +import { useTitleStore } from '~/stores/title'; + +definePageMeta({ + i18n: { + paths: { + en: '/imprint', + de: '/impressum' + } + } +}); +defineI18nRoute({ + paths: { + en: '/imprint', + de: '/impressum' + } +}); + +const { t } = useI18n(); +const titleStore = useTitleStore(); + +useHead({ + title: t('layouts.title', { + title: t('page.imprint.title') + }) +}); +titleStore.title = t('page.imprint.head'); + + + + +