Skip to main content

max / makenotwork

1.9 KB · 46 lines History Blame Raw
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.0">
6 <title>{{ title }}: Makenotwork</title>
7 <style>
8 /* The design system, inlined: an embed renders in an iframe on somebody
9 else's page and cannot link a stylesheet. Colour comes from makeover at
10 render time (platform default theme), spacing from makeover-geometry at
11 build time (Pointer density, no touch block). Do not write a literal
12 below: nothing would catch it drifting. */
13 {{ theme_css|safe }}
14 {{ geometry_css|safe }}
15 * { margin: 0; padding: 0; box-sizing: border-box; }
16 body {
17 font-family: Lato, -apple-system, sans-serif;
18 background: var(--surface-page); color: var(--content);
19 display: flex; align-items: center;
20 height: 100vh; padding: var(--step-base) var(--gap-section);
21 }
22 .embed-button { display: flex; align-items: center; gap: var(--gap-group); width: 100%; }
23 .cover { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
24 .info { flex: 1; min-width: 0; }
25 .title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
26 .price { font-size: 12px; opacity: 0.7; font-family: 'IBM Plex Mono', monospace; }
27 .buy-btn {
28 background: var(--action); color: var(--content-on-action); border: none; border-radius: 4px;
29 padding: var(--step-base) var(--gap-section); font-size: 12px; font-weight: 600;
30 cursor: pointer; text-decoration: none; white-space: nowrap;
31 }
32 .buy-btn:hover { background: var(--action-hover); }
33 </style>
34 </head>
35 <body>
36 <div class="embed-button">
37 {% if let Some(url) = cover_image_url %}<img class="cover" src="{{ url }}" alt="">{% endif %}
38 <div class="info">
39 <div class="title">{{ title }}</div>
40 <div class="price">{{ price_display }}</div>
41 </div>
42 <a class="buy-btn" href="{{ purchase_url }}" target="_blank" rel="noopener">{{ button_text }}</a>
43 </div>
44 </body>
45 </html>
46