view src/index.html.luan @ 20:dade6a560494

add dialogs
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 Nov 2024 21:37:58 -0700
parents e22a1ba4b2ed
children
line wrap: on
line source

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