An implementation of the ATProto statusphere example app but in Go
1<!doctype html>
2<html lang="en">
3 <head>
4 <title>Statusphere-go</title>
5 <link rel="icon" type="image/x-icon" href="/public/favicon.ico" />
6 <meta charset="UTF-8" />
7 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8 <link href="/public/app.css" rel="stylesheet" />
9 </head>
10 <body>
11 <div id="header">
12 <h1>Statusphere</h1>
13 <p>Set your status on the Atmosphere.</p>
14 </div>
15 <div class="container">
16 <div class="card">
17 <form action="/logout" method="post" class="session-form">
18 {{if .DisplayName}}
19 <div>Hi {{.DisplayName}}. What's your status today?</div>
20 {{else}}
21 <div>Hi. What's your status today?</div>
22 {{end}}
23 <div>
24 <button type="submit">Log out</button>
25 </div>
26 </form>
27 </div>
28 <form action="/status" method="post" class="status-options">
29 {{range .AvailableStatus}}
30 <button type="submit" name="status" value="{{ . }}">
31 {{.}}
32 </button>
33 {{end}}
34 </form>
35 {{range .UsersStatus}}
36 <div class="status-line">
37 <div>
38 <div class="status">{{.Status}}</div>
39 </div>
40 <div class="desc">
41 <a class="author" href="{{ .HandleURL }}">@{{.Handle}}</a>
42 {{if .IsToday}} is feeling {{.Status}} today {{else}} was
43 feeling {{.Status}} on {{.Date}} {{end}}
44 </div>
45 </div>
46 {{end}}
47 </div>
48 </body>
49</html>