From 420e08a73ff7446f02c872336ec5df815b39c461 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 8 Oct 2023 23:51:01 +0200 Subject: [PATCH] Become a member --- assets/css/style.css | 18 ++++++++++++++++ content/become-a-member/index.de.md | 12 +++++++++++ content/become-a-member/index.en.md | 12 +++++++++++ hugo.yaml | 5 ++++- i18n/de.toml | 5 +++++ i18n/en.toml | 5 +++++ layouts/_default/become-a-member.html | 30 +++++++++++++++++++++++++++ layouts/partials/menu-url.html | 13 ++++++++++++ layouts/partials/nav.html | 8 ++++--- 9 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 content/become-a-member/index.de.md create mode 100644 content/become-a-member/index.en.md create mode 100644 layouts/_default/become-a-member.html create mode 100644 layouts/partials/menu-url.html diff --git a/assets/css/style.css b/assets/css/style.css index a1649d1..be921b8 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2590,6 +2590,10 @@ video { grid-column: span 6 / span 6; } +.m-2 { + margin: 0.5rem; +} + .-mx-5 { margin-left: -1.25rem; margin-right: -1.25rem; @@ -2656,6 +2660,10 @@ video { margin-bottom: 2rem; } +.me-1 { + margin-inline-end: 0.25rem; +} + .ml-1 { margin-left: 0.25rem; } @@ -4128,6 +4136,11 @@ EmojiSymbols; background-color: rgb(230 146 143 / var(--tw-bg-opacity)); } +.hover\:bg-primary-500:hover { + --tw-bg-opacity: 1; + background-color: rgb(205 50 46 / var(--tw-bg-opacity)); +} + .hover\:bg-primary-600:hover { --tw-bg-opacity: 1; background-color: rgb(159 39 36 / var(--tw-bg-opacity)); @@ -4182,6 +4195,11 @@ EmojiSymbols; border-color: transparent; } +.focus\:bg-primary-500:focus { + --tw-bg-opacity: 1; + background-color: rgb(205 50 46 / var(--tw-bg-opacity)); +} + .focus\:bg-primary-600:focus { --tw-bg-opacity: 1; background-color: rgb(159 39 36 / var(--tw-bg-opacity)); diff --git a/content/become-a-member/index.de.md b/content/become-a-member/index.de.md new file mode 100644 index 0000000..1b7240f --- /dev/null +++ b/content/become-a-member/index.de.md @@ -0,0 +1,12 @@ +--- +title: Mitglied werden +date: 2023-10-01T03:10:36.000Z +draft: false +layout: become-a-member +description: A test with @tailwindcss/typography & Prose +people_heading: Representative persons +url: /de/mitglied-werden +url_en: /en/become-a-member +people_text: | + These are the people who are officially responsible for the NewPipe project and the NewPipe e.V. association. If you want to contact us, please use the form below. +--- \ No newline at end of file diff --git a/content/become-a-member/index.en.md b/content/become-a-member/index.en.md new file mode 100644 index 0000000..b766140 --- /dev/null +++ b/content/become-a-member/index.en.md @@ -0,0 +1,12 @@ +--- +title: Become A Member +date: 2023-10-01T03:10:36.000Z +draft: false +layout: become-a-member +description: A test with @tailwindcss/typography & Prose +people_heading: Representative persons +url: /en/become-a-member +url_de: /de/mitglied-werden +people_text: | + These are the people who are officially responsible for the NewPipe project and the NewPipe e.V. association. If you want to contact us, please use the form below. +--- diff --git a/hugo.yaml b/hugo.yaml index 4e25601..27918fe 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -134,7 +134,10 @@ menu: url: /about/ weight: 20 - identifier: become-a-member - url: /contact/ + url: /become-a-member/ + params: + url_en: /en/become-a-member/ + url_de: /de/mitglied-werden/ weight: 40 about: - identifier: foundation diff --git a/i18n/de.toml b/i18n/de.toml index 1888910..9137592 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -10,6 +10,11 @@ appearance = "Aussehen" comments = "Kommentare" analytics = "Analytik" basicInfo = "Dies sind die Grundinformationen über NewPipe e.V." +learn_more = "mehr erfahren" + +forename = "Vorname" +surname = "Nachname" +email = "E-Mail" moto = "Supporting privacy and open source software" index_description = "NewPipe e.V. ist eine gemeinnützige Organisation, die sich für die Förderung von Datenschutz und Open-Source-Software einsetzt. Wir sind die Organisation hinter NewPipe, einer freien Medien-App für Android." diff --git a/i18n/en.toml b/i18n/en.toml index 8cb2d09..2c45e43 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -10,6 +10,11 @@ appearance = "Appearance" comments = "Comments" analytics = "Analytics" basicInfo = "This is basic information about NewPipe e.V." +learn_more = "Learn more" + +forename = "Forename" +surname = "Surname" +email = "Email" moto = "Supporting privacy and open source software" index_description = "NewPipe e.V. is a non-profit organization that aims to empower users to take back control of their data and to protect their privacy when using Android devices." diff --git a/layouts/_default/become-a-member.html b/layouts/_default/become-a-member.html new file mode 100644 index 0000000..e1e6d24 --- /dev/null +++ b/layouts/_default/become-a-member.html @@ -0,0 +1,30 @@ +{{define "main"}} + + +
+
+

Got a technical issue? Want to send feedback about a beta feature? Need details about our Business plan? Let us know.

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+{{end}} \ No newline at end of file diff --git a/layouts/partials/menu-url.html b/layouts/partials/menu-url.html new file mode 100644 index 0000000..c5ca2cc --- /dev/null +++ b/layouts/partials/menu-url.html @@ -0,0 +1,13 @@ +{{- if eq .lang "en" -}} + {{- with .menu.url_en -}} + {{- relURL . -}} + {{- else -}} + {{- .menu.URL | absLangURL -}} + {{- end -}} +{{- else -}} + {{- with .menu.url_de -}} + {{- relURL . -}} + {{- else -}} + {{- .menu.URL | absLangURL -}} + {{- end -}} +{{- end -}} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 1ae7e3a..6ead7d7 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -24,6 +24,7 @@