changeset 0:c604a58600be

start
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 07 Apr 2022 16:06:10 -0600
parents
children da780d885325
files .hgignore serve.sh src/discussion.html.luan src/index.html.luan src/lib/Shared.luan src/site.css
diffstat 6 files changed, 136 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Thu Apr 07 16:06:10 2022 -0600
@@ -0,0 +1,4 @@
+syntax: glob
+
+err
+push.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/serve.sh	Thu Apr 07 16:06:10 2022 -0600
@@ -0,0 +1,1 @@
+luan luan:http/serve.luan src 2>&1 | tee err
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/discussion.html.luan	Thu Apr 07 16:06:10 2022 -0600
@@ -0,0 +1,32 @@
+local Luan = require "luan:Luan.luan"
+local error = Luan.error
+local Io = require "luan:Io.luan"
+local Http = require "luan:http/Http.luan"
+local Shared = require "site:/lib/Shared.luan"
+local head = Shared.head or error()
+local header = Shared.header or error()
+
+
+return function()
+	Io.stdout = Http.response.text_writer()
+%>
+<!doctype html>
+<html>
+	<head>
+<%		head() %>
+		<title>Reactionary Software - Discussion</title>
+	<head>
+	<body>
+<%		header() %>
+		<div content>
+			<h1>Discussion</h1>
+			<ul links>
+				<li><a href="https://discord.gg/gddwbTraPQ">Reactionary Software Discord server</a></li>
+				<li><a href="http://www.mikraite.org/Good-Software-f1999.html">Good Software forum on Mikraite</a></li>
+				<li><a href="https://saidit.net/s/programming/">/s/programming on SaidIt</a></li>
+			</ul>
+		</div>
+	</body>
+</html>
+<%
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/index.html.luan	Thu Apr 07 16:06:10 2022 -0600
@@ -0,0 +1,40 @@
+local Luan = require "luan:Luan.luan"
+local error = Luan.error
+local Io = require "luan:Io.luan"
+local Http = require "luan:http/Http.luan"
+local Shared = require "site:/lib/Shared.luan"
+local head = Shared.head or error()
+local header = Shared.header or error()
+
+
+return function()
+	Io.stdout = Http.response.text_writer()
+%>
+<!doctype html>
+<html>
+	<head>
+<%		head() %>
+		<title>Reactionary Software</title>
+		<style>
+			h1 {
+				margin-bottom: 0;
+			}
+			h3 {
+				margin-top: 8px;
+			}
+		</style>
+	<head>
+	<body>
+<%		header() %>
+		<div content>
+			<h1>Reactionary Software</h1>
+			<h3>Make software great again!</h3>
+			<p>For programmers who hate modern software.  Modern software is overcomplicated, bloated, unreliable, incomprehensible, pointlessly ideological, and mostly unusable.  We like the values of older software: simplicity, reliability, and usability.</p>
+			<ul links>
+				<li><a href="/discussion.html">Discussion</a></li>
+			</ul>
+		</div>
+	</body>
+</html>
+<%
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lib/Shared.luan	Thu Apr 07 16:06:10 2022 -0600
@@ -0,0 +1,24 @@
+local Luan = require "luan:Luan.luan"
+local error = Luan.error
+
+
+local Shared = {}
+
+function Shared.head()
+%>
+		<meta name="viewport" content="width=device-width, initial-scale=1">
+		<style>
+			@import "/site.css";
+		</style>
+<%
+end
+
+function Shared.header()
+%>
+		<div header>
+			<a href="/">Reactionary Software</a>
+		</div>
+<%
+end
+
+return Shared
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/site.css	Thu Apr 07 16:06:10 2022 -0600
@@ -0,0 +1,35 @@
+* {
+ 	box-sizing: border-box;
+}
+
+body {
+	font-family: Sans-Serif;
+	margin: 0;
+}
+
+a {
+	text-decoration: none;
+}
+a:hover {
+	text-decoration: underline;
+}
+
+div[header] {
+	font-size: 14px;
+	background-color: #ddd;
+	padding: 8px 3%;
+}
+
+[content] {
+	margin-left: 3%;
+	margin-right: 3%;
+}
+
+ul[links] {
+	margin-top: 32px;
+	list-style-type: none;
+	padding-left: 0;
+}
+ul[links] li {
+	margin: 12px 0;
+}