Initial stuffing

This commit is contained in:
Salt 2020-09-11 11:07:28 -05:00
parent 7446b83a09
commit 92c6e8bb09
32 changed files with 487 additions and 0 deletions

16
.templates/template.php Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<title>Desu, Ltd.</title>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Changeme</h1>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</body>
</html>

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

BIN
images/logo/anonssister.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
images/logo/astolfo1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

BIN
images/logo/astolfo2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 KiB

BIN
images/logo/besht.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

BIN
images/logo/bread1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 KiB

BIN
images/logo/cirno1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
images/logo/cirno2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 KiB

BIN
images/logo/comfy1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 KiB

BIN
images/logo/h1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

BIN
images/logo/h2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

BIN
images/logo/h3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
images/logo/h4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

BIN
images/logo/happy1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 KiB

BIN
images/logo/heart.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
images/logo/lain1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
images/logo/maga1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
images/logo/pocky.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
images/logo/snugsmug.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

BIN
images/logo/what.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

BIN
images/logo/zombie1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 KiB

30
index.php Normal file
View File

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<link href="/styles/buttons.css" type="text/css" rel="stylesheet" />
<!-- These are just to make the big buttons look nice. Feel free to block -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
<title>Desu, Ltd.</title>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="iconbuttoncontainer">
<a href="https://desu.ltd" class="iconbutton">
<h1>desu</h1>
<p>You are here</p>
</a>
<a href="https://9iron.club" class="iconbutton">
<h1>9iron</h1>
<p>The vidya vault and the main domain</p>
</a>
<a href="https://cowfee.moe" class="iconbutton">
<h1>cowfee</h1>
<p>Decentralized shitposting</p>
</a>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</body>
</html>

5
src/common-footer.php Normal file
View File

@ -0,0 +1,5 @@
<!--
<div class="footer">
<p>desu</p>
</div>
-->

7
src/common-header.php Normal file
View File

@ -0,0 +1,7 @@
<div class="header logocontainer">
<img class="logo" src="<?php
$files = glob($_SERVER['DOCUMENT_ROOT'].'/images/logo/*');
$message = $files[array_rand($files, 1)];
echo "$message";
?>" alt="logo" width=768 height=768 />
</div>

21
src/common-meta.php Normal file
View File

@ -0,0 +1,21 @@
<!-- Meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="/styles/styles.css" type="text/css" rel="stylesheet" />
<link href="/favicon.ico" rel="shortcut icon" />
<link rel="alternate" href="/feed" title="9iron RSS Feed" type="application/rss+xml" />
<!-- 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>

184
src/common-subtitle.php Normal file
View File

@ -0,0 +1,184 @@
<?php
$subtitles = array(
// Press F to pay respects
"For those afflicted",
"We don't fuck dragons",
// F
"cowfee",
"gween tea",
"You shot it into the fucking sand",
"Your ball's in the lake",
"It's in the fucking trees, Mike",
"I don't even play golf",
"7-Wood was too obscure",
"We don't go to 8iron",
"Hits like a gravity hammer",
"Try it on mobile",
"Please don't try it on mobile",
// The joke is I'm not on Facebook and never have
// har har
"Find me on Facebook",
"I wanna be the guy",
"I <3 cockmail",
"Five is right out",
"Lorem ipsum suck my dick",
"foo",
"Test subtitle please ignore",
"Hit me up on fedi",
"suya..",
"Pour one out for welovela.in",
"We all love Lain",
"玲音",
"レイン",
"",
"I'll play Risk of Rain 2 any day",
"Feelin' pretty fresh workin' nights",
"Leopard geckos are cute",
"Finally, a good fucking subtitle",
"Will shitpost for attention",
"Will shitpost for literally nothing",
"Will write HTML for attention",
"Maybe one day",
"Test bed for chaos",
"Botania best mod. Fight me.",
"KingLemming is awesome",
"asie knows what he's talking about",
"Redigit is an amazing studio",
"Great Barrier Reef",
"This match is just about over",
"Better change tactics",
"honk.wmv",
"bomk",
"guys literally only want one thing",
"Dame da ne~!",
"You can't look up with your tongue out",
"ばかみたい",
"Smug animu",
"wan",
"Touch fluffy tail",
"Hard to find",
"Tiny Little Adiantum",
"Night of Nights",
"Marisa stole the precious thing",
"Clown best tofu",
"It's gonna be alright",
"P.E.T.R.O.L. is a great song",
"Rest in RIP, WipEout",
"Get out of my face",
"You are smart",
"You aren't smart",
"Firefox takes 8MB to render this page",
"I think this site was worth the effort",
"This site was not worth the effort",
"At some point I'm gonna redo the CSS here",
"I've already redone the CSS like 5 times",
"Discord's pinning a core right now",
"Slack's pinning a core right now",
"gcc's pinning all of my cores right now",
"Steam's choking my link right now",
"Larry Ellison needs a new goddamn boat",
"Like tears in rain",
"Like a lizard",
"Shave and a haircut",
"Lain in a bear suit",
"Let's get this out onto a tray. Nice. Mmkay.",
"This space intentionally left blank",
"",
"Banned in Australia",
"Banned in Australia(?)",
"I want a PSP again",
"Anybody remember Dark Alex?",
"5.00-M33",
"0xDEADBEEF",
"0xBEEFBEEF",
"0xBEEEEEEF",
"0xBEF",
"My Switch runs Linux",
"StackOverflow is the best",
"StackOverflow is the worst",
"Don't go overboard",
"God I hate reddit",
"Bert",
"ディスコード", // Discordo, case you were wondering
"disukodo",
"\"it says discordo\"",
"\"Nice.\"",
// - Me, all the fucking time
"\"Is that THE Simon Belmont Castlevania?\"",
// - Me, irritating Sam
"laddr",
// - Brett
"\"100% of people that get killed die\"",
// - Brett
"\"Sir, this is an M32 grenade launcher\"",
// - Jacob https://www.youtube.com/watch?v=DJRkFLFnv3c
"\"OHNO!\"",
// - Jacob
"\"Much edge\"",
// - Jacob
"\"I'm in danger!\"",
// - At least four of us, constantly shittalking
"\"He got cancer and became a Nazi\"",
// - Carson
"\"I died twice, but I only died once\"",
// - Carson
"\"Sir, this is a 7-11\"",
// - Carson
"\"Jumanji\"",
// - Carson?
"\"Who's Adobe?\"",
// - Carson
"\"Weird hour-having fucks\"",
// - Carson
"\"Leonidas is a disease\"",
// - Syd
"\"Calories don't have vegetables\"",
// - Syd
"\"Cancer is basically a kid\"",
// - Syd
"\"I'm gonna fart. I'm gonna-\"",
// - Tex of BPL, just before he farts medical into the next universe
"\"Double-bitched out of love~\"",
// - vampqu33n
"God dammit, Sam",
"God dammit, Jacob",
"God dammit",
"Cancer sucks. 0/10",
"Depression's alright. 3/10",
"[cat scratching at door]",
"[dog barks in the distance]",
"[duvet plays in the distance]",
"[vocaloid plays in the distance]",
"[forge crashes in the distance]",
"[ansible noises]",
"[powerline noises]",
"[cyberpunk jazz noises]",
"[satire intensifies]",
"[maniacal laughter]",
"[laughter, then disappointment]",
"I'm a professional, trust me",
"Nobody's a professional",
"PM_ME_ANSIBLE_ROLES",
"PM_ME_SUBTITLE_IDEAS",
"PM_ME_BOTANIA_SETUPS",
"PM_ME_IM_LONELY",
"Not to be confused with plan 9",
"Not to be confused with 9front",
"The front fell off",
"4th edition",
"5th edition with author's notes",
"Mr. Worldwide edition",
"Nobody reads this edition",
"Random subtitles edition",
"Shenanigans edition",
"Using PHP for shitty jokes edition",
"No backing database edition",
"Motherfucking website edition",
"Licensed under MIT edition",
"Now SFW edition",
"NSFW edition?",
"NSFW edition"
);
$message = $subtitles[array_rand($subtitles, 1)];
echo "$message";
?>

BIN
src/logo.xcf Normal file

Binary file not shown.

37
styles/buttons.css Normal file
View File

@ -0,0 +1,37 @@
/*
* buttons.css
* Copyright (C) 2020 Vintage Salt
*
* Distributed under terms of the MIT license.
*/
/* BIG ICON BUTTONS
* Used on the index for services */
div.iconbuttoncontainer {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto auto auto auto;
}
a.iconbutton {
background: var(--background-dark);
border: 4px solid var(--background-dark);
display: block;
margin: 0.5em;
padding: 1em;
text-align: center;
}
a.iconbutton:hover {
background: var(--link-hover);
color: var(--background);
}
a.iconbutton i {
font-size: 400%
}
/* MOBILE */
@media only screen and (max-width: 600px) {
div.iconbuttoncontainer {
grid-template-columns: 1fr;
}
}

167
styles/styles.css Normal file
View File

@ -0,0 +1,167 @@
/*
* styles.css
* Copyright (C) 2020 Vintage Salt
*
* Distributed under terms of the MIT license.
*/
/* GLOBALS */
:root {
--background: #3c3341;
--background-dark: #28232c;
--link: #ba844d;
--link-hover: #ffb940;
--text: #f7f4db;
}
html {
background: var(--background-dark);
overflow-y: scroll;
}
body {
background: var(--background);
color: var(--text);
font-family: "Roboto", sans-serif;
margin: 4em auto;
max-width: 40em;
padding: 4em;
}
/* TYPES */
/* a */
a {
color: var(--link);
text-decoration: none;
transition: .08s ease-in;
}
a:hover {
color: var(--link-hover);
}
/* code */
code {
background: var(--text);
border-radius: 3px;
color: var(--background-dark);
display: inline-block;
font-size: 11pt;
padding: 2px 4px;
}
dl {
list-style-type: none;
margin: 0;
}
dl dt {
font-weight: bold;
margin: 1em 0 0 0;
}
dl dd {
margin: 0;
}
/* CUSTOM DIVS AND SPANS */
a.quickbutton {
background: var(--background);
border-radius: 8px;
display: block;
font-size: 150%;
margin: 0.5em 0;
padding: 1em;
text-align: center;
}
a.quickbutton:hover {
background: var(--link-hover);
color: var(--background-dark);
}
div.break {
width: 4em;
margin: 2em auto;
border-bottom: 3px double var(--text);
}
img.bigimg {
border-radius: 8px;
display: block;
margin: 1em auto;
}
/* HIERARCHICAL CLASSES */
/* HEADER */
.header {
background: var(--background);
}
.logocontainer {
align-items: center;
display: flex;
justify-content: center;
padding: 1em 0;
}
.logo {
border-radius: 50%;
height: 128px;
vertical-align: middle;
margin: 0 1em;
max-width: 128px;
}
.header h1 {
display: inline;
margin: 0;
}
.header p {
margin: 0;
}
.header nav ul {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
.header nav ul li {
display: inline-block;
padding: 0.8em;
}
.header nav ul li:hover {
background: var(--link-hover);
color: var(--background-dark);
transition: .08s ease-in;
}
/* CONTENT */
.content {
background: var(--background);
padding: 2em 0;
}
.subcontainer {
background: var(--background);
border-radius: 8px;
margin: 1em 0;
padding: 1em;
}
.toc {
background: var(--background);
border-radius: 4px;
display: inline-block;
margin: 0 1em 1em 1em;
width: auto;
}
/* FOOTER */
.footer {
background: var(--background);
font-size: 11px;
line-height: 1.3;
padding: 1em 0;
text-align: center;
}
.footer p {
margin: 0;
}
/* MOBILE */
@media only screen and (max-width: 600px) {
body {
margin: 0;
padding: 1em;
}
.nomobile {
display: none;
}
}

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