oficina / slides Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{/* present-pairing — the QR, the code and the remote's address, shared
2 by the pairing page (present_pair.html, what the presenter window's
3 ⋯ menu opens) and the old presenter view (present_notes.html, kept
4 by the sessions begun before positions), so the two cannot drift on
5 how a phone is paired.
6
7 The data is presentation.go's pairing. present-pairing-style is
8 the block's own rules, for each page's <head>. */}}
9{{define "present-pairing-style"}}<style>
10 [slides-code] {
11 font-size: var(--rst-fs-lg);
12 letter-spacing: 0.25em;
13 margin: 0;
14 }
15 [slides-pair] {
16 display: flex;
17 flex-wrap: wrap;
18 gap: var(--rst-sp-4);
19 }
20 [slides-pair-fields] {
21 flex: 1 1 18rem;
22 }
23</style>{{end}}
24{{define "present-pairing"}}<div slides-pair>
25 {{.QR}}
26 <div slides-pair-fields rst-stack>
27 <p slides-code>{{.Code}}</p>
28 {{/* Hand-written for one attribute, share.html's reason: readonly
29 is not in field-text's contract, and the field is here to be
30 selected and copied. */}}
31 <div rst-field>
32 <label rst-field-label for="remote-url">{{.URLLabel}}</label>
33 <input rst-input id="remote-url" name="remote-url" type="text"
34 value="{{.RemoteURL}}" readonly aria-describedby="remote-url-hint">
35 <small rst-field-hint id="remote-url-hint">{{.CodeLabel}} {{.Code}}</small>
36 </div>
37 </div>
38</div>{{end}}
39