feat(P1): web foundation — main.go, server.go, HTMX vendored, base+home templates (REQ-040)
Go 1.22 net/http.ServeMux + html/template + http.FileServer for static. HTMX 2.0.10 vendored as web/static/htmx.min.js (NOT go get; G-006). base.html layout with nav to all 5 screens. home.html overview. ---ci--- project: oy phase: 1 milestone: v0.6 status: execute ---/ci---
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{{define "base.html"}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{block "title" .}}OpenYield{{end}}</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<script src="/static/htmx.min.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<header class="nav">
|
||||
<span class="brand">OpenYield</span>
|
||||
<a href="/">Home</a>
|
||||
<a href="/reach">Reach</a>
|
||||
<a href="/stash">Stash</a>
|
||||
<a href="/window">Window</a>
|
||||
<a href="/standing">Standing</a>
|
||||
<a href="/bloom">Bloom</a>
|
||||
</header>
|
||||
<main>
|
||||
{{block "content" .}}{{end}}
|
||||
</main>
|
||||
<footer>
|
||||
OpenYield — real production on the mesh. Reach, Stash, Window, Standing, Bloom.
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
@@ -0,0 +1,26 @@
|
||||
{{template "base.html" .}}
|
||||
|
||||
{{define "title"}}OpenYield — real production on the mesh{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<section class="panel">
|
||||
<h1>OpenYield</h1>
|
||||
<p>
|
||||
OpenYield is a mesh-native system for real production. A Holder creates a
|
||||
Reach to enter the mesh, holds a Stash of Grain, and authorizes Window
|
||||
access to partners. Standing accrues through honest participation, and
|
||||
Bloom rewards sustained contribution. No middleman holds your Stash.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section class="panel">
|
||||
<h2>The five screens</h2>
|
||||
<ul>
|
||||
<li><a href="/reach">Reach</a> — create a Reach and view the mesh of Holders.</li>
|
||||
<li><a href="/stash">Stash</a> — your sovereign Grain Stash (P2).</li>
|
||||
<li><a href="/window">Window</a> — authorize partner access to your Stash (P3).</li>
|
||||
<li><a href="/standing">Standing</a> — track progress toward Freeholder standing (P4).</li>
|
||||
<li><a href="/bloom">Bloom</a> — accrued rewards for sustained contribution (P5).</li>
|
||||
</ul>
|
||||
</section>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user