diff src/about.html.luan @ 21:5a56297713a3

move chat to home
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 05 Nov 2024 12:57:41 -0700
parents src/index.html.luan@e22a1ba4b2ed
children 13f4d2c8b8fe
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/about.html.luan	Tue Nov 05 12:57:41 2024 -0700
@@ -0,0 +1,36 @@
+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() %>
+		<style>
+			h1 {
+				margin-bottom: 0;
+			}
+			h3 {
+				margin-top: 8px;
+			}
+		</style>
+	</head>
+	<body>
+<%		header() %>
+		<div content>
+			<h1>Web Chat</h1>
+			<h3>A free web-based instant messaging service</h3>
+			<p><a href="https://hg.reactionary.software/repo/chat/">source code</a></p>
+		</div>
+	</body>
+</html>
+<%
+end