Commit 8c83078043

8c830780439cce5fe2053a56782f625a0de6f30a

parent: d250ea16e3

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-16 17:36 UTC

Bring home, services and privacy pages in line with apps

- Home: larger intro; apps as icon rows linking to their pages.
- Services: cards grouped by kind; /services/ is a page, not a redirect.
- Privacy: app icon on index rows and an app strip on each policy,
  via a new `app` front matter field.
- Nav links to /apps/ and /services/.

Layout: unified · split

content/privacy/daybyday.md +3
@@ -2,6 +2,9 @@
22title = "Day by Day Privacy Policy"
33description = "Privacy policy for Day by Day, the calendar-learning app for children."
44weight = 3
5
6[extra]
7app = "apps/daybyday.md"
58+++
69
710_last updated: 2 august 2026_
content/privacy/domain-dig.md +3
@@ -2,6 +2,9 @@
22title = "Domain Dig Privacy Policy"
33description = "Privacy policy for Domain Dig, the DNS and SSL inspector for iOS."
44weight = 2
5
6[extra]
7app = "apps/domain-dig.md"
58+++
69
710_last updated: 2 august 2026_
content/privacy/hutch.md +3
@@ -2,6 +2,9 @@
22title = "Hutch Privacy Policy"
33description = "Privacy policy for Hutch, the Sourcehut client for iOS."
44weight = 1
5
6[extra]
7app = "apps/hutch.md"
58+++
69
710_last updated: 12 september 2026_
content/privacy/orgstar.md +3
@@ -2,6 +2,9 @@
22title = "orgstar Privacy Policy"
33description = "Privacy policy for orgstar, the Org mode editor for iPhone and iPad."
44weight = 4
5
6[extra]
7app = "apps/orgstar.md"
58+++
69
710_last updated: 11 october 2026_
content/services/_index.md +3 −1
@@ -1,5 +1,7 @@
11+++
22title = "Services"
33description = "Public self-hosted services from krz."
4redirect_to = "/#services"
4template = "services.html"
55+++
6
7Public front-ends and tools, self-hosted by krz.
sass/main.scss +78 −46
@@ -102,12 +102,13 @@ a { color: inherit; text-decoration: none; }
102102}
103103
104104.tagline {
105 font-size: 28px;
106 line-height: 1.25;
107 letter-spacing: -0.025em;
108 font-weight: 500;
109 max-width: 19ch;
110 margin: 0 0 72px;
105 font-size: clamp(34px, 5.2vw, 60px);
106 line-height: 1.05;
107 letter-spacing: -0.045em;
108 font-weight: 700;
109 max-width: 17ch;
110 margin: 8px 0 80px;
111 text-wrap: balance;
111112}
112113
113114// ---- Numbered sections -----------------------------------------------------
@@ -135,55 +136,58 @@ a { color: inherit; text-decoration: none; }
135136 text-transform: uppercase;
136137 letter-spacing: 0.14em;
137138 color: var(--dim);
138 margin: 32px 0 2px;
139 margin: 32px 0 10px;
139140}
140.dir-group:first-of-type .sec-sub { margin-top: 20px; }
141.svc-group:first-of-type .sec-sub { margin-top: 20px; }
141142
142// ---- Directory rows --------------------------------------------------------
143// The name column is fixed so names align down the page; long descriptions
144// wrap inside their own cell rather than pushing the grid out of true.
145.dir { list-style: none; margin: 0; padding: 0; }
146.dir-grid { display: grid; grid-template-columns: 1fr; column-gap: 48px; }
147.dir-item { border-bottom: 1px solid var(--line); }
148
149.dir-row {
143// ---- Home: app rows -------------------------------------------------------
144.app-rows { list-style: none; margin: 0; padding: 0; }
145.app-rows li { border-bottom: 1px solid var(--line); }
146.app-row {
150147 display: grid;
151 grid-template-columns: 150px 1fr auto;
152 align-items: baseline;
148 grid-template-columns: 44px 160px 1fr auto;
149 align-items: center;
153150 gap: 4px 20px;
154 padding: 11px 8px 11px 0;
151 padding: 12px 0;
155152}
156.dir-name { font-weight: 600; letter-spacing: -0.01em; }
157.dir-desc { color: var(--mut); font-size: 14px; }
158.dir-host { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
159.dir-item:hover { background: var(--hov); }
160.dir-item:hover .dir-name { color: var(--ac); }
161
162.dir-item-app { display: flex; align-items: baseline; gap: 24px; }
163.dir-item-app .dir-row { flex: 1; grid-template-columns: 150px 1fr; min-width: 0; }
164.dir-actions {
165 display: flex;
166 gap: 20px;
167 font-size: 12px;
168 font-weight: 600;
169 text-transform: uppercase;
170 letter-spacing: 0.08em;
171 white-space: nowrap;
153.app-row-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
154.app-row-desc { color: var(--mut); }
155.app-row-go { color: var(--dim); }
156.app-row:hover .app-row-name, .app-row:hover .app-row-go { color: var(--ac); }
157@media (prefers-reduced-motion: no-preference) {
158 .app-row-go { transition: transform 0.2s; }
159 .app-row:hover .app-row-go { transform: translateX(4px); }
172160}
173.dir-actions a { color: var(--ac); }
174.dir-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
175161
176@media (min-width: 1000px) {
177 .dir-grid { grid-template-columns: 1fr 1fr; }
162// ---- Services: cards -------------------------------------------------------
163.svc-group + .svc-group { margin-top: 8px; }
164.svc-cards {
165 list-style: none;
166 margin: 0;
167 padding: 0;
168 display: grid;
169 grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
170 gap: 0 32px;
171}
172.svc-card {
173 display: flex;
174 flex-direction: column;
175 height: 100%;
176 padding: 14px 0 16px;
177 border-top: 1px solid var(--line);
178178}
179.svc-name { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
180.svc-desc { color: var(--mut); font-size: 14px; margin: 2px 0 10px; }
181.svc-host { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
182.svc-card:hover { border-top-color: var(--ac); }
183.svc-card:hover .svc-name, .svc-card:hover .svc-host { color: var(--ac); }
179184
180185@media (max-width: 760px) {
181186 :root { --gut: 20px; }
182 .tagline { font-size: 22px; max-width: none; margin-bottom: 48px; }
183 .dir-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
184 .dir-item-app { display: block; }
185 .dir-item-app .dir-row { grid-template-columns: 1fr; }
186 .dir-actions { padding: 0 0 12px; }
187 .app-row { grid-template-columns: 44px 1fr auto; gap: 0 14px; }
188 .app-row .app-icon { grid-row: span 2; }
189 .app-row-go { grid-row: span 2; grid-column: 3; }
190 .app-row-desc { grid-column: 2; font-size: 14px; line-height: 1.35; }
187191}
188192
189193// ---- Prose (app detail, privacy, home about) -------------------------------
@@ -281,6 +285,7 @@ a { color: inherit; text-decoration: none; }
281285 background: var(--bg);
282286}
283287.app-icon-sm { width: 64px; height: 64px; }
288.app-icon-xs { width: 44px; height: 44px; }
284289.app-icon-mono {
285290 display: grid;
286291 place-items: center;
@@ -292,6 +297,7 @@ a { color: inherit; text-decoration: none; }
292297}
293298.app-icon.app-icon-mono { font-size: 62px; }
294299.app-icon-sm.app-icon-mono { font-size: 36px; }
300.app-icon-xs.app-icon-mono { font-size: 24px; }
295301
296302.app-art {
297303 position: relative;
@@ -483,11 +489,37 @@ a { color: inherit; text-decoration: none; }
483489
484490// ---- Plain list (privacy index) --------------------------------------------
485491.plainlist { list-style: none; padding: 0; margin: 20px 0 0; }
486.plainlist li { padding: 11px 0; border-bottom: 1px solid var(--line); }
492.plainlist li {
493 position: relative;
494 display: flex;
495 align-items: center;
496 gap: 16px;
497 padding: 12px 0;
498 border-bottom: 1px solid var(--line);
499}
487500.plainlist li:last-child { border-bottom: 0; }
488.pl-name { font-weight: 600; }
501.pl-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
502.pl-name::after { content: ""; position: absolute; inset: 0; }
503.plainlist li:hover .pl-name { color: var(--ac); }
489504.pl-desc { display: block; color: var(--mut); font-size: 14px; }
490505
506// ---- App reference strip (privacy policy pages) -----------------------------
507.app-ref {
508 display: grid;
509 grid-template-columns: 44px 1fr;
510 align-items: center;
511 gap: 0 14px;
512 max-width: 64ch;
513 margin: 0 0 32px;
514 padding: 14px 16px;
515 border-left: 3px solid var(--tint, var(--ac));
516 background: var(--hov);
517}
518.app-ref .app-icon { grid-row: span 2; }
519.app-ref-name { font-weight: 700; letter-spacing: -0.015em; }
520.app-ref-desc { color: var(--mut); font-size: 14px; }
521.app-ref:hover .app-ref-name { color: var(--ac); }
522
491523// ---- Footer ----------------------------------------------------------------
492524.site-footer {
493525 max-width: var(--max);
templates/base.html +2 −2
@@ -21,8 +21,8 @@
2121 <header class="site-header">
2222 <a class="brand" href="{{ get_url(path="/") | safe }}">krz</a>
2323 <nav class="site-nav">
24 <a href="/#apps">apps</a>
25 <a href="/#services">services</a>
24 <a href="{{ get_url(path="@/apps/_index.md") | safe }}">apps</a>
25 <a href="{{ get_url(path="@/services/_index.md") | safe }}">services</a>
2626 <a href="/#about">about</a>
2727 </nav>
2828 </header>
templates/page.html +7
@@ -6,6 +6,13 @@
66{% block content %}
77{% set parent = get_section(path=page.ancestors | last, metadata_only=true) %}
88<p class="back"><a href="{{ parent.permalink | safe }}">&larr; back</a></p>
9{% if page.extra.app %}{% set icon_page = get_page(path=page.extra.app) %}
10<a class="app-ref"{% if icon_page.extra.tint %} style="--tint: {{ icon_page.extra.tint }}"{% endif %} href="{{ icon_page.permalink | safe }}">
11 {% set icon_class = "app-icon app-icon-xs" %}{% include "partials/app-icon.html" %}
12 <span class="app-ref-name">{{ icon_page.title }}</span>
13 <span class="app-ref-desc">{{ icon_page.extra.tagline | default(value=icon_page.description) }}</span>
14</a>
15{% endif %}
916<article class="prose">
1017 <h1 class="page-label">{{ page.title }}</h1>
1118 {% if page.description %}<p class="lede">{{ page.description }}</p>{% endif %}
templates/partials/app-icon.html +4 −3
@@ -1,5 +1,6 @@
1{% if page.extra.icon %}
2<img class="{{ icon_class | default(value="app-icon") }}" src="{{ page.extra.icon }}" alt="" width="1024" height="1024">
1{% set p = icon_page | default(value=page) %}
2{% if p.extra.icon %}
3<img class="{{ icon_class | default(value="app-icon") }}" src="{{ p.extra.icon }}" alt="" width="1024" height="1024">
34{% else %}
4<span class="{{ icon_class | default(value="app-icon") }} app-icon-mono" aria-hidden="true">{{ page.title | truncate(length=1, end="") | upper }}</span>
5<span class="{{ icon_class | default(value="app-icon") }} app-icon-mono" aria-hidden="true">{{ p.title | truncate(length=1, end="") | upper }}</span>
56{% endif %}
templates/partials/apps.html +8 −10
@@ -1,16 +1,14 @@
11{% set apps = get_section(path="apps/_index.md") %}
2<ul class="dir">
2<ul class="app-rows">
33 {% for page in apps.pages %}
4 <li class="dir-item dir-item-app">
5 <a class="dir-row" href="{{ page.permalink | safe }}">
6 <span class="dir-name">{{ page.title }}</span>
7 <span class="dir-desc">{{ page.description }}</span>
4 <li{% if page.extra.tint %} style="--tint: {{ page.extra.tint }}"{% endif %}>
5 <a class="app-row" href="{{ page.permalink | safe }}">
6 {% set icon_class = "app-icon app-icon-xs" %}{% include "partials/app-icon.html" %}
7 <span class="app-row-name">{{ page.title }}</span>
8 <span class="app-row-desc">{{ page.extra.tagline | default(value=page.description) }}</span>
9 <span class="app-row-go" aria-hidden="true">&rarr;</span>
810 </a>
9 <span class="dir-actions">
10 {% if page.extra.appstore %}<a href="{{ page.extra.appstore }}">app store</a>{% endif %}
11 {% if page.extra.link %}<a href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }}</a>{% endif %}
12 </span>
1311 </li>
1412 {% endfor %}
1513</ul>
16<p class="dir-more"><a href="{{ apps.permalink | safe }}">browse all apps &rarr;</a></p>
14<p class="dir-more"><a href="{{ apps.permalink | safe }}">all apps &rarr;</a></p>
templates/partials/services.html +7 −7
@@ -1,14 +1,14 @@
11{% set services = load_data(path="data/services.toml") %}
22{% for group in services.groups %}
3<div class="dir-group">
3<div class="svc-group">
44 <h3 class="sec-sub">{{ group.name }}</h3>
5 <ul class="dir dir-grid">
5 <ul class="svc-cards">
66 {% for item in group.items %}
7 <li class="dir-item">
8 <a class="dir-row" href="{{ item.url }}">
9 <span class="dir-name">{{ item.name }}</span>
10 <span class="dir-desc">{{ item.description }}</span>
11 <span class="dir-host">{{ item.url | replace(from="https://", to="") }}</span>
7 <li>
8 <a class="svc-card" href="{{ item.url }}">
9 <span class="svc-name">{{ item.name }}</span>
10 <span class="svc-desc">{{ item.description }}</span>
11 <span class="svc-host">{{ item.url | replace(from="https://", to="") }}</span>
1212 </a>
1313 </li>
1414 {% endfor %}
templates/section.html +1
@@ -13,6 +13,7 @@
1313<ul class="plainlist">
1414 {% for page in section.pages %}
1515 <li>
16 {% if page.extra.app %}{% set icon_page = get_page(path=page.extra.app) %}{% set icon_class = "app-icon app-icon-xs" %}{% include "partials/app-icon.html" %}{% endif %}
1617 <span class="pl-main">
1718 <a class="pl-name" href="{{ page.permalink | safe }}">{{ page.title }}</a>
1819 {% if page.description %}<span class="pl-desc">{{ page.description }}</span>{% endif %}
templates/services.html added +10
@@ -0,0 +1,10 @@
1{% extends "base.html" %}
2
3{% block title %}{{ section.title | lower }} &middot; {{ config.title }}{% endblock title %}
4{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %}
5
6{% block content %}
7<h1 class="page-label">{{ section.title }}</h1>
8<div class="prose apps-intro">{{ section.content | safe }}</div>
9{% include "partials/services.html" %}
10{% endblock content %}