Skip to main content

max / makenotwork

1.8 KB · 42 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>Support {{ display_name }}: 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 .tip { display: flex; align-items: center; gap: var(--gap-group); width: 100%; }
23 .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
24 .placeholder { background: var(--surface-raised); }
25 .label { flex: 1; font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
26 .support-btn {
27 background: var(--action); color: var(--content-on-action); border: none; border-radius: 4px;
28 padding: var(--step-base) var(--gap-section); font-size: 12px; font-weight: 600;
29 cursor: pointer; text-decoration: none; white-space: nowrap;
30 }
31 .support-btn:hover { background: var(--action-hover); }
32 </style>
33 </head>
34 <body>
35 <div class="tip">
36 {% if let Some(url) = avatar_url %}<img class="avatar" src="{{ url }}" alt="">{% else %}<div class="avatar placeholder"></div>{% endif %}
37 <span class="label">Support @{{ username }}</span>
38 <a class="support-btn" href="{{ tip_url }}" target="_blank" rel="noopener">Support</a>
39 </div>
40 </body>
41 </html>
42