Commit 4e5e22559c
Verified · cmc
Layout: unified · split
content/templates/data/work.html +6 −6
| @@ -6,12 +6,12 @@ | ||
| 6 | 6 | {%- set teaser = {"name": "Coming", "tint": "#2f4858"} -%} |
| 7 | 7 | |
| 8 | 8 | {%- set software = [ |
| 9 | {"name": "orgo", "url": "https://gitbay.org/krz/orgo", "desc": "builds this site", "tint": "#5b7a2e"}, | |
| 10 | {"name": "gitbay", "url": "https://gitbay.org", "desc": "a CLI-first git forge", "tint": "#4338ca"}, | |
| 11 | {"name": "org-live", "url": "https://org.krz.sh", "desc": "org on the web", "tint": "#0f766e"}, | |
| 12 | {"name": "nfogen", "url": "https://gitbay.org/krz/nfogen", "desc": "NFO files", "tint": "#475569"}, | |
| 13 | {"name": "SkunkyArt", "url": "https://gitbay.org/krz/skunky-art", "desc": "DeviantArt frontend", "tint": "#b45309"}, | |
| 14 | {"name": "1kb", "url": "https://rogue.krz.sh/1kb/#g", "desc": "tiny roguelike", "tint": "#9f1239"}, | |
| 9 | {"name": "orgo", "url": "https://gitbay.org/krz/orgo", "desc": "builds this site", "tint": "#248a3d"}, | |
| 10 | {"name": "gitbay", "url": "https://gitbay.org", "desc": "a CLI-first git forge", "tint": "#3634a3"}, | |
| 11 | {"name": "org-live", "url": "https://org.krz.sh", "desc": "org on the web", "tint": "#0c817b"}, | |
| 12 | {"name": "nfogen", "url": "https://gitbay.org/krz/nfogen", "desc": "NFO files", "tint": "#6c6c70"}, | |
| 13 | {"name": "SkunkyArt", "url": "https://gitbay.org/krz/skunky-art", "desc": "DeviantArt frontend", "tint": "#c93400"}, | |
| 14 | {"name": "1kb", "url": "https://rogue.krz.sh/1kb/#g", "desc": "tiny roguelike", "tint": "#d70015"}, | |
| 15 | 15 | ] -%} |
| 16 | 16 | |
| 17 | 17 | {%- set audit_chain = [ |
theme/static/styles.css +14 −14
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | than literal values. Breakpoints cannot be variables, so the set is fixed here: |
| 8 | 8 | 560px (phone), 900px (columns stack), 1100px (home widgets go to two columns). */ |
| 9 | 9 | :root { |
| 10 | --bg: #f1f1ef; --fg: #1c1e24; --soft: #6a6d75; --raise: #ffffff; --rule: #dedfdb; --link: #2a5db0; --visited: #6a3a99; --focus: #2a5db0; | |
| 10 | --bg: #f5f5f7; --fg: #1d1d1f; --soft: #6e6e73; --raise: #ffffff; --rule: #d2d2d7; --link: #0066cc; --visited: #3634a3; --focus: #0071e3; | |
| 11 | 11 | --font: "Onest", ui-sans-serif, system-ui, -apple-system, sans-serif; |
| 12 | 12 | --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; |
| 13 | 13 | --wide: 1160px; --read: 42rem; --pad: clamp(1rem, 4vw, 3rem); |
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | --ease-out: cubic-bezier(.2, .7, .2, 1); |
| 26 | 26 | } |
| 27 | 27 | @media (prefers-color-scheme: dark) { |
| 28 | :root { --bg: #111317; --fg: #ebebe6; --soft: #9a9da4; --raise: #1b1d23; --rule: #2a2c33; --link: #8db6f2; --visited: #c79bf2; --focus: #8db6f2; } | |
| 28 | :root { --bg: #000000; --fg: #f5f5f7; --soft: #98989d; --raise: #1c1c1e; --rule: #38383a; --link: #2997ff; --visited: #7d7aff; --focus: #2997ff; } | |
| 29 | 29 | } |
| 30 | 30 | * { box-sizing: border-box; } |
| 31 | 31 | html { -webkit-text-size-adjust: 100%; color-scheme: light dark; } |
| @@ -132,7 +132,7 @@ pre code { color: #323232; } | ||
| 132 | 132 | .tablet { justify-self: center; width: 100%; max-width: 520px; padding: var(--s-3); border-radius: var(--r-device); background: var(--raise); box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -30px rgba(10, 20, 40, .45); position: relative; } |
| 133 | 133 | .tablet::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--rule); } |
| 134 | 134 | .screen { aspect-ratio: 5 / 6; border-radius: calc(var(--r-device) - var(--s-3)); padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; overflow: hidden; |
| 135 | background: radial-gradient(60% 50% at 15% 10%, #4338ca 0, transparent 70%), radial-gradient(55% 45% at 90% 30%, #c2410c 0, transparent 70%), radial-gradient(70% 55% at 30% 95%, #5b7a2e 0, transparent 70%), radial-gradient(50% 50% at 85% 90%, #1c57bd 0, transparent 70%), #10141f; } | |
| 135 | background: radial-gradient(60% 50% at 15% 10%, #3634a3 0, transparent 70%), radial-gradient(55% 45% at 90% 30%, #c93400 0, transparent 70%), radial-gradient(70% 55% at 30% 95%, #248a3d 0, transparent 70%), radial-gradient(50% 50% at 85% 90%, #0040dd 0, transparent 70%), #000; } | |
| 136 | 136 | .screen .status { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .85); font-size: var(--t-xs); font-weight: var(--w-semi); padding: 0 var(--s-2) var(--s-5); } |
| 137 | 137 | .screen ul { list-style: none; margin: 0; padding: 0; } |
| 138 | 138 | .screen .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-3); } |
| @@ -144,15 +144,15 @@ pre code { color: #323232; } | ||
| 144 | 144 | .screen .dock { margin-top: auto; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: calc(var(--r-device) - var(--s-3) - var(--s-5)); padding: var(--s-4); display: flex; justify-content: space-around; } |
| 145 | 145 | .screen .dock a { color: #fff; text-decoration: none; font-size: var(--t-xs); display: flex; flex-direction: column; align-items: center; gap: var(--s-1); } |
| 146 | 146 | .screen .dock i { width: 56px; height: 56px; border-radius: var(--r-icon); display: grid; place-items: center; font-style: normal; font-weight: var(--w-bold); font-size: var(--t-md); color: #fff; } |
| 147 | .d-blog { background: #f3efe6; color: #1c1e24 !important; } | |
| 148 | .d-garden { background: #2e6b3c; } | |
| 149 | .d-now { background: #6a3a99; } | |
| 150 | .d-uses { background: #1c1e24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); } | |
| 147 | .d-blog { background: #f2f2f7; color: #1d1d1f !important; } | |
| 148 | .d-garden { background: #248a3d; } | |
| 149 | .d-now { background: #8944ab; } | |
| 150 | .d-uses { background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); } | |
| 151 | 151 | @media (max-width: 560px) { .screen { padding: var(--s-5) var(--s-4) var(--s-4); border-radius: calc(var(--r-device) - var(--s-4)); } .screen .apps span:not(.blank) { font-size: var(--t-2xs); } .screen .dock i { width: 46px; height: 46px; } } |
| 152 | 152 | @media (prefers-reduced-motion: reduce) { .screen .apps img { transition: none; } } |
| 153 | 153 | |
| 154 | 154 | /* A band per app: the top of each app page */ |
| 155 | .band { background: color-mix(in srgb, var(--tint) 80%, #000); color: #f2f4f8; } | |
| 155 | .band { background: color-mix(in srgb, var(--tint) 80%, #000); color: #f5f5f7; } | |
| 156 | 156 | .band-in { max-width: var(--wide); margin: 0 auto; padding: var(--s-section) var(--pad); display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-gutter); align-items: center; } |
| 157 | 157 | .band-head { display: flex; align-items: center; gap: var(--s-4); } |
| 158 | 158 | .band-head img { width: 64px; height: 64px; border-radius: var(--r-icon); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 20px -8px rgba(0, 0, 0, .5); } |
| @@ -164,7 +164,7 @@ pre code { color: #323232; } | ||
| 164 | 164 | .band-meta { margin: var(--s-6) 0 0; font-size: var(--t-sm); opacity: .82; } |
| 165 | 165 | .band-links { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); } |
| 166 | 166 | .band-links a { display: inline-block; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: var(--w-medium); } |
| 167 | .band-links li:first-child a { background: #f2f4f8; color: var(--tint); } | |
| 167 | .band-links li:first-child a { background: #f5f5f7; color: var(--tint); } | |
| 168 | 168 | .band-links a:hover { background: rgba(255, 255, 255, .26); } |
| 169 | 169 | .band-links li:first-child a:hover { background: #fff; } |
| 170 | 170 | .band-shot img { display: block; width: 100%; border-radius: var(--r-sm); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); } |
| @@ -205,18 +205,18 @@ pre code { color: #323232; } | ||
| 205 | 205 | .w-writing li time { font-size: var(--t-sm); } |
| 206 | 206 | .w-more { margin-top: auto; padding-top: var(--s-4); font-weight: var(--w-medium); text-decoration: none; } |
| 207 | 207 | .w-more::after { content: "\00a0\2192"; } |
| 208 | .w-audit { grid-column: span 2; background: #115e59; color: #e6f4f1; } | |
| 209 | .w-audit h2, .w-audit p { color: #a7d3cc; } | |
| 208 | .w-audit { grid-column: span 2; background: #1d6e31; color: #f5f5f7; } | |
| 209 | .w-audit h2, .w-audit p { color: #cdeccf; } | |
| 210 | 210 | .w-audit p { margin: 0 0 var(--s-5); font-size: var(--t-sm); } |
| 211 | 211 | .w-audit p a { color: #fff; } |
| 212 | 212 | .w-audit ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-top: auto; counter-reset: step; } |
| 213 | 213 | .w-audit ol a { display: flex; flex-direction: column; height: 100%; padding: var(--s-3); border-radius: var(--r-md); background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; } |
| 214 | 214 | .w-audit ol a:hover { background: rgba(255, 255, 255, .2); } |
| 215 | .w-audit ol span { font-size: var(--t-xs); color: #a7d3cc; counter-increment: step; } | |
| 215 | .w-audit ol span { font-size: var(--t-xs); color: #cdeccf; counter-increment: step; } | |
| 216 | 216 | .w-audit ol span::before { content: counter(step) ". "; } |
| 217 | 217 | .w-audit ol strong { font-weight: var(--w-semi); font-size: var(--t-sm); overflow-wrap: anywhere; margin-top: var(--s-1); } |
| 218 | .w-hosted { background: #4c2a85; color: #efe7fb; } | |
| 219 | .w-hosted h2, .w-hosted p { color: #c9b6ec; } | |
| 218 | .w-hosted { background: #3634a3; color: #f5f5f7; } | |
| 219 | .w-hosted h2, .w-hosted p { color: #d4d3f7; } | |
| 220 | 220 | .w-hosted .w-num { margin: 0; font-size: var(--t-title); line-height: 1; font-weight: var(--w-bold); letter-spacing: -.04em; color: #fff; } |
| 221 | 221 | .w-hosted p { margin: var(--s-1) 0 var(--s-4); font-size: var(--t-sm); } |
| 222 | 222 | .w-hosted ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; } |