From 965212c08ecc7bf1bc912e66aaf77dc09e7b11d0 Mon Sep 17 00:00:00 2001 From: Moritz Ruth Date: Sun, 1 Dec 2019 12:28:29 +0100 Subject: [PATCH] Add legal notice and privacy policy --- .eslintrc.js | 2 +- assets/css/elements/_all.scss | 1 + assets/css/elements/heading.scss | 5 +- assets/css/elements/paragraph.scss | 7 + assets/css/global.scss | 2 +- assets/icons/external.svg | 1 + components/AnimatedLogo.vue | 4 +- components/ExternalLink.vue | 42 +++++ components/NavigationBar.vue | 5 + pages/index.vue | 4 +- pages/legal-notice.vue | 78 ++++++++ pages/privacy-policy.vue | 286 +++++++++++++++++++++++++++++ 12 files changed, 429 insertions(+), 8 deletions(-) create mode 100644 assets/css/elements/paragraph.scss create mode 100644 assets/icons/external.svg create mode 100644 components/ExternalLink.vue create mode 100644 pages/legal-notice.vue create mode 100644 pages/privacy-policy.vue diff --git a/.eslintrc.js b/.eslintrc.js index 30977e7..6bbbbad 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -151,7 +151,7 @@ module.exports = { "vue/no-v-html": "off", "vue/html-self-closing": "off", "vue/singleline-html-element-content-newline": ["warn", { - ignores: ["pre", "textarea", "nuxt-link", ...INLINE_ELEMENTS] + ignores: ["pre", "textarea", "nuxt-link", "ExternalLink", ...INLINE_ELEMENTS] }] } }; diff --git a/assets/css/elements/_all.scss b/assets/css/elements/_all.scss index 6521112..a848541 100644 --- a/assets/css/elements/_all.scss +++ b/assets/css/elements/_all.scss @@ -1,3 +1,4 @@ @import "content"; @import "link"; @import "heading"; +@import "paragraph"; diff --git a/assets/css/elements/heading.scss b/assets/css/elements/heading.scss index 2ecf0f0..850f405 100644 --- a/assets/css/elements/heading.scss +++ b/assets/css/elements/heading.scss @@ -4,11 +4,11 @@ } .heading--1 { - font-size: 4.4rem; + font-size: 3.8rem; } .heading--2 { - font-size: 3.2rem; + font-size: 3rem; } .heading--3 { @@ -26,4 +26,3 @@ .heading--6 { font-size: 1.4rem; } - diff --git a/assets/css/elements/paragraph.scss b/assets/css/elements/paragraph.scss new file mode 100644 index 0000000..8de6b89 --- /dev/null +++ b/assets/css/elements/paragraph.scss @@ -0,0 +1,7 @@ +.paragraph { + margin: 20px 0; + + li { + margin-left: 20px; + } +} diff --git a/assets/css/global.scss b/assets/css/global.scss index f6e7cbb..75c9e83 100644 --- a/assets/css/global.scss +++ b/assets/css/global.scss @@ -24,7 +24,7 @@ body { html, body, #__nuxt, #__layout, .fill-screen { max-width: 100vw; min-height: 100vh; - overflow-x: hidden; + overflow-x: auto; } ::selection { diff --git a/assets/icons/external.svg b/assets/icons/external.svg new file mode 100644 index 0000000..5ab2abf --- /dev/null +++ b/assets/icons/external.svg @@ -0,0 +1 @@ + diff --git a/components/AnimatedLogo.vue b/components/AnimatedLogo.vue index ee3cf77..a940ca8 100644 --- a/components/AnimatedLogo.vue +++ b/components/AnimatedLogo.vue @@ -8,7 +8,7 @@ + + diff --git a/components/NavigationBar.vue b/components/NavigationBar.vue index df07f0c..8127003 100644 --- a/components/NavigationBar.vue +++ b/components/NavigationBar.vue @@ -74,6 +74,11 @@ .navigation-bar__title { font-size: 1.5rem; font-weight: bold; + text-overflow: ellipsis; + overflow: hidden; + + flex-shrink: 0; + max-width: calc(100% - 50px); transition: 200ms ease; transition-property: opacity, transform; diff --git a/pages/index.vue b/pages/index.vue index 8f1393f..328fe96 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -35,7 +35,7 @@ } .index-page__name { - animation: appear 400ms 3.8s ease both; + animation: appear 800ms 3.5s ease both; font-size: 2rem; } @@ -62,6 +62,8 @@ } .index-page__social-link { + color: black; + &:not(:last-child) { margin-right: 15px; } diff --git a/pages/legal-notice.vue b/pages/legal-notice.vue new file mode 100644 index 0000000..a386ca2 --- /dev/null +++ b/pages/legal-notice.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/privacy-policy.vue b/pages/privacy-policy.vue new file mode 100644 index 0000000..5e2d64b --- /dev/null +++ b/pages/privacy-policy.vue @@ -0,0 +1,286 @@ + + + + +