Skip to main content

max / makenotwork

1.4 KB · 39 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 }} — Makenot.work</title>
7 <style>
8 * { margin: 0; padding: 0; box-sizing: border-box; }
9 body {
10 font-family: Lato, -apple-system, sans-serif;
11 background: #ede8e1; color: #3d3530;
12 display: flex; align-items: center;
13 height: 100vh; padding: 8px 12px;
14 }
15 .embed-button { display: flex; align-items: center; gap: 10px; width: 100%; }
16 .cover { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
17 .info { flex: 1; min-width: 0; }
18 .title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
19 .price { font-size: 12px; opacity: 0.7; font-family: 'IBM Plex Mono', monospace; }
20 .buy-btn {
21 background: #6c5ce7; color: #fff; border: none; border-radius: 4px;
22 padding: 8px 14px; font-size: 12px; font-weight: 600;
23 cursor: pointer; text-decoration: none; white-space: nowrap;
24 }
25 .buy-btn:hover { background: #5a4bd6; }
26 </style>
27 </head>
28 <body>
29 <div class="embed-button">
30 {% if let Some(url) = cover_image_url %}<img class="cover" src="{{ url }}" alt="">{% endif %}
31 <div class="info">
32 <div class="title">{{ title }}</div>
33 <div class="price">{{ price_display }}</div>
34 </div>
35 <a class="buy-btn" href="{{ purchase_url }}" target="_blank" rel="noopener">{{ button_text }}</a>
36 </div>
37 </body>
38 </html>
39