oficina / meet Public

Clone
git clone https://amadan.net/oficina/meet

Plain git — no account needed to clone.

Download

Download this file

1{{define "layout"}}<!doctype html>
2{{/* layout — every page's document: the head, the estilo bar and <main>.
3
4 The bar is estilo's (chrome.Bar, built once per request in
5 chrome.go), in place of rastrillo's topbar shell: that was 81px, with
6 a raw address, a blue "Settings" link and a Sign out button wrapping
7 under it. estilo's is 52px at every width, signed in or out, with the
8 account always last in the same corner.
9
10 data-theme is written into the first bytes of the response, from the
11 Appearance cookie read server-side (chrome.Appearance), so there is
12 no flash. It is ABSENT for "system": theme.css's toggle is
13 :root[data-theme="light"|"dark"], and with no attribute the browser
14 follows the operating system.
15
16 The <title> is built here and only here, "{part} · {part} · Calls",
17 so no handler can drift from the suite's separator (spec §10). The
18 one exception is the sign-in door, whose whole title is rastrillo's
19 for its state ("Sign in to Calls"), which names the app already.
20
21 <meta charset> comes first. The stylesheets are in the suite's fixed
22 order: tokens, theme, brand, then estilo's base, menu and chrome,
23 then the app's own; a page adds its own in "head", last. */}}
24<html lang="{{block "lang" .}}en{{end}}" dir="{{block "dir" .}}ltr{{end}}"{{with .Frame.Theme}} data-theme="{{.}}"{{end}}>
25<head>
26<meta charset="utf-8">
27<meta name="viewport" content="width=device-width, initial-scale=1">
28<title>{{with .Frame.WholeTitle}}{{.}}{{else}}{{range .Frame.TitleParts}}{{.}} · {{end}}{{.Frame.Chrome.App.Name}}{{end}}</title>
29<link rel="icon" type="image/png" sizes="32x32" href="{{asset "static/brand/icon-32.png"}}">
30<link rel="icon" type="image/svg+xml" href="{{asset "static/brand/icon.svg"}}">
31<link rel="apple-touch-icon" sizes="180x180" href="{{asset "static/brand/apple-touch-icon.png"}}">
32<link rel="stylesheet" href="{{asset "static/tokens.css"}}">
33<link rel="stylesheet" href="{{asset "static/busy.css"}}">
34<link rel="stylesheet" href="{{asset "static/theme.css"}}">
35<link rel="stylesheet" href="{{asset "static/brand/brand.css"}}">
36<link rel="stylesheet" href="{{asset "static/estilo/base.css"}}">
37<link rel="stylesheet" href="{{asset "static/estilo/menu.css"}}">
38<link rel="stylesheet" href="{{asset "static/estilo/chrome.css"}}">
39<link rel="stylesheet" href="{{asset "static/estilo/sky.css"}}">
40<link rel="stylesheet" href="{{asset "static/callui.css"}}">
41<link rel="stylesheet" href="{{asset "static/calls-shell.css"}}">
42<script defer src="{{asset "static/rastrillo.js"}}"></script>
43<script defer src="{{asset "static/busy.js"}}"></script>
44<script defer src="{{asset "static/estilo/chrome.js"}}"></script>
45{{iconAssets}}
46<script defer src="{{asset "static/select.js"}}"></script>
47{{block "head" .}}{{end}}
48</head>
49<body>
50{{/* The page shell. The call room replaces it (room.html's "body"): a
51 call is one rounded window in the viewport, and its navigation moves
52 into the title's menu, in the account menu's words and order. */}}
53{{block "body" .}}{{$L := localizer $}}
54<div estilo-shell>
55<a rst-skip href="#main">{{.Frame.Chrome.Labels.Skip}}</a>
56{{template "estilo-bar" (withL (.Frame.Chrome) $L)}}
57<main rst-page rst-stack id="main">
58{{template "content" .}}
59</main>
60</div>
61{{end}}
62</body>
63</html>
64{{end}}
65