annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local Io = require "luan:Io.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local head = Shared.head or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local header = Shared.header or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 return function()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 Io.stdout = Http.response.text_writer()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 <!doctype html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 <head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <% head() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <style>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 h1 {
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 margin-bottom: 0;
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 }
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 h3 {
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 margin-top: 8px;
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 }
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 </style>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 </head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 <body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 <% header() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 <div content>
2
Franklin Schmidt <fschmidt@gmail.com>
parents: 0
diff changeset
29 <h1>Web Chat</h1>
6
Franklin Schmidt <fschmidt@gmail.com>
parents: 3
diff changeset
30 <h3>A free web-based instant messaging service</h3>
Franklin Schmidt <fschmidt@gmail.com>
parents: 3
diff changeset
31 <p><a href="https://hg.reactionary.software/repo/chat/">source code</a></p>
0
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
32 </div>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
33 </body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
34 </html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
35 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
36 end