easel-canvas 0.2.0 → 0.2.2
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.
- package/README.md +51 -26
- package/bin/mcp.mjs +10 -7
- package/dist/assets/{index-BZFSkKqU.css → index-CjyXUlEx.css} +1 -1
- package/dist/assets/index-DFCSLJXY.js +66 -0
- package/dist/index.html +2 -2
- package/dist/viewer/viewer.css +1 -1
- package/dist/viewer/viewer.js +13 -12
- package/examples/demo/CLAUDE.md +8 -0
- package/examples/demo/assets/fonts/OFL-Anton.txt +93 -0
- package/examples/demo/assets/fonts/OFL-JetBrainsMono.txt +93 -0
- package/examples/demo/assets/fonts/anton-latin-400.woff2 +0 -0
- package/examples/demo/assets/fonts/jetbrains-mono-latin-400.woff2 +0 -0
- package/examples/demo/assets/ticket-qr.svg +5 -0
- package/examples/demo/board.json +47 -20
- package/examples/demo/comments.json +27 -7
- package/examples/demo/screens/brand.html +155 -0
- package/examples/demo/screens/clash.html +94 -0
- package/examples/demo/screens/empty-day.html +114 -0
- package/examples/demo/screens/film.html +98 -0
- package/examples/demo/screens/home-daylight.html +144 -0
- package/examples/demo/screens/home.html +132 -38
- package/examples/demo/screens/poster.html +77 -0
- package/examples/demo/screens/programme.html +125 -0
- package/examples/demo/screens/site.html +118 -0
- package/examples/demo/screens/square.html +71 -0
- package/examples/demo/screens/ticket.html +107 -0
- package/examples/demo/screens/timetable.html +192 -0
- package/examples/demo/tokens.json +54 -22
- package/package.json +3 -2
- package/server/args.mjs +3 -2
- package/server/boards.mjs +22 -2
- package/server/chat.mjs +26 -16
- package/server/forks.mjs +16 -3
- package/server/html.mjs +1 -1
- package/server/place.mjs +33 -5
- package/dist/assets/index-BwyrrnkP.js +0 -65
- package/examples/demo/screens/empty.html +0 -43
- package/examples/demo/screens/habit.html +0 -55
- package/examples/demo/screens/landing.html +0 -44
- package/examples/demo/screens/new-habit.html +0 -47
- package/examples/demo/screens/settings.html +0 -43
- package/examples/demo/screens/stats.html +0 -50
|
@@ -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>
|
|
@@ -0,0 +1,107 @@
|
|
|
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>Ticket</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
|
+
/* ===== Ticket: the queue screen. Safelight field, title edge to edge, a QR you can scan ===== */
|
|
36
|
+
body{background:var(--safelight);color:var(--on-safelight)}
|
|
37
|
+
.screen{width:390px;height:844px;position:relative;overflow:clip;background:var(--safelight);color:var(--on-safelight)}
|
|
38
|
+
.status{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px}
|
|
39
|
+
.status .time{font-family:var(--display);font-size:20px;line-height:20px}
|
|
40
|
+
.film-nav{height:48px;display:flex;border-bottom:1px solid var(--on-safelight)}
|
|
41
|
+
.film-nav a{display:flex;align-items:center;padding:0 16px;border-left:1px solid var(--on-safelight)}
|
|
42
|
+
.film-nav .back{margin-right:auto;border-left:0}
|
|
43
|
+
.ticket-title{padding:16px 0 24px}
|
|
44
|
+
.ticket-title .mono{display:block;padding:0 16px 16px}
|
|
45
|
+
.ticket-title .display{font-size:120px;padding-left:12px}
|
|
46
|
+
.ticket-title .display + .display{margin-top:8px}
|
|
47
|
+
/* the QR: ../assets/ticket-qr.svg, real modules, 8px a module with a four-module quiet zone; reuse it with the same <img> */
|
|
48
|
+
.qr-panel{display:grid;grid-template-columns:264px 1fr;gap:16px;padding:0 16px}
|
|
49
|
+
.qr{display:block;width:264px;height:264px}
|
|
50
|
+
.qr-side{display:flex;flex-direction:column;justify-content:space-between;border-left:1px solid var(--on-safelight);padding-left:12px}
|
|
51
|
+
.qr-side .display{font-size:28px}
|
|
52
|
+
.qr-side .mono{display:block}
|
|
53
|
+
.scan{position:absolute;left:16px;right:16px;bottom:136px;display:flex;justify-content:space-between}
|
|
54
|
+
.stub{position:absolute;left:0;right:0;bottom:0;height:120px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px dashed var(--on-safelight)}
|
|
55
|
+
.stub div{padding:16px 0 0 16px;border-right:1px solid var(--on-safelight)}
|
|
56
|
+
.stub div:last-child{border-right:0}
|
|
57
|
+
.stub .mono{display:block}
|
|
58
|
+
.stub .display{font-size:56px;margin-top:16px}
|
|
59
|
+
.slit-ink{flood-color:var(--ink)}
|
|
60
|
+
</style>
|
|
61
|
+
</head>
|
|
62
|
+
<body>
|
|
63
|
+
<main class="screen">
|
|
64
|
+
<div class="status"><span class="time">19:12</span><span class="mono">5G · 79%</span></div>
|
|
65
|
+
|
|
66
|
+
<nav class="film-nav mono" aria-label="Ticket">
|
|
67
|
+
<a class="back" href="home.html">← My cut</a>
|
|
68
|
+
<a href="film.html">Film</a>
|
|
69
|
+
<a href="ticket.html">Wallet</a>
|
|
70
|
+
</nav>
|
|
71
|
+
|
|
72
|
+
<header class="ticket-title">
|
|
73
|
+
<span class="mono">Admit one · Sat 06.03 · 19:30</span>
|
|
74
|
+
<h1 class="display">Salt</h1>
|
|
75
|
+
<span class="display splice">Winter</span>
|
|
76
|
+
</header>
|
|
77
|
+
|
|
78
|
+
<section class="qr-panel" aria-label="Ticket code">
|
|
79
|
+
<img class="qr" src="../assets/ticket-qr.svg" alt="Ticket code 14-0603-C1-F12">
|
|
80
|
+
<div class="qr-side">
|
|
81
|
+
<span><span class="mono">Cinema</span><span class="display">C1</span><span class="mono">Meridian</span></span>
|
|
82
|
+
<span><span class="mono">Screen</span><span class="display">1</span><span class="mono">Stalls</span></span>
|
|
83
|
+
<span><span class="mono">No.</span><span class="mono">14-0603</span><span class="mono">-C1-F12</span></span>
|
|
84
|
+
</div>
|
|
85
|
+
</section>
|
|
86
|
+
|
|
87
|
+
<p class="scan mono"><span>Scan at the door</span><span>Screen up, brightness up</span></p>
|
|
88
|
+
|
|
89
|
+
<footer class="stub">
|
|
90
|
+
<div><span class="mono">Seat</span><span class="display">F12</span></div>
|
|
91
|
+
<div><span class="mono">Doors</span><span class="display">19:10</span></div>
|
|
92
|
+
<div><span class="mono">Run</span><span class="display">112′</span></div>
|
|
93
|
+
</footer>
|
|
94
|
+
</main>
|
|
95
|
+
|
|
96
|
+
<svg class="defs" aria-hidden="true" focusable="false">
|
|
97
|
+
<!-- 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
|
|
98
|
+
engine, so only the slit's two y numbers retune with the face. dx = shift ÷ element width; change dx if the width changes. -->
|
|
99
|
+
<filter id="splice" x="-.2" y="-.05" width="1.6" height="1.1" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
|
|
100
|
+
<feOffset in="SourceGraphic" dx="0" x="-.2" y="-.05" width="1.6" height=".5258" result="upper"/>
|
|
101
|
+
<feFlood class="slit-ink" x="0" y=".4758" width="1" height=".0398" result="slit"/>
|
|
102
|
+
<feOffset in="SourceGraphic" dx=".1231" x="-.2" y=".5156" width="1.6" height=".5344" result="lower"/>
|
|
103
|
+
<feMerge><feMergeNode in="upper"/><feMergeNode in="slit"/><feMergeNode in="lower"/></feMerge>
|
|
104
|
+
</filter>
|
|
105
|
+
</svg>
|
|
106
|
+
</body>
|
|
107
|
+
</html>
|