xonecas.io
8356
Wx

www-xonecas-io / commit 2f09b2a

design pass: header aligns with content on wide screens, clone URL stays on one line, parent hash is a link (1021)

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 2f09b2a442c6857fa0936654cf8777a5c0583714 parent 13fd348

5 files changed

internal/site/templates/commit.html+1−1
@@ -7,7 +7,7 @@
77 <p class="flex flex-wrap gap-x-3 px-4 py-3 mt-3 border-t border-line text-sm bg-empty">
88 <b>{{.C.Author}}</b><span class="text-soft">{{.C.Date}}</span>
99 <code class="font-mono text-accent break-all">{{.C.Hash}}</code>
10- {{range .C.Parents}}<span class="text-soft">parent <a href="/projects/{{$.Name}}/commit/{{.}}/" class="font-mono">{{slice . 0 7}}</a></span>{{end}}
10+ {{range .C.Parents}}<span class="text-soft">parent <a href="/projects/{{$.Name}}/commit/{{.}}/" class="font-mono text-accent no-underline hover:underline">{{slice . 0 7}}</a></span>{{end}}
1111 </p>
1212 </article>
1313 <p class="text-sm text-soft mb-3">{{len .Diffs}} file{{if ne (len .Diffs) 1}}s{{end}} changed</p>
internal/site/templates/components.html+2−2
@@ -1,14 +1,14 @@
11 {{/* Components. Each takes its view type from view.go. */}}
22
33 {{define "nav"}}
4-<header class="flex flex-wrap items-center gap-x-6 gap-y-2 px-4 sm:px-8 py-3 border-b-[1.5px] border-ink">
4+<header class="border-b-[1.5px] border-ink"><div class="flex flex-wrap items-center gap-x-6 gap-y-2 px-4 sm:px-8 py-3 max-w-[1440px] mx-auto">
55 <a href="/" id="face" class="flex items-center gap-2 font-bold text-xl"><img src="/logo.svg" alt="" width="32" height="32" class="rounded-[2px]">xonecas.io</a>
66 <nav class="flex gap-5 font-semibold">
77 {{range $l := list "Overview" "Projects"}}<a href="{{if eq $l "Overview"}}/{{else}}/{{lower $l}}/{{end}}" class="{{if eq $l $}}underline underline-offset-[6px] decoration-[3px]{{else}}no-underline{{end}}">{{$l}}</a>{{end}}
88 </nav>
99 <button id="theme" type="button" title="Light or dark" aria-label="Switch between light and dark" class="ml-auto p-1 cursor-pointer hover:text-accent"><svg viewBox="0 0 16 16" width="20" height="20" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5a6.5 6.5 0 0 1 0 13z" fill="currentColor"/></svg></button>
1010 <form action="/projects/" class="w-full sm:w-auto"><input name="q" placeholder="Search projects" class="w-full sm:w-80 px-3 py-1.5 border-[1.5px] border-ink rounded-[2px] bg-card text-sm placeholder:text-soft"></form>
11-</header>
11+</div></header>
1212 {{end}}
1313
1414 {{define "element"}}{{/* dict "El" Element "Size" xs|sm|lg */}}
internal/site/templates/project.html+1−1
@@ -37,7 +37,7 @@
3737 </section>
3838 <section>
3939 <h2 class="font-bold border-b-[3px] border-ink pb-1 mb-2">Clone</h2>
40- <pre class="bg-pre text-pre-fg rounded-[2px] px-4 py-3 font-mono text-[12.5px] whitespace-pre-wrap break-all select-all">git clone https://xonecas.io/{{.P.Name}}.git</pre>
40+ <pre class="bg-pre text-pre-fg rounded-[2px] px-4 py-3 font-mono text-[12.5px] whitespace-nowrap overflow-x-auto [scrollbar-width:thin] select-all">git clone https://xonecas.io/{{.P.Name}}.git</pre>
4141 </section>
4242 </aside>
4343 </div>
tickets/1021-frontend-design-pass.md+15−3
@@ -2,13 +2,13 @@
22 id: 1021
33 title: Frontend design pass
44 type: feature
5-status: doing
5+status: review
66 priority: p3
77 created: 2026-11-08T03:57:11Z
8-updated: 2026-11-08T04:13:53Z
8+updated: 2026-11-08T04:25:57Z
99 source: human
1010 area: design
11-moves: 2026-11-08T04:02:10Z inbox todo drag; 2026-11-08T04:04:48Z todo doing drag
11+moves: 2026-11-08T04:02:10Z inbox todo drag; 2026-11-08T04:04:48Z todo doing drag; 2026-11-08T04:25:57Z doing review agent
1212 ---
1313
1414 We have our initial design and style and look. Now let's take it to the next level, polish, alignment, whitespace. Walk the site, end to end with agent browser. Make sure it flows well, the ux is natural and space is being used well at most resolutions sizes. Make sure themes look great, dark and light. Atention to typography details, font sizes, etc.
@@ -20,3 +20,15 @@ It's not a rebrand or restructure, it's polishing and refining.
2020 - 2026-11-08 03:57Z (agent): Triage: type feature (it was bug), priority p2, area design. No typos to fix. The text stops at 'We have', so it looks unfinished.
2121
2222 Question: what should the pass cover: the whole site, or certain pages? And against what: the style guide from 1001, or a new direction?
23+
24+- 2026-11-08 04:25Z (agent): Done: a light pass. I walked every page type in agent-browser (home, /projects, project page, folder, file, commit list, commit) at 1440px and 390px, plus 1920px and dark theme on a few. Most of it already held up. I fixed three things:
25+
26+ 1. Header alignment: at widths over 1440px the header spanned the full window while the content stayed centered, so the logo and search sat outside the content edges (logo at x=32, content at x=272 on 1920px). The header now has the same max width as the content. Measured: logo and content both at x=272 on 1920, 32 on 1440, 16 on 390.
27+ 2. Clone box: the URL broke mid-word ('mini-code' / 'r.git'). It is one line now and scrolls sideways if longer; no page overflow at 390px.
28+ 3. Commit page: the parent hash was soft grey; it is now an accent link like every other hash.
29+
30+ Checked and left alone: phone layouts of all pages (stack cleanly, code scrolls inside its box), README prose in dark, the new sidebar, slider, Recent grid and theme button.
31+
32+ Seen but NOT changed, for you to decide: (a) on the homepage at desktop the left column ends early, leaving empty space under it beside the 12 Recent cards; it could be sticky. (b) The diff '+N' is orange (h4) and '−N' is rust (accent), so they look alike. Green/red would read faster, but the palette is the style guide's (1001). (c) On phones the 12 Recent cards make a long scroll.
33+
34+ go test passes after the changes.
tickets/1024-markdown-code-snippets-are-not-syntax.md+9−2
@@ -1,12 +1,13 @@
11 ---
22 id: 1024
33 title: markdown code snippets are not syntax highlighted
4-type: bug
4+type: feature
55 status: inbox
66 priority: p2
77 created: 2026-11-08T04:12:36Z
8-updated: 2026-11-08T04:12:36Z
8+updated: 2026-11-08T04:23:13Z
99 source: devnote
10+area: site
1011 ---
1112
1213 ## Context
@@ -39,3 +40,9 @@ Filed from `http://192.168.122.10:8080/projects/cel-tui/`, on `pre`.
3940 > },
4041 > }),
4142 > …
43+
44+## Notes
45+
46+- 2026-11-08 04:23Z (agent): Triage: type feature (it was bug: READMEs were never highlighted), priority p2, area site. No typos to fix.
47+
48+ READMEs render with goldmark (internal/site/readme.go) with no code highlighting, so fenced blocks come out as plain <pre><code class="language-ts">. The file browser already highlights with chroma (browse.go highlight(), palette in site.css), so the same palette can be reused for README code blocks by fence language. Related: 1008.