easel-canvas 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +49 -24
  2. package/bin/mcp.mjs +10 -7
  3. package/examples/demo/CLAUDE.md +8 -0
  4. package/examples/demo/assets/fonts/OFL-Anton.txt +93 -0
  5. package/examples/demo/assets/fonts/OFL-JetBrainsMono.txt +93 -0
  6. package/examples/demo/assets/fonts/anton-latin-400.woff2 +0 -0
  7. package/examples/demo/assets/fonts/jetbrains-mono-latin-400.woff2 +0 -0
  8. package/examples/demo/assets/ticket-qr.svg +5 -0
  9. package/examples/demo/board.json +47 -20
  10. package/examples/demo/comments.json +27 -7
  11. package/examples/demo/screens/brand.html +155 -0
  12. package/examples/demo/screens/clash.html +94 -0
  13. package/examples/demo/screens/empty-day.html +114 -0
  14. package/examples/demo/screens/film.html +98 -0
  15. package/examples/demo/screens/home-daylight.html +144 -0
  16. package/examples/demo/screens/home.html +132 -38
  17. package/examples/demo/screens/poster.html +77 -0
  18. package/examples/demo/screens/programme.html +125 -0
  19. package/examples/demo/screens/site.html +118 -0
  20. package/examples/demo/screens/square.html +71 -0
  21. package/examples/demo/screens/ticket.html +107 -0
  22. package/examples/demo/screens/timetable.html +192 -0
  23. package/examples/demo/tokens.json +54 -22
  24. package/package.json +3 -2
  25. package/server/args.mjs +3 -2
  26. package/server/chat.mjs +26 -16
  27. package/server/html.mjs +1 -1
  28. package/examples/demo/screens/empty.html +0 -43
  29. package/examples/demo/screens/habit.html +0 -55
  30. package/examples/demo/screens/landing.html +0 -44
  31. package/examples/demo/screens/new-habit.html +0 -47
  32. package/examples/demo/screens/settings.html +0 -43
  33. package/examples/demo/screens/stats.html +0 -50
@@ -4,47 +4,141 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <meta name="board-size" content="390x844">
7
- <title>Today</title>
7
+ <title>My cut</title>
8
8
  <style>
9
- *{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#14161a;background:#fff;-webkit-font-smoothing:antialiased}
10
- .s{width:390px;height:844px;position:relative;overflow:hidden;background:#F7F6F2;display:flex;flex-direction:column}
11
- .bar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;font-size:15px;font-weight:600}
12
- .h1{font-size:30px;font-weight:700;letter-spacing:-.02em;margin:4px 20px 4px}
13
- .sub{color:#6b6f76;font-size:15px;margin:0 20px 16px}
14
- .card{background:#fff;border-radius:20px;margin:0 16px 12px;padding:16px;box-shadow:0 1px 2px rgba(20,22,26,.04),0 4px 16px rgba(20,22,26,.05)}
15
- .row{display:flex;align-items:center;gap:12px}
16
- .ic{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;flex:none}
17
- .t{font-size:16px;font-weight:600}.m{font-size:13px;color:#6b6f76;margin-top:4px}
18
- .chk{margin-left:auto;width:28px;height:28px;border-radius:50%;border:2px solid #d9dbe0;flex:none}
19
- .chk.on{background:#3E7BFA;border-color:#3E7BFA;box-shadow:inset 0 0 0 4px #fff}
20
- .btn{display:flex;align-items:center;justify-content:center;height:54px;border-radius:16px;background:#14161a;color:#fff;font-size:16px;font-weight:600;text-decoration:none;margin:0 16px}
21
- .btn.blue{background:#3E7BFA}
22
- .tabs{position:absolute;left:16px;right:16px;bottom:20px;height:64px;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:space-around;box-shadow:0 8px 24px rgba(20,22,26,.10)}
23
- .tab{font-size:12px;font-weight:600;color:#9aa0a8;display:flex;flex-direction:column;align-items:center;gap:4px}.tab.on{color:#14161a}
24
- .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
25
- .pill{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:#fff;font-size:13px;font-weight:600;margin-right:8px}
26
- .pill.on{background:#14161a;color:#fff}
27
- .ring{width:132px;height:132px;border-radius:50%;background:conic-gradient(#3E7BFA 0 72%,#E8EAF0 72% 100%);display:flex;align-items:center;justify-content:center}
28
- .ring>div{width:104px;height:104px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
29
- .bars{display:flex;align-items:flex-end;gap:8px;height:120px;padding:0 4px}
30
- .bars div{flex:1;border-radius:8px;background:#E3EAFE}.bars div.on{background:#3E7BFA}
31
- .field{height:52px;border-radius:14px;background:#fff;border:1.5px solid #e6e7eb;display:flex;align-items:center;padding:0 16px;font-size:16px;margin:0 16px 12px;color:#14161a}
32
- .lab{font-size:13px;font-weight:600;color:#6b6f76;margin:8px 20px 8px}
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Home: My cut ===== */
36
+ .screen{width:390px;height:844px;position:relative;overflow:clip}
37
+ .status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
38
+ .status .time{font-family:var(--display);font-size:20px;line-height:20px}
39
+ .topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 0 0 16px;border-bottom:1px solid var(--rule)}
40
+ .wordmark{display:flex;align-items:center;height:55px}
41
+ .wordmark .display{font-size:28px}
42
+ .topbar .when{margin-left:auto;padding-right:12px;text-align:right;color:var(--muted)}
43
+ .light-switch{width:56px;height:55px;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--rule)}
44
+ .light-switch::before{content:"";width:20px;height:20px;border:2px solid var(--ink);background:linear-gradient(90deg,var(--ink) 50%,var(--field) 50%)}
45
+ /* day strip: one 48px cell per festival day, runs off the right edge */
46
+ .days{display:flex;height:48px;border-bottom:1px solid var(--rule);width:max-content}
47
+ .day-cell{width:48px;height:47px;border-right:1px solid var(--rule);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
48
+ .day-cell .display{font-size:20px}
49
+ .day-cell .mono{color:var(--muted)}
50
+ .day-cell.past{color:var(--muted)}
51
+ .day-cell.today{background:var(--safelight);color:var(--on-safelight)}
52
+ .day-cell.today .mono{color:var(--on-safelight)}
53
+ /* next screening: the only spliced title on the screen */
54
+ .next{display:block;padding:16px 0 16px}
55
+ .next .label{padding:0 16px;color:var(--signal)}
56
+ .next .label span{color:var(--muted)}
57
+ .next-title{font-size:120px;padding-left:12px;margin-top:16px}
58
+ .next-title + .next-title{margin-top:8px}
59
+ .facts{display:grid;grid-template-columns:88px 1fr 64px 72px;border-top:1px solid var(--rule)}
60
+ .fact{height:64px;padding:12px 0 0 16px;border-right:1px solid var(--rule)}
61
+ .fact:last-child{border-right:0}
62
+ .fact .mono{display:block;color:var(--muted)}
63
+ .fact .display{font-size:28px;margin-top:8px}
64
+ .ticket-bar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--safelight);color:var(--on-safelight)}
65
+ .ticket-bar .display{font-size:28px}
66
+ /* today's cut */
67
+ .today-head{display:flex;justify-content:space-between;padding:12px 16px 8px;color:var(--muted);border-bottom:1px solid var(--rule)}
68
+ .film-row{height:48px;display:grid;grid-template-columns:64px 1fr 32px;align-items:center;padding:0 16px;border-bottom:1px solid var(--rule)}
69
+ .film-row .display{font-size:28px}
70
+ .film-row .cinema{text-align:right}
71
+ .film-row.seen{color:var(--muted)}
72
+ .film-row.seen .display{text-decoration:line-through;text-decoration-thickness:4px}
73
+ .film-row.now{color:var(--signal)}
74
+ .film-row.now .display{color:var(--safelight)}
75
+ .tabs{position:absolute;left:0;right:0;bottom:0;height:56px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rule);background:var(--field)}
76
+ .tab{display:flex;align-items:center;justify-content:center;color:var(--muted);position:relative}
77
+ .tab.on{color:var(--ink)}
78
+ .tab.on::before{content:"";position:absolute;left:0;right:0;top:-1px;height:4px;background:var(--safelight)}
33
79
  </style>
34
80
  </head>
35
81
  <body>
36
- <div class="s">
37
- <div class="bar"><span>9:41</span><span>●●●</span></div>
38
- <div class="h1">Good morning, Sam</div>
39
- <p class="sub">3 of 5 habits done · 12-day streak 🔥</p>
40
- <div style="margin:0 20px 16px"><span class="pill on">All</span><span class="pill">Morning</span><span class="pill">Evening</span></div>
41
- <a class="card row" href="habit.html" style="text-decoration:none;color:inherit"><div class="ic" style="background:#EEF3FF">🧘</div><div><div class="t">Meditate</div><div class="m">10 min · morning</div></div><div class="chk on"></div></a>
42
- <a class="card row" href="habit.html" style="text-decoration:none;color:inherit"><div class="ic" style="background:#E8F7F1">💧</div><div><div class="t">Drink water</div><div class="m">6 of 8 glasses</div></div><div class="chk on"></div></a>
43
- <a class="card row" href="habit.html" style="text-decoration:none;color:inherit"><div class="ic" style="background:#FFF4E5">📚</div><div><div class="t">Read</div><div class="m">20 pages</div></div><div class="chk on"></div></a>
44
- <a class="card row" href="habit.html" style="text-decoration:none;color:inherit"><div class="ic" style="background:#FDECEC">🏃</div><div><div class="t">Run</div><div class="m">3 km · evening</div></div><div class="chk"></div></a>
45
- <a class="card row" href="habit.html" style="text-decoration:none;color:inherit"><div class="ic" style="background:#F3EEFF">✍️</div><div><div class="t">Journal</div><div class="m">5 min · evening</div></div><div class="chk"></div></a>
46
- <a class="btn blue" href="new-habit.html" style="position:absolute;right:20px;bottom:100px;width:56px;height:56px;border-radius:20px;margin:0;font-size:26px">+</a>
47
- <nav class="tabs"><a class="tab on" href="home.html" style="text-decoration:none"><span class="dot"></span>Today</a><a class="tab" href="stats.html" style="text-decoration:none"><span class="dot"></span>Stats</a><a class="tab" href="settings.html" style="text-decoration:none"><span class="dot"></span>Settings</a></nav>
48
- </div>
82
+ <main class="screen">
83
+ <div class="status"><span class="time">18:52</span><span class="mono">5G · 82%</span></div>
84
+
85
+ <header class="topbar">
86
+ <a class="wordmark" href="home.html" aria-label="Intercut, my cut"><span class="display">Inter</span><span class="display cut-red">Cut</span></a>
87
+ <span class="when mono">Day 3 of 11<br>Sat 06.03</span>
88
+ <a class="light-switch" href="home-daylight.html" aria-label="Daylight"></a>
89
+ </header>
90
+
91
+ <nav class="days" aria-label="Festival days">
92
+ <a class="day-cell past" href="programme.html"><span class="display">04</span><span class="mono">Th</span></a>
93
+ <a class="day-cell past" href="programme.html"><span class="display">05</span><span class="mono">Fr</span></a>
94
+ <a class="day-cell today" href="home.html"><span class="display">06</span><span class="mono">Sa</span></a>
95
+ <a class="day-cell" href="programme.html"><span class="display">07</span><span class="mono">Su</span></a>
96
+ <a class="day-cell" href="programme.html"><span class="display">08</span><span class="mono">Mo</span></a>
97
+ <a class="day-cell" href="programme.html"><span class="display">09</span><span class="mono">Tu</span></a>
98
+ <a class="day-cell" href="empty-day.html"><span class="display">10</span><span class="mono">We</span></a>
99
+ <a class="day-cell" href="programme.html"><span class="display">11</span><span class="mono">Th</span></a>
100
+ <a class="day-cell" href="programme.html"><span class="display">12</span><span class="mono">Fr</span></a>
101
+ </nav>
102
+
103
+ <a class="next" href="film.html">
104
+ <span class="label mono">Next in your cut <span>· starts in 38 min</span></span>
105
+ <span class="next-title display">Salt</span>
106
+ <span class="next-title display splice">Winter</span>
107
+ </a>
108
+
109
+ <div class="facts">
110
+ <div class="fact"><span class="mono">Time</span><span class="display">19:30</span></div>
111
+ <div class="fact"><span class="mono">Cinema</span><span class="display">C1 Meridian</span></div>
112
+ <div class="fact"><span class="mono">Seat</span><span class="display">F12</span></div>
113
+ <div class="fact"><span class="mono">Run</span><span class="display">112′</span></div>
114
+ </div>
115
+
116
+ <a class="ticket-bar" href="ticket.html"><span class="display">Show ticket</span><span class="mono">Doors 19:10</span></a>
117
+
118
+ <section class="today">
119
+ <h2 class="today-head mono"><span>Today · 4 films</span><span>6 h 35 min in the dark</span></h2>
120
+ <a class="film-row seen" href="film.html"><span class="mono">11:00</span><span class="display">Glass Orchard</span><span class="cinema mono">C5</span></a>
121
+ <a class="film-row seen" href="film.html"><span class="mono">14:15</span><span class="display">Nobody Swims</span><span class="cinema mono">C3</span></a>
122
+ <a class="film-row now" href="film.html"><span class="mono">19:30</span><span class="display">Salt Winter</span><span class="cinema mono">C1</span></a>
123
+ <a class="film-row" href="film.html"><span class="mono">22:45</span><span class="display">Feral Monday</span><span class="cinema mono">C6</span></a>
124
+ </section>
125
+
126
+ <nav class="tabs mono" aria-label="Sections">
127
+ <a class="tab" href="programme.html">Programme</a>
128
+ <a class="tab on" href="home.html">My cut</a>
129
+ <a class="tab" href="ticket.html">Tickets</a>
130
+ </nav>
131
+ </main>
132
+
133
+ <svg class="defs" aria-hidden="true" focusable="false">
134
+ <!-- The splice: one text node, cut at the cap waist. Fractions of the filter box; Anton's cap waist sits at 50% of it in every
135
+ engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
136
+ <filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
137
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
138
+ <feFlood class="slit" x="0" y=".4758" width="1" height=".0398" result="slit"/>
139
+ <feOffset in="SourceGraphic" dx=".1231" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
140
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
141
+ </filter>
142
+ </svg>
49
143
  </body>
50
144
  </html>
@@ -0,0 +1,77 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="1200x1800">
7
+ <title>Campaign: six-sheet poster</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Out of home: a six-sheet, 1200 × 1800 (2:3). Two voices only: 480px Anton and 12px mono ===== */
36
+ .poster{width:1200px;height:1800px;position:relative;overflow:clip;background:var(--safelight);color:var(--on-safelight)}
37
+ .poster .row{position:absolute;left:0;right:0;height:64px;display:grid;grid-template-columns:repeat(4,300px);align-items:center;padding-left:24px}
38
+ .poster .row.top{top:0;border-bottom:1px solid var(--on-safelight)}
39
+ .poster .row.bottom{bottom:0;border-top:1px solid var(--on-safelight)}
40
+ .poster .lines{position:absolute;left:0;right:0;top:160px}
41
+ .poster .lines .display{font-size:480px;padding-left:24px}
42
+ .poster .lines .display + .display{margin-top:40px}
43
+ .poster .credits{position:absolute;left:24px;right:24px;bottom:120px;display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
44
+ .poster .credits p{border-top:1px solid var(--on-safelight);padding-top:12px}
45
+ .slit-ink{flood-color:var(--ink)}
46
+ </style>
47
+ </head>
48
+ <body>
49
+ <main class="poster">
50
+ <div class="row top mono"><span>Intercut No.14</span><span>City film festival</span><span>04–14.03.2027</span><span>intercut.film</span></div>
51
+ <h1 class="lines">
52
+ <span class="display">214</span>
53
+ <span class="display">films.</span>
54
+ <span class="display splice">1 cut.</span>
55
+ </h1>
56
+ <section class="credits mono">
57
+ <p>11 days<br>6 cinemas<br>38 in competition</p>
58
+ <p>Opening night<br>Thu 04.03 · 19:30<br>The Long Green</p>
59
+ <p>Midnight<br>Every night 22:45<br>C6 Harbour</p>
60
+ <p>Passes from 96<br>The app holds<br>your tickets</p>
61
+ </section>
62
+ <div class="row bottom mono"><span>C1 Meridian</span><span>C2 Arcade · C3 Lantern</span><span>C4 Northlight · C5 Pavilion</span><span>C6 Harbour</span></div>
63
+ </main>
64
+
65
+ <svg class="defs" aria-hidden="true" focusable="false">
66
+ <!-- The splice: one text node, cut at the cap waist. Fractions of the filter box; Anton's cap waist sits at 50% of it in every
67
+ engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
68
+ <!-- 1 CUT. on the 1200px sheet: shift one 120px module, an Ink slit edge to edge -->
69
+ <filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
70
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
71
+ <feFlood class="slit-ink" x="0" y=".4758" width="1" height=".0398" result="slit"/>
72
+ <feOffset in="SourceGraphic" dx=".1" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
73
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
74
+ </filter>
75
+ </svg>
76
+ </body>
77
+ </html>
@@ -0,0 +1,125 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="390x844">
7
+ <title>Programme</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Programme: every screening of the day, by time ===== */
36
+ .screen{width:390px;height:844px;position:relative;overflow:clip}
37
+ .status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
38
+ .status .time{font-family:var(--display);font-size:20px;line-height:20px}
39
+ .page-head{height:96px;display:flex;align-items:flex-end;justify-content:space-between;padding:0 16px 16px;border-bottom:1px solid var(--rule)}
40
+ .page-head .display{font-size:56px}
41
+ .page-head .mono{color:var(--muted);text-align:right}
42
+ .days{display:flex;height:48px;border-bottom:1px solid var(--rule);width:max-content}
43
+ .day-cell{width:48px;height:47px;border-right:1px solid var(--rule);display:flex;flex-direction:column;align-items:center;justify-content:center}
44
+ .day-cell .display{font-size:20px}
45
+ .day-cell .mono{color:var(--muted)}
46
+ .day-cell.past{color:var(--muted)}
47
+ .day-cell.today{background:var(--safelight);color:var(--on-safelight)}
48
+ .day-cell.today .mono{color:var(--on-safelight)}
49
+ .cinemas{display:grid;grid-template-columns:repeat(7,1fr);height:48px;border-bottom:1px solid var(--rule)}
50
+ .cinemas a{display:flex;align-items:center;justify-content:center;border-right:1px solid var(--rule);color:var(--muted)}
51
+ .cinemas a:last-child{border-right:0}
52
+ .cinemas a.on{color:var(--ink);box-shadow:inset 0 -4px 0 var(--safelight)}
53
+ .list-head{display:flex;justify-content:space-between;padding:12px 16px 8px;color:var(--muted);border-bottom:1px solid var(--rule)}
54
+ .film-row{height:48px;display:grid;grid-template-columns:56px 1fr 32px 56px;align-items:center;padding-left:16px;border-bottom:1px solid var(--rule)}
55
+ .film-row .display{font-size:28px;overflow:hidden;min-width:0}
56
+ .film-row .cinema{color:var(--muted)}
57
+ .film-row .add{height:47px;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--rule)}
58
+ .film-row.in-cut{color:var(--signal)}
59
+ .film-row.in-cut .display{color:var(--safelight)}
60
+ .film-row.in-cut .add{background:var(--safelight);color:var(--on-safelight)}
61
+ .film-row.clash{color:var(--muted)}
62
+ .tabs{position:absolute;left:0;right:0;bottom:0;height:56px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rule);background:var(--field)}
63
+ .tab{display:flex;align-items:center;justify-content:center;color:var(--muted);position:relative}
64
+ .tab.on{color:var(--ink)}
65
+ .tab.on::before{content:"";position:absolute;left:0;right:0;top:-1px;height:4px;background:var(--safelight)}
66
+ </style>
67
+ </head>
68
+ <body>
69
+ <main class="screen">
70
+ <div class="status"><span class="time">18:52</span><span class="mono">5G · 82%</span></div>
71
+
72
+ <header class="page-head">
73
+ <h1 class="display">Programme</h1>
74
+ <span class="mono">214 films<br>6 cinemas</span>
75
+ </header>
76
+
77
+ <nav class="days" aria-label="Festival days">
78
+ <a class="day-cell past" href="programme.html"><span class="display">04</span><span class="mono">Th</span></a>
79
+ <a class="day-cell past" href="programme.html"><span class="display">05</span><span class="mono">Fr</span></a>
80
+ <a class="day-cell today" href="programme.html"><span class="display">06</span><span class="mono">Sa</span></a>
81
+ <a class="day-cell" href="programme.html"><span class="display">07</span><span class="mono">Su</span></a>
82
+ <a class="day-cell" href="programme.html"><span class="display">08</span><span class="mono">Mo</span></a>
83
+ <a class="day-cell" href="programme.html"><span class="display">09</span><span class="mono">Tu</span></a>
84
+ <a class="day-cell" href="empty-day.html"><span class="display">10</span><span class="mono">We</span></a>
85
+ <a class="day-cell" href="programme.html"><span class="display">11</span><span class="mono">Th</span></a>
86
+ <a class="day-cell" href="programme.html"><span class="display">12</span><span class="mono">Fr</span></a>
87
+ </nav>
88
+
89
+ <nav class="cinemas mono" aria-label="Cinemas">
90
+ <a class="on" href="programme.html">All</a>
91
+ <a href="programme.html">C1</a>
92
+ <a href="programme.html">C2</a>
93
+ <a href="programme.html">C3</a>
94
+ <a href="programme.html">C4</a>
95
+ <a href="programme.html">C5</a>
96
+ <a href="programme.html">C6</a>
97
+ </nav>
98
+
99
+ <section class="listing">
100
+ <h2 class="list-head mono"><span>Sat 06.03 · from 17:00</span><span>14 of 30</span></h2>
101
+ <a class="film-row" href="film.html"><span class="mono">17:00</span><span class="display">Northern Interval</span><span class="cinema mono">C3</span><span class="add mono">Add</span></a>
102
+ <a class="film-row" href="film.html"><span class="mono">17:45</span><span class="display">Kiln</span><span class="cinema mono">C6</span><span class="add mono">Add</span></a>
103
+ <a class="film-row" href="film.html"><span class="mono">18:00</span><span class="display">Low Tide Choir</span><span class="cinema mono">C4</span><span class="add mono">Add</span></a>
104
+ <a class="film-row clash" href="film.html"><span class="mono">18:30</span><span class="display">Eleven Ferries</span><span class="cinema mono">C2</span><span class="add mono">Clash</span></a>
105
+ <a class="film-row clash" href="film.html"><span class="mono">19:00</span><span class="display">Pale Season</span><span class="cinema mono">C5</span><span class="add mono">Clash</span></a>
106
+ <a class="film-row in-cut" href="film.html"><span class="mono">19:30</span><span class="display">Salt Winter</span><span class="cinema mono">C1</span><span class="add mono">In</span></a>
107
+ <a class="film-row clash" href="film.html"><span class="mono">20:00</span><span class="display">Lanterns Out</span><span class="cinema mono">C3</span><span class="add mono">Clash</span></a>
108
+ <a class="film-row clash" href="film.html"><span class="mono">20:15</span><span class="display">Last Orders</span><span class="cinema mono">C6</span><span class="add mono">Clash</span></a>
109
+ <a class="film-row clash" href="clash.html"><span class="mono">21:00</span><span class="display">Mirror Weather</span><span class="cinema mono">C4</span><span class="add mono">Clash</span></a>
110
+ <a class="film-row clash" href="film.html"><span class="mono">21:15</span><span class="display">Blue Hour Union</span><span class="cinema mono">C2</span><span class="add mono">Clash</span></a>
111
+ <a class="film-row clash" href="film.html"><span class="mono">21:45</span><span class="display">Wide Awake Tuesday</span><span class="cinema mono">C5</span><span class="add mono">Clash</span></a>
112
+ <a class="film-row clash" href="film.html"><span class="mono">22:30</span><span class="display">Second Sun</span><span class="cinema mono">C1</span><span class="add mono">Clash</span></a>
113
+ <a class="film-row clash" href="film.html"><span class="mono">22:30</span><span class="display">Undertow Hotel</span><span class="cinema mono">C3</span><span class="add mono">Clash</span></a>
114
+ <a class="film-row in-cut" href="film.html"><span class="mono">22:45</span><span class="display">Feral Monday</span><span class="cinema mono">C6</span><span class="add mono">In</span></a>
115
+ </section>
116
+
117
+ <nav class="tabs mono" aria-label="Sections">
118
+ <a class="tab on" href="programme.html">Programme</a>
119
+ <a class="tab" href="home.html">My cut</a>
120
+ <a class="tab" href="ticket.html">Tickets</a>
121
+ </nav>
122
+ </main>
123
+
124
+ </body>
125
+ </html>
@@ -0,0 +1,118 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="1440x900">
7
+ <title>Site: first screen</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Daylight */
14
+ --field:#FFFFFF; --ink:#0A0A0A; --muted:#333333; --rule:#9C9C9C; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#0A0A0A;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Site, first screen. The site is the Daylight surface; the red field rises to meet the cut ===== */
36
+ .page{width:1440px;height:900px;position:relative;overflow:clip;background:linear-gradient(var(--field) 0 460px,var(--safelight) 460px)}
37
+ .site-nav{height:72px;display:flex;align-items:center;border-bottom:1px solid var(--ink)}
38
+ .wordmark{display:flex;width:240px;padding-left:24px}
39
+ .wordmark .display{font-size:40px}
40
+ .site-nav .links{display:flex;height:72px}
41
+ .site-nav .links a{display:flex;align-items:center;padding:0 24px}
42
+ .site-nav .links a.on{box-shadow:inset 0 -4px 0 var(--safelight)}
43
+ .site-nav .app{margin-left:auto;height:72px;display:flex;align-items:center;padding:0 24px;background:var(--ink);color:var(--field)}
44
+ /* eleven days, one 120px column each: the calendar is the image */
45
+ .calendar{display:grid;grid-template-columns:repeat(12,120px);height:208px;border-bottom:1px solid var(--ink)}
46
+ .calendar > *{border-right:1px solid var(--ink);padding:16px 0 0 12px}
47
+ .calendar > *:last-child{border-right:0}
48
+ .calendar .month{display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px}
49
+ .calendar .date .mono{display:block;height:48px}
50
+ .calendar .date .display{font-size:80px;margin-top:24px}
51
+ .calendar .date .mark{color:var(--signal)}
52
+ .hero-cut{font-size:320px;padding-left:16px;margin-top:40px}
53
+ .pitch{position:absolute;left:0;right:0;top:648px;display:grid;grid-template-columns:600px repeat(3,280px);padding:0 0 0 24px}
54
+ .pitch .line{font-size:16px;line-height:24px;padding-right:96px}
55
+ .start{display:inline-flex;align-items:center;justify-content:space-between;gap:48px;height:56px;margin-top:24px;padding:0 20px;background:var(--on-safelight);color:var(--safelight)}
56
+ .start .display{font-size:28px}
57
+ .stat{border-left:1px solid var(--on-safelight);padding-left:16px;display:flex;flex-direction:column;justify-content:space-between;height:144px}
58
+ .stat .display{font-size:56px}
59
+ .ticker{position:absolute;left:0;right:0;bottom:0;height:40px;display:grid;grid-template-columns:repeat(6,240px);align-items:center;border-top:1px solid var(--on-safelight)}
60
+ .ticker span{padding-left:24px}
61
+ </style>
62
+ </head>
63
+ <body>
64
+ <main class="page">
65
+ <nav class="site-nav mono" aria-label="Site">
66
+ <a class="wordmark" href="site.html" aria-label="Intercut"><span class="display">Inter</span><span class="display cut-red">Cut</span></a>
67
+ <span class="links">
68
+ <a class="on" href="timetable.html">Programme</a>
69
+ <a href="timetable.html">Cinemas</a>
70
+ <a href="site.html">Passes</a>
71
+ <a href="home.html">My cut</a>
72
+ </span>
73
+ <a class="app" href="home.html">Get the app</a>
74
+ </nav>
75
+
76
+ <section class="calendar" aria-label="Eleven days in March">
77
+ <div class="month mono"><span>No.14<br>March 2027</span><span>214 films<br>6 cinemas</span></div>
78
+ <div class="date"><span class="mono mark">Th · Opening</span><span class="display">04</span></div>
79
+ <div class="date"><span class="mono">Fr</span><span class="display">05</span></div>
80
+ <div class="date"><span class="mono">Sa</span><span class="display">06</span></div>
81
+ <div class="date"><span class="mono">Su</span><span class="display">07</span></div>
82
+ <div class="date"><span class="mono">Mo</span><span class="display">08</span></div>
83
+ <div class="date"><span class="mono">Tu</span><span class="display">09</span></div>
84
+ <div class="date"><span class="mono">We</span><span class="display">10</span></div>
85
+ <div class="date"><span class="mono">Th</span><span class="display">11</span></div>
86
+ <div class="date"><span class="mono">Fr</span><span class="display">12</span></div>
87
+ <div class="date"><span class="mono">Sa</span><span class="display">13</span></div>
88
+ <div class="date"><span class="mono mark">Su · Closing</span><span class="display">14</span></div>
89
+ </section>
90
+
91
+ <h1 class="hero-cut display splice">Your cut.</h1>
92
+
93
+ <section class="pitch">
94
+ <div>
95
+ <p class="line">Pick from the whole programme. The app lays out your days, flags the clashes and keeps every ticket ready for the queue.</p>
96
+ <a class="start" href="home.html"><span class="display">Start your cut</span><span class="display">→</span></a>
97
+ </div>
98
+ <div class="stat"><span class="mono">Opening night</span><span class="display">04.03</span><span class="mono">19:30 · C1 Meridian</span></div>
99
+ <div class="stat"><span class="mono">In competition</span><span class="display">38</span><span class="mono">First and second films</span></div>
100
+ <div class="stat"><span class="mono">Midnight</span><span class="display">22:45</span><span class="mono">Every night, C6 Harbour</span></div>
101
+ </section>
102
+
103
+ <footer class="ticker mono">
104
+ <span>Opening night</span><span>The Long Green</span><span>Dir. Lene Morrow</span><span>C1 · 19:30</span><span>Passes from 96</span><span>intercut.film</span>
105
+ </footer>
106
+ </main>
107
+
108
+ <svg class="defs" aria-hidden="true" focusable="false">
109
+ <!-- The splice: one text node, cut at the cap waist. Fractions of the filter box; Anton's cap waist sits at 50% of it in every
110
+ engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
111
+ <filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
112
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
113
+ <feOffset in="SourceGraphic" dx=".0833" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
114
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="lower"/></feMerge>
115
+ </filter>
116
+ </svg>
117
+ </body>
118
+ </html>
@@ -0,0 +1,71 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="board-size" content="1080x1080">
7
+ <title>Campaign: social square</title>
8
+ <style>
9
+ /* ===== Intercut base: the same block opens every board ===== */
10
+ @font-face{font-family:"Anton";src:url("../assets/fonts/anton-latin-400.woff2") format("woff2");font-display:block}
11
+ @font-face{font-family:"JetBrains Mono";src:url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");font-display:block}
12
+ :root{
13
+ /* colour tokens: tokens.json, theme Night */
14
+ --field:#0A0A0A; --ink:#FFFFFF; --muted:#9C9C9C; --rule:#333333; --safelight:#FF3D14; --on-safelight:#0A0A0A; --signal:#FF3D14;
15
+ /* faces: swap them here, then retune the two numbers below */
16
+ --display:"Anton","HelveticaNeue-CondensedBlack",Impact,sans-serif;
17
+ --mono:"JetBrains Mono",Menlo,monospace;
18
+ --cap:.86; /* cap height ÷ font size: a display line box is exactly its caps */
19
+ --cap-nudge:.0065em; /* moves the caps down onto the box, so cap top = box top */
20
+ }
21
+ *{box-sizing:border-box;margin:0;padding:0}
22
+ html,body{background:var(--field);color:var(--ink)}
23
+ body{font-family:var(--mono);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
24
+ a{color:inherit;text-decoration:none}
25
+ /* display: Anton caps in a box exactly cap-high, so stacked lines butt and the waist sits at 50% */
26
+ .display{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;line-height:var(--cap);translate:0 var(--cap-nudge);white-space:nowrap}
27
+ /* small print: JetBrains Mono caps */
28
+ .mono{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.04em;text-transform:uppercase}
29
+ /* the splice: one live text node cut at the cap waist by an SVG filter (the filters sit in .defs at the end of body) */
30
+ .splice{filter:url(#splice)}
31
+ .cut-red{color:var(--safelight)} /* the wordmark under 56px: the cut becomes colour */
32
+ .slit{flood-color:var(--safelight)}
33
+ .defs{position:absolute;width:0;height:0;overflow:hidden}
34
+ /* ===== end of base ===== */
35
+ /* ===== Social square, 1080 × 1080: one film a day, spliced ===== */
36
+ .square{width:1080px;height:1080px;position:relative;overflow:clip}
37
+ .square .row{position:absolute;left:0;right:0;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px}
38
+ .square .row.top{top:0;border-bottom:1px solid var(--rule)}
39
+ .square .row.top .mono:first-child{color:var(--signal)}
40
+ .square .row.bottom{bottom:0;border-top:1px solid var(--rule)}
41
+ .square .title{position:absolute;left:0;right:0;top:96px}
42
+ .square .title .display{font-size:320px;padding-left:20px}
43
+ .square .title .display + .display{margin-top:16px}
44
+ .wordmark{display:flex}
45
+ .wordmark .display{font-size:28px}
46
+ </style>
47
+ </head>
48
+ <body>
49
+ <main class="square">
50
+ <div class="row top mono"><span>Tonight · Opening night</span><span>Thu 04.03</span></div>
51
+ <h1 class="title">
52
+ <span class="display">The</span>
53
+ <span class="display">long</span>
54
+ <span class="display splice">green</span>
55
+ </h1>
56
+ <div class="row bottom mono"><span class="wordmark" aria-label="Intercut"><span class="display">Inter</span><span class="display cut-red">Cut</span></span><span>Doors 19:00 · C1 Meridian · 117 min · Dir. Lene Morrow</span></div>
57
+ </main>
58
+
59
+ <svg class="defs" aria-hidden="true" focusable="false">
60
+ <!-- The splice: one text node, cut at the cap waist. Fractions of the filter box; Anton's cap waist sits at 50% of it in every
61
+ engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
62
+ <!-- the third line on the 1080px square: shift one 120px module, a Safelight slit edge to edge -->
63
+ <filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
64
+ <feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
65
+ <feFlood class="slit" x="0" y=".4758" width="1" height=".0398" result="slit"/>
66
+ <feOffset in="SourceGraphic" dx=".1111" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
67
+ <feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
68
+ </filter>
69
+ </svg>
70
+ </body>
71
+ </html>