Quellcode durchsuchen

feat: retitle the blog page in plain words

"Notes from the trail & the terminal." was hard to read at a glance.
The page is now "Writing." (matching the home card, with the glacier
period of the 404 page) under a "Blog · 9 posts" label, with one line
on what it covers. The loading skeleton takes the header's shape so
nothing jumps when the list lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QEPoSHwHCYMNpm2iKxY9hL
Claude vor 1 Monat
Ursprung
Commit
e38982aa24
2 geänderte Dateien mit 16 neuen und 9 gelöschten Zeilen
  1. 9 4
      app/blog/loading.tsx
  2. 7 5
      components/blog/blog-list.tsx

+ 9 - 4
app/blog/loading.tsx

@@ -1,12 +1,17 @@
 export default function BlogLoading() {
   return (
-    <div aria-busy="true" aria-label="Loading" className="space-y-4 pt-4">
-      <div className="mx-auto h-8 w-40 animate-pulse rounded-full bg-card-2" />
-      <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
+    <div aria-busy="true" aria-label="Loading">
+      {/* The same shape as the list's header, so nothing jumps when it lands. */}
+      <div className="mb-8 flex flex-col items-start gap-3 pt-2 sm:mb-10">
+        <div className="h-4 w-28 animate-pulse rounded-full bg-card-2" />
+        <div className="h-[clamp(2.6rem,6vw,3.8rem)] w-56 animate-pulse rounded-2xl bg-card-2" />
+        <div className="h-5 w-full max-w-[30rem] animate-pulse rounded-full bg-card-2" />
+      </div>
+      <div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
         {[0, 1, 2].map((i) => (
           <div
             key={i}
-            className="h-64 animate-pulse rounded-[28px] bg-card-2"
+            className="h-72 animate-pulse rounded-[24px] bg-card-2 sm:rounded-[28px]"
           />
         ))}
       </div>

+ 7 - 5
components/blog/blog-list.tsx

@@ -20,12 +20,14 @@ export function BlogList({ blogPosts }: { blogPosts: Post[] }) {
   return (
     <div>
       <header className="mb-8 flex flex-col items-start gap-3 pt-2 sm:mb-10">
-        <Eyebrow>Writing · {blogPosts.length} posts</Eyebrow>
-        <h1 className="font-display text-[clamp(2.3rem,5.2vw,3.6rem)] leading-[1.02] font-semibold tracking-[-0.02em]">
-          Notes from the trail &amp; the terminal.
+        <Eyebrow>
+          Blog · {blogPosts.length} {blogPosts.length === 1 ? "post" : "posts"}
+        </Eyebrow>
+        <h1 className="font-display text-[clamp(2.6rem,6vw,3.8rem)] leading-[1.02] font-semibold tracking-[-0.02em]">
+          Writing<span className="text-glacier">.</span>
         </h1>
-        <p className="max-w-[56ch] text-[15px] text-ink-2">
-          Things I&apos;ve built, broken, and learned along the way.
+        <p className="max-w-[56ch] text-[15px] text-pretty text-ink-2 sm:text-[16px]">
+          Notes on AI agents, software engineering, and hiking with my dog Bert.
         </p>
       </header>
       <div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">