Add some basic shit

This commit is contained in:
Salt 2020-08-16 04:02:16 -05:00
parent 2a2cbe11f4
commit 32f15bb3af
5 changed files with 51 additions and 0 deletions

6
.htaccess Normal file
View File

@ -0,0 +1,6 @@
RedirectMatch 404 /\.git
RedirectMatch 404 /\.templates
RedirectMatch 404 /src
RedirectMatch 404 /README.md
RedirectMatch 404 /LICENSE
RedirectMatch 404 /*.sh

10
deploy.sh Executable file
View File

@ -0,0 +1,10 @@
#! /bin/sh
#
# post-deploy.sh
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
#
# Distributed under terms of the MIT license.
#
ssh -t salt@www.9iron.club sudo git -C /var/www/www pull

8
index.php Normal file
View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
</head>
<body>
</body>
</html>

17
src/meta.php Normal file
View File

@ -0,0 +1,17 @@
<!-- Meta -->
<meta charset="utf-8">
<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>

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