From 0a6b2f7ae248f2b4d2a39338de3e5bba5a62953b Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Mon, 28 Aug 2023 02:01:02 +0200 Subject: [PATCH] Rewrite licence and privacy as components --- src/components/licence.html | 16 ++++++++++++++++ src/components/privacy.html | 18 ++++++++++++++++++ src/pages/_licence.md | 12 ------------ src/pages/_privacy.md | 14 -------------- src/pages/index.astro | 14 ++++---------- 5 files changed, 38 insertions(+), 36 deletions(-) create mode 100644 src/components/licence.html create mode 100644 src/components/privacy.html delete mode 100644 src/pages/_licence.md delete mode 100644 src/pages/_privacy.md diff --git a/src/components/licence.html b/src/components/licence.html new file mode 100644 index 0000000..361762d --- /dev/null +++ b/src/components/licence.html @@ -0,0 +1,16 @@ +
+ Licence +

+ Share₂Fedi is free software: you can redistribute it and/or modify it under + the terms of the GNU Affero General Public License as published by the Free + Software Foundation, either version 3 of the License, or (at your option) + any later version. +

+ +

+ Share₂Fedi is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License + for more details. +

+
diff --git a/src/components/privacy.html b/src/components/privacy.html new file mode 100644 index 0000000..966c3d3 --- /dev/null +++ b/src/components/privacy.html @@ -0,0 +1,18 @@ +
+ Privacy Notice +

+ s2f.kytta.dev is hosted on Vercel. Vercel processes IP addresses, system + configuration information, and other information about traffic to and from + s2f.kytta.dev. Vercel does not store this information nor does it get shared + with third parties. See + Vercel's privacy policy + for more information. +

+

+ When you click the ‘Publish’ button, you’ll get redirected to a Fediverse + instance you’ve specified. It may process and/or store your data. Please + refer to the privacy policy of the respective instance. +

+
diff --git a/src/pages/_licence.md b/src/pages/_licence.md deleted file mode 100644 index 92b049d..0000000 --- a/src/pages/_licence.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Share₂Fedi Licence ---- - -Share₂Fedi is free software: you can redistribute it and/or modify it under the -terms of the GNU Affero General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version. - -Share₂Fedi is distributed in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A -PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. diff --git a/src/pages/_privacy.md b/src/pages/_privacy.md deleted file mode 100644 index 474f74d..0000000 --- a/src/pages/_privacy.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Share₂Fedi Privacy Notice ---- - -s2f.kytta.dev is hosted on Vercel. Vercel processes IP addresses, system -configuration information, and other information about traffic to and from -s2f.kytta.dev. Vercel does not store this information nor does it get shared -with third parties. See -[Vercel's privacy policy](https://vercel.com/legal/privacy-policy#customers) for -more information. - -When you click the ‘Publish’ button, you’ll get redirected to a Fediverse -instance you’ve specified. It may process and/or store your data. Please refer -to the privacy policy of the respective instance. diff --git a/src/pages/index.astro b/src/pages/index.astro index 01f49d2..a8363a6 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,8 +5,8 @@ */ import Layout from "@layouts/layout.astro"; import Form from "@components/form.astro"; -import { Content as PrivacyNotice } from "@pages/_privacy.md"; -import { Content as Licence } from "@pages/_licence.md"; +import Licence from "@components/licence.html"; +import Privacy from "@components/privacy.html"; import LanguageSelect from "@components/language-select.astro"; @@ -75,13 +75,7 @@ const prefilledInstance = searchParameters.get("instance"); >Status page.

-
- Licence - -
-
- Privacy Notice - -
+ +