From cd351c83e1901abeb9cbc0942f971fc799c56a3d Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Sat, 10 Oct 2020 23:34:51 -0500
Subject: [PATCH] Add an actual site

---
 deploy.sh         |  3 +++
 index.php         | 23 ++++++++++++++++++++++-
 src/header.php    |  4 ++++
 src/meta.php      | 18 ++++++++++++++++++
 styles/styles.css | 42 ++++++++++++++++++++++++++++++++++++++++++
 test.sh           | 10 ++++++++++
 6 files changed, 99 insertions(+), 1 deletion(-)
 create mode 100755 deploy.sh
 create mode 100644 src/header.php
 create mode 100644 src/meta.php
 create mode 100644 styles/styles.css
 create mode 100755 test.sh

diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..3857c5d
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+ssh -t salt@thefuck.how sudo git -C /var/www/www pull
+
diff --git a/index.php b/index.php
index 9daeafb..8a6b292 100644
--- a/index.php
+++ b/index.php
@@ -1 +1,22 @@
-test
+<!DOCTYPE html>
+<html>
+	<head>
+		<?php include $_SERVER['DOCUMENT_ROOT'].'/src/meta.php';?>
+		<title>thefuck.how</title>
+	</head>
+	<body>
+		<?php include $_SERVER['DOCUMENT_ROOT'].'/src/header.php';?>
+		<div class="content">
+			<h1>Connect to the Server</h1>
+			<p>Open Minecraft, click "Multiplayer", "Add Server", and drop this IP in:</p>
+			<code class="bigcode">thefuck.how</code>
+			<p>That's the IP. You put <code>thefuck.how</code> into your Minecraft client and you get the server.</p>
+			<h1>I Have a Problem</h1>
+			<p>You can message one of the server admins when they're on, or alternatively, you can message any of the staff members on discord:</p>
+			<ul>
+				<li>TheTypicalHero#8526</li>
+				<li>Salt#0382</li>
+			</ul>
+		</div>
+	</body>
+</html>
diff --git a/src/header.php b/src/header.php
new file mode 100644
index 0000000..723ed77
--- /dev/null
+++ b/src/header.php
@@ -0,0 +1,4 @@
+<div class="header">
+	<h1>thefuck.how</h1>
+	<span class="subtitle">i showed you my ram stick please respond</span>
+</div>
diff --git a/src/meta.php b/src/meta.php
new file mode 100644
index 0000000..f75d106
--- /dev/null
+++ b/src/meta.php
@@ -0,0 +1,18 @@
+<meta charset="utf-8">
+<link href="/styles/styles.css" type="text/css" rel="stylesheet">
+<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+<!-- No FOUC -->
+<style type="text/css">
+        .no-fouc {display: none;}
+</style>
+<script type="text/javascript">
+        document.documentElement.classname = 'no-fouc';
+        window.addEventListener("load", function(event) {
+                // No flash of unstyled content
+                nf = document.getElementsByClassName('no-fouc');
+                for (i = 0, len = nf.length; i < len; i++) {
+                        nf[i].removeClass('no-fouc');
+                }
+        });
+</script>
diff --git a/styles/styles.css b/styles/styles.css
new file mode 100644
index 0000000..70a1fe1
--- /dev/null
+++ b/styles/styles.css
@@ -0,0 +1,42 @@
+/*
+ * styles.css
+ * Copyright (C) 2020 Vintage Salt
+ *
+ * Distributed under terms of the MIT license.
+ */
+
+:root {
+	--background: #808;
+	--text: #0ff;
+	--text-code: #ff0;
+}
+body {
+	background: var(--background);
+	color: var(--text);
+}
+code {
+	color: var(--text-code);
+	display: inline-block;
+	font-size: 12pt;
+	padding: 2px 8px;
+}
+code.bigcode {
+	display: block;
+	font-size: 300%;
+	text-align: center;
+	margin: auto;
+	padding: 0;
+}
+.header {
+	padding: 1em;
+	text-align: center;
+}
+.header h1 {
+	font-size: 300%;
+	margin: 0;
+}
+.content {
+	margin: 0 auto;
+	max-width: 48em;
+	padding: 1em;
+}
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..2fdf625
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+#
+# test.sh
+# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
+#
+# Distributed under terms of the MIT license.
+#
+
+php -S localhost:8000
+