Jason Schwarzenberger 4 months ago
commit
f44e957787

+ 14 - 0
build.sh

@@ -0,0 +1,14 @@
+dir=/var/www/1j.nz/
+
+head -n 10 $dir/template/index.html
+
+cat $dir/template/header.html
+cat $dir/sections/*.html
+
+ls $dir/compiled/*.sh | bash
+
+cat $dir/template/footer.html
+
+echo "<!-- generated: $(date -Iseconds) -->"
+
+tail -n 3 $dir/template/index.html

+ 9 - 0
compiled/01-gists.sh

@@ -0,0 +1,9 @@
+echo "	<section class="gists">"
+echo "		<h3>Gists</h3>"
+curl --silent -s "https://api.github.com/users/master5o1/gists" \
+ | jq '.[0:10] | map("<article class=\"gist\"><a href=\"\(.html_url)\">\(.files | keys | .[0])</a><time datetime=\"\(.created_at)\">\(.created_at)</time><p class=\"caption\">\(.description)</p></article>") | add' \
+ | sed -e 's/\\"/"/g' \
+ | cut -c 2- | rev | cut -c 2- | rev \
+ | sed -e 's/^/\t\t/'
+echo "	</section>"
+echo ""

BIN
html/Schwarzenberger.png


BIN
html/img/cows.jpg


File diff suppressed because it is too large
+ 35 - 0
html/index.html


+ 1 - 0
html/ssh.pub

@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrFNZeaxXTNeO0FFLRZC/uZ4GRSGjw2qR4RBuUDnVeKf0PkWXhLUfOqlYbt9dIGizYu81MlIF/AMCbEa8fmv0h2M8D1sW1RuT1O0MvtDfL9rsfyaXCR4bdh6yLY3VCs6aGCXNXY94nPXFqE4LarstqMuuMosgjViYed16MQxignV0yPuKxv6F1Mgs+NT357AD4b+JVkF5om0MBFsrcOroPDY0H2JxDArjXAHI0CRRim4/TocwD6cIjv5KBbtr/3gjJVz9DyXDRPrBOVHKum1AICBOdbMKFmOLWOZSiQznN4A/9lkUqy2Y2IgDlVvvMV9aywyIsC90kwO/VEUJV4SHP ssh@js.org.nz

+ 104 - 0
html/style.css

@@ -0,0 +1,104 @@
+body {
+	margin: 0.5rem auto;
+	max-width: 42rem;
+	font: 1.2em/1.62 sans-serif;
+}
+
+p,
+ul {
+	margin: 0.75rem 0;
+}
+
+h1,
+h2,
+h3,
+p {
+	line-height: 1.2;
+}
+
+h1,
+h2,
+h3 {
+	font-variant: small-caps;
+}
+
+h1,
+h1+p {
+	margin: 0;
+}
+h2, h3 {
+	margin: 0.25rem 0;
+}
+
+ul {
+	list-style-type: none;
+	padding: 0;
+}
+
+a {
+	color: #000000;
+	text-decoration: none;
+	border-bottom: 1px dashed #000000;
+	outline: none;
+}
+
+img {
+	width: 100%;
+	height: auto;
+}
+
+.caption {
+	padding: 0 0.62rem;
+	margin-top: 0;
+	color: #666;
+}
+
+.date {
+	float: right;
+}
+
+header {
+	margin-bottom: 2rem;
+}
+
+header img {
+	float: right;
+	width: 4.5rem;
+}
+
+header,
+section h1, section h2, section h3,
+section p,
+section ul,
+section article {
+	padding: 0 0.5rem;
+}
+
+section:not(:last-of-type):after {
+	content: ' ';
+	border-bottom: solid 1px #666;
+	display: block;
+	width: calc(100% - 1rem);
+	margin: 0.5rem auto;
+}
+
+article.gist time {
+	font-style: italics;
+	color: #666;
+	font-size: 0.75rem;
+	display: block;
+}
+
+@media (max-width: 420px) {
+	h1 {
+		font-size: 1.75rem;
+	}
+
+	h1+p {
+		font-size: 1rem;
+	}
+
+	header img {
+		width: 3.5rem;
+	}
+}

+ 8 - 0
sections/01-links.html

@@ -0,0 +1,8 @@
+	<section>
+		<ul>
+			<li>email: <a href="mailto:jason@master5o1.com">jason@master5o1.com</a></li>
+			<li>repositories: <a href="https://github.com/master5o1">github.com/master5o1</a>, <a href="https://git.1j.nz/explore">git.1j.nz</a></li>
+			<li>twitter: <a href="https://twitter.com/master5o1">@master5o1</a></li>
+			<li>keybase: <a href="https://keybase.io/master5o1">master5o1</a></li>
+		</ul>
+	</section>

+ 3 - 0
sections/02-cows.html

@@ -0,0 +1,3 @@
+	<section>
+		<img src="/img/cows.jpg" alt="Cows." />
+	</section>

+ 0 - 0
template/footer.html


+ 5 - 0
template/header.html

@@ -0,0 +1,5 @@
+	<header>
+		<img src="/Schwarzenberger.png" alt="profile pic" />
+		<h1>Jason Schwarzenberger</h1>
+		<p class="caption">Software engineer from New Zealand.</p>
+	</header>

+ 18 - 0
template/index.html

@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+	<meta charset="utf-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1">
+	<title>Jason Schwarzenberger</title>
+	<link rel="stylesheet" href="style.css" />
+</head>
+<body>
+	<header>
+		<img src="/Schwarzenberger.png" alt="profile pic" />
+		<h1>Jason Schwarzenberger</h1>
+		<p class="caption">Software engineer from New Zealand.</p>
+	</header>
+</body>
+
+</html>