Commit 673d65c169

673d65c1693c85b271a4cb6ca4c39e5a4cb14e8f

parent: 0cac193311

Verified · cmc ci/build: success ci/test: success

cmc <hello@cleberg.net> · 2026-09-19 01:38 UTC

web: the landing routes sit above the picture, and the picture is capped

Closes #229
internal/web/static/style.css +2 −2
@@ -1384,11 +1384,11 @@ details.refmenu .refdrop a.allrefs {
13841384.lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; max-width: 40rem; margin: 0 0 var(--sp-5); }
13851385pre.quickstart { margin: 0 0 var(--sp-4); }
13861386.shot { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: var(--sp-5) 0; }
1387.shot img { display: block; width: 100%; height: auto; }
1387.shot img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: top; }
13881388.facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; }
13891389.facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
13901390.facets p { color: var(--muted); font-size: var(--fs-2); margin: 0; }
1391.routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-5) 0 var(--sp-3); }
1391.routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-4) 0 0; }
13921392
13931393/* ---- profile ---- */
13941394.profilehead { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
internal/web/templates/landing.html +1 −1
@@ -6,6 +6,7 @@
66<p class="lede">A git forge you drive from the terminal. Repositories, issues, merge requests and CI over SSH, with a fast, readable web view of the same state.</p>
77<pre class="quickstart">ssh git@{{.Host}} help # every command, no client to install
88git clone ssh://git@{{.Host}}/owner/repo.git</pre>
9<div class="routes"><a class="button primary" href="/explore">Explore repositories</a>{{if .Signup}}<a class="button btn" href="/register">Create an account</a>{{end}}</div>
910<div class="shot"><picture>
1011 <source srcset="/static/img/mr-dark.png" media="(prefers-color-scheme: dark)">
1112 <img src="/static/img/mr-light.png" width="1280" height="900" alt="A merge request page: the conversation on the left, checks and reviewers on the right.">
@@ -15,7 +16,6 @@ git clone ssh://git@{{.Host}}/owner/repo.git</pre>
1516 <section><h2>Write</h2><p>Push over SSH with the key you already have. Create a repository, file an issue, open and merge a request, all as commands.</p></section>
1617 <section><h2>Review</h2><p>Read a diff, comment on a line, approve, merge, in the browser or the terminal.</p></section>
1718</div>
18<div class="routes"><a class="button primary" href="/explore">Explore repositories</a>{{if .Signup}}<a class="button btn" href="/register">Create an account</a>{{end}}</div>
1919{{if .Accounts}}<p class="meta">Have an account? {{if .EmailLogin}}<a href="/login">Sign in with an emailed link</a>, or run{{else}}Run{{end}} <code>ssh git@{{.Host}} web login</code>.</p>{{end}}
2020</div>
2121{{end}}