Add an actual site

This commit is contained in:
Salt 2020-10-10 23:34:51 -05:00
parent fe843d0e6f
commit cd351c83e1
6 changed files with 99 additions and 1 deletions

3
deploy.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/sh
ssh -t salt@thefuck.how sudo git -C /var/www/www pull

View File

@ -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>

4
src/header.php Normal file
View File

@ -0,0 +1,4 @@
<div class="header">
<h1>thefuck.how</h1>
<span class="subtitle">i showed you my ram stick please respond</span>
</div>

18
src/meta.php Normal file
View File

@ -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>

42
styles/styles.css Normal file
View File

@ -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;
}

10
test.sh Executable file
View File

@ -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