Bläddra i källkod

overhaul imprint

Sven Fehler 3 år sedan
förälder
incheckning
b69d7384c7
7 ändrade filer med 85 tillägg och 36 borttagningar
  1. 1 1
      css/global.css
  2. 1 1
      css/redirect.css
  3. 19 17
      imprint/de.html
  4. 19 17
      imprint/en.html
  5. 11 0
      imprint/imprint.css
  6. 25 0
      imprint/imprint.js
  7. 9 0
      imprint/index.html

+ 1 - 1
css/global.css

@@ -1,7 +1,7 @@
 @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
 
 :root {
-    --bg-color-dark: #151515;
+    --bg-color-dark: #282c34;
     --bg-color-light: #f1f1f1;
 }
 

+ 1 - 1
css/redirect.css

@@ -1,7 +1,7 @@
 @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
 
 :root {
-    --bg-color: #151515;
+    --bg-color: #282c34;
     --bg-color-dim: #fff;
 }
 

+ 19 - 17
imprint/de.html

@@ -3,26 +3,29 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <script src="https://unpkg.com/phosphor-icons"></script>
-    <title>Sv443 - Impressum</title>
-    <link rel="stylesheet" href="css/global.css">
-    <link rel="stylesheet" href="css/index.css">
-    <script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>
-    <script type="text/javascript" src="js/index.js"></script>
+
+    <meta name="pagename" content="Sv443 Network - Impressum">
+    <meta property="og:title" content="Sv443 Network - Impressum">
+    <meta name="application-name" content="Sv443 Network - Impressum">
+
+    <title>Sv443 Network - Impressum</title>
+
+    <script src="./imprint.js"></script>
+
+    <link rel="stylesheet" href="../css/global.css">
+    <link rel="stylesheet" href="./imprint.css">
 </head>
 <body onload="otheronload();">
+    <noscript><h2 style="color: orangered;">Um Crawler zu bekämpfen muss auf dieser Seite JavaScript aktiviert sein, damit die Kontaktinformationen angezeigt werden können</h2></noscript>
     <header>
         <p id="title">Impressum</p>
     </header>
     <main>
-        <h2>Angaben gemäß §5 TMG</h2>
-        <p>Sven Fehler<br>
-            Käthe-Kollwitz-Weg 15<br>
-            70569 Stuttgart</p>
-        <h2>Kontakt</h2>
-        <p>Telefon: +49 176 73554985<br>
-            E-Mail: [email protected]</p>
-        <h3>Haftung für Inhalte</h3>
+        <h3>Angaben gemäß §5 TMG</h3>
+        <p class="insAddress" data-lang="de"></p>
+        <h3>Kontakt</h3>
+        <p class="insContact" data-lang="de"></p>
+        <h4>Haftung für Inhalte</h4>
         <p>Als Diensteanbieter sind wir gemäß § 7 Abs.1 TMG für eigene Inhalte auf diesen Seiten nach den
             allgemeinen
             Gesetzen verantwortlich. Nach §§ 8 bis 10 TMG sind wir als Diensteanbieter jedoch nicht verpflichtet,
@@ -35,7 +38,7 @@
             konkreten
             Rechtsverletzung möglich. Bei Bekanntwerden von entsprechenden Rechtsverletzungen werden wir diese Inhalte
             umgehend entfernen.</p>
-        <h3>Haftung für Links</h3>
+        <h4>Haftung für Links</h4>
         <p>Unser Angebot enthält Links zu externen Websites Dritter, auf deren Inhalte wir keinen Einfluss haben.
             Deshalb
             können wir für diese fremden Inhalte auch keine Gewähr übernehmen. Für die Inhalte der verlinkten
@@ -48,7 +51,7 @@
             Rechtsverletzung nicht zumutbar. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Links
             umgehend
             entfernen.</p>
-        <h3>Urheberrecht</h3>
+        <h4>Urheberrecht</h4>
         <p>Die durch die Seitenbetreiber erstellten Inhalte und Werke auf diesen Seiten unterliegen dem deutschen
             Urheberrecht. Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der
             Grenzen
@@ -59,7 +62,6 @@
             beachtet. Insbesondere werden Inhalte Dritter als solche gekennzeichnet. Sollten Sie trotzdem auf eine
             Urheberrechtsverletzung aufmerksam werden, bitten wir um einen entsprechenden Hinweis. Bei Bekanntwerden von
             Rechtsverletzungen werden wir derartige Inhalte umgehend entfernen.</p>
-        <script src="/cdn-cgi/apps/head/5pPzH2kRN5hr-QFaZq4KkAWkfiU.js"></script>
     </main>
 </body>
 </html>

+ 19 - 17
imprint/en.html

@@ -3,26 +3,29 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <script src="https://unpkg.com/phosphor-icons"></script>
-    <title>Sv443 - Legal Information</title>
-    <link rel="stylesheet" href="css/global.css">
-    <link rel="stylesheet" href="css/index.css">
-    <script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>
-    <script type="text/javascript" src="js/index.js"></script>
+
+    <meta name="pagename" content="Sv443 Network - Legal Information">
+    <meta property="og:title" content="Sv443 Network - Legal Information">
+    <meta name="application-name" content="Sv443 Network - Legal Information">
+
+    <title>Sv443 Network - Legal Information</title>
+
+    <script src="./imprint.js"></script>
+
+    <link rel="stylesheet" href="../css/global.css">
+    <link rel="stylesheet" href="./imprint.css">
 </head>
 <body onload="otheronload();">
+    <noscript><h2 style="color: orangered;">To battle crawlers this page requires JavaScript to be enabled for the contact information to be revealed</h2></noscript>
     <header>
         <p id="title">Site Notice</p>
     </header>
     <main>
-        <h2>Information pursuant to § 5 TMG</h2>
-        <p>Sven Fehler<br>
-            Käthe-Kollwitz-Weg 15<br>
-            70569 Stuttgart</p>
-        <h2>Contact</h2>
-        <p>Phone: +49 176 73554985<br>
-            E-mail: [email protected]</p>
-        <h3>Liability for Contents</h3>
+        <h3>Information pursuant to § 5 TMG</h3>
+        <p class="insAddress" data-lang="en"></p>
+        <h3>Contact</h3>
+        <p class="insContact" data-lang="en"></p>
+        <h4>Liability for Contents</h4>
         <p>As service providers, we are liable for own contents of these websites according to Paragraph 7, Sect. 1
             German
             Telemedia Act (TMG). However, according to Paragraphs 8 to 10 German Telemedia Act (TMG), service providers
@@ -34,7 +37,7 @@
             case, liability is only possible at the time of knowledge about a specific violation of law. Illegal
             contents
             will be removed immediately at the time we get knowledge of them.</p>
-        <h3>Liability for Links</h3>
+        <h4>Liability for Links</h4>
         <p>Our offer includes links to external third party websites. We have no influence on the contents of those
             websites, therefore we cannot guarantee for those contents. Providers or administrators of linked websites
             are
@@ -46,7 +49,7 @@
             websites cannot be imposed without reasonable indications that there has been a violation of law. Illegal
             links
             will be removed immediately at the time we get knowledge of them.</p>
-        <h3>Copyright</h3>
+        <h4>Copyright</h4>
         <p>Contents and compilations published on these websites by the providers are subject to German copyright laws.
             Reproduction, editing, distribution as well as the use of any kind outside the scope of the copyright law
             require a written permission of the author or originator. Downloads and copies of these websites are
@@ -59,6 +62,5 @@
             provider. Contributions of third parties on this site are indicated as such. However, if you notice any
             violations of copyright law, please inform us. Such contents will be removed immediately.</p>
     </main>
-    <script src="/cdn-cgi/apps/head/5pPzH2kRN5hr-QFaZq4KkAWkfiU.js"></script>
 </body>
 </html>

+ 11 - 0
imprint/imprint.css

@@ -0,0 +1,11 @@
+body {
+    background-color: var(--bg-color-dark);
+    color: white;
+    margin: 30px;
+}
+
+
+#title {
+    margin-bottom: 10px;
+    font-size: 1.75em;
+}

+ 25 - 0
imprint/imprint.js

@@ -0,0 +1,25 @@
+// obfuscation because of crawlers
+const contents = Object.freeze({
+    address: {
+        en: "U3ZlbiBGZWhsZXI8YnI+S+R0aGUtS29sbHdpdHotV2VnIDE1PGJyPjcwNTY5IFN0dXR0Z2FydA==",
+        de: "U3ZlbiBGZWhsZXI8YnI+S+R0aGUtS29sbHdpdHotV2VnIDE1PGJyPjcwNTY5IFN0dXR0Z2FydA==",
+    },
+    contact: {
+        en: "UGhvbmU6ICs0OSAxNzYgNzM1NTQ5ODU8YnI+RS1NYWlsOiBjb250YWN0QHN2NDQzLm5ldA==",
+        de: "VGVsZWZvbjogKzQ5IDE3NiA3MzU1NDk4NTxicj5FLU1haWw6IGNvbnRhY3RAc3Y0NDMubmV0",
+    },
+});
+
+document.addEventListener("DOMContentLoaded", init);
+
+function init()
+{
+    /**
+     * @param {string} content b64 encoded
+     * @param {HTMLElement} element
+     */
+    const insert = (content, element) => element.innerHTML = atob(content[element.dataset.lang]);
+
+    document.querySelectorAll(".insAddress").forEach(insElem => insert(contents.address, insElem));
+    document.querySelectorAll(".insContact").forEach(insElem => insert(contents.contact, insElem));
+}

+ 9 - 0
imprint/index.html

@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <link rel="stylesheet" href="./imprint.css">
+    </head>
+    <body>
+
+    </body>
+</html>