diff --git a/src/components/NavigationComponent.vue b/src/components/NavigationComponent.vue index 13b6d2e..b85b6fb 100644 --- a/src/components/NavigationComponent.vue +++ b/src/components/NavigationComponent.vue @@ -152,12 +152,18 @@ const translationY = ref(-0.25); watchEffect(() => { const path = router.currentRoute.value.path; const index = items.value.findIndex((item) => path.startsWith(item.to)); - translationY.value = index * 2.8 - 0.25; + if (index !== -1) { + translationY.value = index * 2.8 - 0.25; + } else { + translationY.value = -999; + } const meta = router.currentRoute.value.meta; - let title = "Pixina"; + const title = "Pixina"; if (meta.title) { document.title = title + " - " + t(String(meta.title)); + } else { + document.title = title; } }); diff --git a/src/components/privacy/PrivacyPolicy.vue b/src/components/privacy/PrivacyPolicy.vue new file mode 100644 index 0000000..93b87fb --- /dev/null +++ b/src/components/privacy/PrivacyPolicy.vue @@ -0,0 +1,471 @@ + diff --git a/src/locales/de-DE.json b/src/locales/de-DE.json index 3c1b034..5789595 100644 --- a/src/locales/de-DE.json +++ b/src/locales/de-DE.json @@ -114,5 +114,6 @@ "finished": "Fertiggestellt", "in-progress": "In Arbeit", "reserved": "Reserviert", - "available": "Frei" + "available": "Frei", + "privacy": "Datenschutz" } \ No newline at end of file diff --git a/src/locales/en-US.json b/src/locales/en-US.json index eb0e65c..aa5beb4 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -114,5 +114,6 @@ "finished": "Finished", "in-progress": "In progress", "reserved": "Reserved", - "available": "Available" + "available": "Available", + "privacy": "Privacy" } \ No newline at end of file diff --git a/src/router.ts b/src/router.ts index fb3c973..17e07c4 100644 --- a/src/router.ts +++ b/src/router.ts @@ -89,6 +89,13 @@ const router = createRouter({ }, ], }, + { + path: "privacy", + component: () => import("@/components/privacy/PrivacyPolicy.vue"), + meta: { + title: "privacy", + }, + }, ], }, {