File size: 3,575 Bytes
89cae6c
 
 
 
 
2f32611
89cae6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>The Describatron — open a shared edit file</title>
  <style>
    :root {
      --banner: #750014; --banner-text: #fff; --bg: #fff; --text: #1a1a1a;
      --muted: #555; --border: #d0d0d0; --surface: #f5f5f5; --radius: 6px;
      --font: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
    a { color: var(--banner); }
    .skip-link { position: absolute; left: -999px; top: 0; background: #1a1a1a; color: #fff; padding: .5rem 1rem; z-index: 10; }
    .skip-link:focus { left: 1rem; top: 1rem; }
    header.page { background: var(--banner); color: var(--banner-text); padding: 2rem 1.25rem; text-align: center; }
    header.page h1 { margin: 0 0 .25rem; font-size: 1.6rem; }
    header.page p { margin: 0; opacity: .9; font-size: .98rem; }
    header.page .switch { margin-top: .75rem; font-size: .9rem; }
    header.page .switch a { color: #f5d5db; }
    main { max-width: 42rem; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
    .card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.5rem; }
    .card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
    .field { margin: 1rem 0; }
    .field > label { display: block; font-weight: 600; margin-bottom: .3rem; }
    input[type="file"] { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; }
    .hint { font-size: .9rem; color: var(--muted); }
    button.submit {
      background: var(--banner); color: var(--banner-text); border: 0;
      padding: .7rem 1.4rem; font: inherit; font-weight: 600; border-radius: var(--radius); cursor: pointer;
    }
    button.submit:hover { filter: brightness(1.1); }
    :focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
    .note { background: var(--surface); border-left: 4px solid var(--banner); padding: .75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; margin-top: 1.25rem; }
  </style>
</head>
<body>
  <a href="#main" class="skip-link">Skip to main content</a>
  <header class="page" role="banner">
    <h1>Open a shared edit file</h1>
    <p>Continue editing a study guide someone shared with you.</p>
    <p class="switch">Starting fresh? <a href="/">Build from a video</a> or <a href="/images">from slide images</a>.</p>
  </header>

  <main id="main">
    <div class="card">
      <h2>Upload an edits file</h2>
      <p class="hint">Drop in a <code>.json</code> file saved from the editor's <strong>Save edits (JSON)</strong> button. It contains the slides and all the edits, so the editor opens right where they left off — nothing else to upload.</p>
      <form action="/edit" method="post" enctype="multipart/form-data">
        <div class="field">
          <label for="edits">Edits file (.json)</label>
          <input type="file" id="edits" name="edits" accept="application/json,.json" required>
        </div>
        <button type="submit" class="submit">Open in editor</button>
      </form>
      <p class="note">
        The editor opens in this tab. To keep your changes, use <strong>Save edits (JSON)</strong>
        again — that file is the shareable, re-openable copy. <strong>Download final HTML</strong> /
        <strong>Markdown</strong> give you the finished guide.
      </p>
    </div>
  </main>
</body>
</html>