| 1 | {{define "layout"}}<!doctype html> |
| 2 | <html lang="en"{{with .Theme}} data-theme="{{.}}"{{end}}> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>{{block "title" .}}Oficina{{end}}</title> |
| 7 | {{/* A cold first load paints with the mark (r3 C4): it is fetched before |
| 8 | the stylesheets that name it are parsed. No webfont: the chrome is the |
| 9 | system UI face, so it never flashes (estilo AGENTS.md row 9). */}} |
| 10 | <link rel="preload" href="{{v "/static/brand/icon.svg"}}" as="image" type="image/svg+xml"> |
| 11 | <link rel="icon" type="image/png" sizes="32x32" href="{{v "/static/brand/icon-32.png"}}"> |
| 12 | <link rel="icon" type="image/svg+xml" href="{{v "/static/brand/icon.svg"}}"> |
| 13 | <link rel="apple-touch-icon" sizes="180x180" href="{{v "/static/brand/apple-touch-icon.png"}}"> |
| 14 | {{/* The spec's order (shared-chrome §0.5): tokens, theme, brand, estilo's |
| 15 | base, menu and chrome, then the sky and Home's own rules last. */}} |
| 16 | <link rel="stylesheet" href="{{v "/static/tokens.css"}}"> |
| 17 | <link rel="stylesheet" href="{{v "/static/theme.css"}}"> |
| 18 | <link rel="stylesheet" href="{{v "/static/brand/brand.css"}}"> |
| 19 | <link rel="stylesheet" href="{{v "/static/estilo/base.css"}}"> |
| 20 | <link rel="stylesheet" href="{{v "/static/estilo/menu.css"}}"> |
| 21 | <link rel="stylesheet" href="{{v "/static/estilo/chrome.css"}}"> |
| 22 | <link rel="stylesheet" href="{{v "/static/busy.css"}}"> |
| 23 | <link rel="stylesheet" href="{{v "/static/estilo/sky.css"}}"> |
| 24 | <link rel="stylesheet" href="{{v "/static/calma.css"}}"> |
| 25 | {{block "head" .}}{{end}} |
| 26 | </head> |
| 27 | <body{{block "bodyattrs" .}}{{end}}> |
| 28 | <div estilo-shell> |
| 29 | {{if not hop}}<a rst-skip href="#main">{{.Chrome.Labels.Skip}}</a>{{end}} |
| 30 | {{template "estilo-bar" .Chrome}} |
| 31 | <main rst-page id="main"> |
| 32 | {{- if door}} |
| 33 | {{template "estilo-door-open" (doorView .Brand)}} |
| 34 | {{template "content" .}} |
| 35 | {{template "estilo-door-close"}} |
| 36 | {{- else if hop}} |
| 37 | {{template "estilo-door-open" (hopDoor .Brand)}} |
| 38 | {{template "content" .}} |
| 39 | {{template "estilo-door-close"}} |
| 40 | {{- else}} |
| 41 | {{template "content" .}} |
| 42 | {{- end}} |
| 43 | </main> |
| 44 | </div> |
| 45 | {{if not hop}}<script defer src='{{v "/static/busy.js"}}'></script>{{end}} |
| 46 | {{block "scripts" .}}{{end}} |
| 47 | </body> |
| 48 | </html> |
| 49 | {{end}} |
| 50 | |