feat: redesign the site and drop the projects pages #6
Loading…
Reference in a new issue
No description provided.
Delete branch "t3/redesign-blog-style"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this changes
A full redesign of the HTML site. Routes,
/md,/rss, the GPG and WKD paths, and the post markdown files are untouched apart from what is listed here.Look
#262624in dark mode,#f0eee6in light mode. No gradients or glows.#f283b6dark,#c93d7clight) on links, the tree marker, footnotes, commit hashes and the activity graph.Magnus Eickhoff,Blog / About,Published). Post titles and post text are left exactly as written.Navigation
<main>and does not load a new document.#hashlinks stay on the page.Posts
PublishedandReading timeunder small└branches, plus an optional pixel-art icon above the title when the post setsheroImageandpixelated.▓▓░░ 42%progress bar andj/kto jump between sections. It sits beside the post on wide screens and collapses into a bottom bar on narrow ones.About
activity:v1, served fresh for 10 minutes, then served stale while it refreshes in the background. The KV entry lasts 7 days./aboutwhen the browser is idle./api/activityreads from the same cache.Removed
src/lib/projects.ts./projects,/project/*and/md/project*redirect with a 302. Theprojects/folder and its R2 upload in the deploy workflow are left as they are.Smaller
rendered:v2:so stale pages in the old layout are not served after deploy.viewBoxso it scales to the column width.#still get one.npm run devpassesSKIP_RENDER_CACHEso template edits show up without waiting out the KV TTL, and forwards extra arguments towrangler dev.Testing
Ran
wrangler devand checked in headless Chromium at 1440, 1100 and 390 px wide, in dark and light mode:/, every post,/about,/md,/md/aboutand/rssreturn 200; an unknown path returns 404; the project routes return 302jjumps to the next section/abouttakes about 2.5 s on a cold start and about 10 ms once cachedtsc --noEmitcleanBefore merging
fonts.bunny.net, one external request it did not make before.