Skip to main content

max / makenotwork

2.1 KB · 50 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; justify-content: center;
13 min-height: 100vh; padding: 12px;
14 }
15 .card {
16 background: #fff; border-radius: 8px; overflow: hidden;
17 border: 1px solid rgba(61,53,48,0.1);
18 max-width: 350px; width: 100%;
19 }
20 .cover { width: 100%; height: 160px; background: #f5f0eb; }
21 .cover img { width: 100%; height: 100%; object-fit: cover; }
22 .body { padding: 14px; }
23 .title { font-family: 'Young Serif', Georgia, serif; font-size: 15px; font-weight: bold; margin-bottom: 4px; }
24 .creator { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: 0.6; margin-bottom: 6px; }
25 .creator a { color: inherit; text-decoration: none; }
26 .creator a:hover { text-decoration: underline; }
27 .meta { font-size: 11px; opacity: 0.6; margin-bottom: 8px; font-family: 'IBM Plex Mono', monospace; }
28 .desc { font-size: 12px; opacity: 0.8; line-height: 1.4; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
29 .view-btn {
30 display: inline-block; background: #6c5ce7; color: #fff; border-radius: 4px;
31 padding: 8px 14px; font-size: 12px; font-weight: 600;
32 text-decoration: none; white-space: nowrap;
33 }
34 .view-btn:hover { background: #5a4bd6; }
35 </style>
36 </head>
37 <body>
38 <div class="card">
39 <div class="cover">{% if let Some(url) = cover_image_url %}<img src="{{ url }}" alt="">{% endif %}</div>
40 <div class="body">
41 <div class="title">{{ title }}</div>
42 <div class="creator">by <a href="{{ profile_url }}" target="_blank" rel="noopener">{{ creator_display_name }}</a></div>
43 <div class="meta">{{ item_count }} items &middot; {{ category_label }}</div>
44 {% if !description_excerpt.is_empty() %}<div class="desc">{{ description_excerpt }}</div>{% endif %}
45 <a class="view-btn" href="{{ project_url }}" target="_blank" rel="noopener">View</a>
46 </div>
47 </div>
48 </body>
49 </html>
50