| 1 | {{define "layout"}}<!doctype html> |
| 2 | <html lang="en" dir="ltr"{{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" .}}fichas{{end}}</title> |
| 7 | <link rel="icon" type="image/png" sizes="32x32" href="{{asset "static/brand/icon-32.png"}}"> |
| 8 | <link rel="icon" type="image/svg+xml" href="{{asset "static/brand/icon.svg"}}"> |
| 9 | <link rel="apple-touch-icon" sizes="180x180" href="{{asset "static/brand/apple-touch-icon.png"}}"> |
| 10 | <link rel="stylesheet" href="/static/estilo/fonts/v1/fonts.css"> |
| 11 | <link rel="stylesheet" href="{{asset "static/tokens.css"}}"> |
| 12 | <link rel="stylesheet" href="{{asset "static/busy.css"}}"> |
| 13 | <link rel="stylesheet" href="{{asset "static/theme.css"}}"> |
| 14 | <link rel="stylesheet" href="{{asset "static/brand/brand.css"}}"> |
| 15 | {{/* estilo's bar (chrome.css), its menus and the account (menu.css), |
| 16 | the save state in its lead (savestatus.css), and chrome.js, which |
| 17 | closes a menu on Escape or an outside click. */}} |
| 18 | <link rel="stylesheet" href="{{asset "static/menu.css"}}"> |
| 19 | <link rel="stylesheet" href="{{asset "static/chrome.css"}}"> |
| 20 | <link rel="stylesheet" href="{{asset "static/savestatus.css"}}"> |
| 21 | <link rel="stylesheet" href="{{asset "static/fichas.css"}}"> |
| 22 | <link rel="stylesheet" href="{{asset "static/frame.css"}}"> |
| 23 | <link rel="stylesheet" href="{{asset "static/grid.css"}}"> |
| 24 | <script defer src="{{asset "static/rastrillo.js"}}"></script> |
| 25 | <script defer src="{{asset "static/busy.js"}}"></script> |
| 26 | <script defer src="{{asset "static/shortcuts.js"}}"></script> |
| 27 | <script defer src="{{asset "static/search.js"}}"></script> |
| 28 | <script defer src="{{asset "static/chrome.js"}}"></script> |
| 29 | {{/* rastrillo's light: buttons catch a sheen, cards a rim near the |
| 30 | pointer. Deletable; the still design is the fallback. */}} |
| 31 | <script defer src="{{asset "static/light.js"}}"></script> |
| 32 | {{iconAssets}} |
| 33 | <script defer src="{{asset "static/select.js"}}"></script> |
| 34 | <script defer src="{{asset "static/datetime.js"}}"></script> |
| 35 | {{/* The script layer for editing in place (level-up §5): the grid's |
| 36 | keys, click to edit, the toast with Undo, J and K. Every screen |
| 37 | works without it. */}} |
| 38 | <script defer src="{{asset "static/grid.js"}}"></script> |
| 39 | </head> |
| 40 | <body data-locale="{{.L.Format}}"> |
| 41 | <a rst-skip href="#main">Skip to content</a> |
| 42 | {{template "estilo-bar" .Bar}} |
| 43 | <div fichas-app{{with .Rail}} data-rail="{{.}}"{{end}}> |
| 44 | {{template "fichas-rail" .}} |
| 45 | <main fichas-main id="main"> |
| 46 | <div rst-page rst-stack> |
| 47 | {{template "content" .}} |
| 48 | </div> |
| 49 | </main> |
| 50 | </div> |
| 51 | {{template "fichas-keys"}} |
| 52 | <div fichas-toasts> |
| 53 | <p fichas-live role="status" aria-live="polite" aria-atomic="true" class="rst-sr-only"></p> |
| 54 | </div> |
| 55 | </body> |
| 56 | </html> |
| 57 | {{end}} |
| 58 | |