this repo has no description
1import { html } from "hono/html";
2import type { Session } from "../lib/session";
3
4export function homePage(session: Session) {
5 if (session.did) {
6 return html`
7 <div class="dashboard">
8 <h1>Welcome, @${session.handle}</h1>
9 <p>Manage your standard.site publication and documents.</p>
10
11 <div class="quick-actions">
12 <a href="/publication" class="btn btn-primary">Manage Publication</a>
13 <a href="/documents" class="btn btn-secondary">View Documents</a>
14 <a href="/documents/new" class="btn btn-secondary">New Document</a>
15 </div>
16 </div>
17 `;
18 }
19
20 return html`
21 <div class="hero">
22 <h1>sitebase</h1>
23 <p>
24 A minimal web UI for managing standard.site publications and documents
25 in your Bluesky PDS.
26 </p>
27
28 <div class="features">
29 <div class="feature">
30 <h3>📝 Publish</h3>
31 <p>Write and publish blog posts as ATProto records</p>
32 </div>
33 <div class="feature">
34 <h3>🔄 Portable</h3>
35 <p>Your content lives in your PDS, not on our servers</p>
36 </div>
37 <div class="feature">
38 <h3>🌐 Standard</h3>
39 <p>Uses the standard.site lexicon for interoperability</p>
40 </div>
41 </div>
42
43 <a href="/auth/login" class="btn btn-primary btn-large"
44 >Login with Bluesky</a
45 >
46 </div>
47 `;
48}