8356
Wx
www-xonecas-io / files
www-xonecas-io / internal / site / templates / style.html
3.3 KB
1{{define "style.html"}}{{template "head" (list "Style" "The parts xonecas.io is built from.")}}{{template "nav" (dict "Here" "Style")}} 2<main class="px-4 sm:px-8 py-6 max-w-[1440px] mx-auto"> 3 <h1 class="text-4xl font-bold">Style</h1> 4 <p class="font-serif italic text-soft mt-1 mb-8">02's heat wall in 20's periodic table. Light and dark, side by side.</p> 5 6 <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">Colour</h2> 7 <div class="grid gap-4 lg:grid-cols-2 mb-10">{{range $t := list "light" "dark"}} 8 <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-edge rounded-[2px] p-4"> 9 <h3 class="font-bold mb-3">{{$t}}</h3> 10 <div class="grid grid-cols-2 sm:grid-cols-4 gap-2 text-xs">{{range $.Colours}} 11 <div><div class="h-10 rounded-[2px] border border-line bg-{{.}}"></div><code class="font-mono">{{.}}</code></div>{{end}} 12 </div> 13 <h4 class="font-semibold mt-4 mb-1 text-sm">Groups: the tile colour</h4> 14 <div class="flex flex-wrap items-end gap-2">{{range $.Groups}}{{template "element" (dict "El" . "Size" "sm")}}{{end}}{{template "element" (dict "El" $.Big "Size" "lg")}}</div> 15 <h4 class="font-semibold mt-4 mb-1 text-sm">Heat: h0 empty to h6 busiest</h4> 16 <div class="grid grid-cols-7 gap-[3px]">{{range $i, $n := $.Heat}}<div class="bg-h{{$i}} text-t{{$i}} rounded-[2px] h-8 grid place-items-center text-xs font-bold">{{$n}}</div>{{end}}</div> 17 </section>{{end}} 18 </div> 19 20 <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">Type</h2> 21 <div class="mb-10 space-y-2"> 22 <div class="inline-block bg-det text-det-fg text-[88px] font-bold leading-[.9] tracking-tight px-3.5 pt-2.5 pb-1.5 rounded-[2px]">2,770</div> 23 <p class="text-4xl font-bold">IBM Plex Sans Condensed 700 · headings</p> 24 <p class="text-xl font-semibold">Plex Sans Condensed 600 · labels, nav, tags</p> 25 <p>Plex Sans Condensed 400 · body text, descriptions and READMEs, 15.5px.</p> 26 <p class="font-serif italic text-lg">Plex Serif italic · one-line captions</p> 27 <p class="font-mono text-[12.5px]">Plex Mono 12.5px · hashes, paths, code</p> 28 </div> 29 30 <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">Tags</h2> 31 <div class="grid gap-4 lg:grid-cols-2 mb-10">{{range $t := list "light" "dark"}} 32 <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-edge rounded-[2px] p-4 flex flex-wrap gap-2">{{range $.Tags}}{{template "tag" .}}{{end}}</section>{{end}} 33 </div> 34 35 {{range $c := list "nav" "project-row" "file-tree" "code" "diff" "commit-row"}} 36 <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">{{$c}}</h2> 37 <div class="grid gap-4 {{if ne $c "project-row"}}lg:grid-cols-2{{end}} mb-10">{{range $t := list "light" "dark"}} 38 <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-edge rounded-[2px] {{if ne $c "nav"}}p-4{{end}} min-w-0"> 39 {{if eq $c "nav"}}{{template "nav" (dict "Here" "Projects")}} 40 {{else if eq $c "project-row"}}{{range $.Rows}}{{template "project-row" .}}{{end}} 41 {{else if eq $c "file-tree"}}{{template "file-tree" $.Tree}} 42 {{else if eq $c "code"}}{{template "code" $.Code}} 43 {{else if eq $c "diff"}}{{template "diff" $.Diff}} 44 {{else}}{{range $.Commits}}{{template "commit-row" .}}{{end}}{{end}} 45 </section>{{end}} 46 </div> 47 {{end}} 48</main> 49{{template "foot"}}{{end}}