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