From 3fb27ba94af59abcaf73e56dad01641a8ff28835 Mon Sep 17 00:00:00 2001
From: Conrad <15138480+creyD@users.noreply.github.com>
Date: Thu, 23 Jan 2020 14:35:25 +0100
Subject: [PATCH] Added About Page and Custom Font
---
src/components/footer.js | 4 ---
src/pages/about.js | 23 ++++++++++++++-
src/pages/history.js | 61 ----------------------------------------
src/pages/index.js | 22 +++++++++++++--
src/styles/global.css | 23 +++++++++++++++
5 files changed, 65 insertions(+), 68 deletions(-)
delete mode 100644 src/pages/history.js
diff --git a/src/components/footer.js b/src/components/footer.js
index eb05c64..edc06f7 100644
--- a/src/components/footer.js
+++ b/src/components/footer.js
@@ -11,10 +11,6 @@ export default () => (
discord
.
-
- steam
-
- .
github
diff --git a/src/pages/about.js b/src/pages/about.js
index 89dbe96..235f8be 100644
--- a/src/pages/about.js
+++ b/src/pages/about.js
@@ -1,9 +1,30 @@
import React from "react"
import Header from "../components/header"
+import Footer from "../components/footer"
export default () => (
- // TODO Impressum
+
+
+ As this is a private website, it doesn't need an imprint. However let's
+ clarify a few things:
+
+
+
Cookies
+
This site uses none.
+
+
GDPR
+
+ As this site doesn't use any user data, it complies with GDPR
+ regulations.
+
+
+
+
+
+
+
+
)
diff --git a/src/pages/history.js b/src/pages/history.js
deleted file mode 100644
index 32d1aa3..0000000
--- a/src/pages/history.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import React from "react"
-import dateFormat from "dateformat"
-import Header from "../components/header"
-
-const GIT_OWNER = "creyD"
-const GIT_REPO = "urban_website"
-const GIT_URL =
- "https://api.github.com/repos/" + GIT_OWNER + "/" + GIT_REPO + "/events"
-const GIT_COMMIT_URL =
- "https://github.com/" + GIT_OWNER + "/" + GIT_REPO + "/commit/"
-
-// Format the date provided by the GitHub API
-function getDateFormatted(unformated_date) {
- return dateFormat(unformated_date, "dd.mm.yyyy")
-}
-
-// Adds Git History to the site
-function addGitHistory(data) {
- for (var push in data) {
- for (var commit in data[push]["payload"]["commits"]) {
- var new_li = document.createElement("li")
- var url = GIT_COMMIT_URL + data[push]["payload"]["commits"][commit].sha
- new_li.innerHTML =
- data[push]["payload"]["commits"][commit].author.name +
- " committed on " +
- getDateFormatted(data[push].created_at) +
- ": " +
- data[push]["payload"]["commits"][commit].message +
- " (Link)"
- var log = document.getElementById("log")
- log.appendChild(new_li)
- }
- }
-}
-
-// Send HTTP request to the GitHub API to get information about this repo
-function getGitHubAPIData() {
- const Http = new XMLHttpRequest()
- Http.open("GET", GIT_URL)
- Http.send()
-
- // If the API responds call the addGitHistory function
- Http.onreadystatechange = function() {
- if (this.readyState === 4 && this.status === 200) {
- addGitHistory(JSON.parse(Http.responseText))
- }
- }
-}
-
-export default () => (
-
-
-
- You can see the full commit history{" "}
- here.
-
-
-
-)
diff --git a/src/pages/index.js b/src/pages/index.js
index 3e9e395..04e74c2 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -6,8 +6,26 @@ import Footer from "../components/footer"
export default () => (
-
-
+
Welcome to the Urban Brothers Website
+
+
+
+
+
+ For help with any community related matters, please contact one of our
+ moderators or admins on either TeamSpeak or Discord.
+
+
)
diff --git a/src/styles/global.css b/src/styles/global.css
index 9db8a87..0e6edf0 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -1,3 +1,26 @@
+@import url("https://fonts.googleapis.com/css?family=Merriweather&display=swap");
+
html {
background-color: lightgrey;
}
+
+* {
+ font-family: "Merriweather", serif;
+}
+
+a,
+a:visited,
+a:hover {
+ color: red;
+}
+
+#tagline {
+ text-align: center;
+ font-style: italic;
+}
+
+.container {
+ width: 80%;
+ margin-left: 10%;
+ margin-right: 10%;
+}