diff --git a/src/components/Layout/Foot.vue b/src/components/Layout/Foot.vue index 05d0ddf2..2ef18acd 100644 --- a/src/components/Layout/Foot.vue +++ b/src/components/Layout/Foot.vue @@ -21,6 +21,7 @@
  • Privacy Policy
  • Terms of Use
  • Hosting Policy
  • +
  • Digital Services Act Information
  • Imprint
  • Report illegal content
  • diff --git a/src/components/Pages/DsaInfo/DsaEnglish.vue b/src/components/Pages/DsaInfo/DsaEnglish.vue new file mode 100644 index 00000000..8d10c06c --- /dev/null +++ b/src/components/Pages/DsaInfo/DsaEnglish.vue @@ -0,0 +1,157 @@ + + + + + diff --git a/src/components/Pages/DsaInfo/DsaGerman.vue b/src/components/Pages/DsaInfo/DsaGerman.vue new file mode 100644 index 00000000..9af1903c --- /dev/null +++ b/src/components/Pages/DsaInfo/DsaGerman.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/components/Pages/DsaInfo/DsaInfo.vue b/src/components/Pages/DsaInfo/DsaInfo.vue new file mode 100644 index 00000000..29196414 --- /dev/null +++ b/src/components/Pages/DsaInfo/DsaInfo.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index c164fc9d..39aa11d0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -20,6 +20,7 @@ import User from '@/components/Pages/User' import Discovery from '@/components/Pages/Discovery/Discovery' import Complaint from '@/components/Pages/Complaint.vue' import HostingPolicy from '@/components/Pages/HostingPolicy.vue' +import DsaInfo from '@/components/Pages/DsaInfo/DsaInfo' Vue.use(Router) @@ -84,6 +85,11 @@ const router = new Router({ name: 'Privacy', component: Privacy, }, + { + path: '/dsa-info', + name: 'DsaInfo', + component: DsaInfo, + }, { path: '/logout', name: 'Logout', @@ -142,6 +148,18 @@ const router = new Router({ }, }, ], + scrollBehavior (to, from, savedPosition) { + // brings viewport back to where it was when using Back button + if (savedPosition) return savedPosition + + // scroll to in-page router-link anchor if used + if (to.hash) { + return { selector: to.hash, behavior: 'smooth' } + } + + // default: scroll to the top of the page + return { x: 0, y: 0, behavior: 'smooth' } + }, }) // Require some routes to be logged in only.