cat ~/blog/building-this-site.md
building this site
the brief i set for myself: make a portfolio that looks like a shell session and reads like a blog. here is how it is put together.
constraints
- monospace everything — one font family, jetbrains mono
- grayscale only — hierarchy comes from contrast, not color
- no images, no framework runtime — astro ships zero javascript by default
- the only client-side script is the github panel
the prompt
every section header is a command line. the $ is not typed into the markup — it is a css pseudo-element, so the pattern stays consistent everywhere:
.cmd::before {
content: '$ ';
color: var(--faint);
}
the cursor is a span with a steps animation, which disables itself under prefers-reduced-motion:
.cursor {
display: inline-block;
width: 0.55em;
height: 1.15em;
background: var(--fg);
animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
50% { opacity: 0; }
}
the github panel
the only dynamic part of the site. a small script hits the github rest api at load, renders the profile as a key/value table and the top repos as a sorted listing, then quietly degrades to a plain link if the api is down or rate-limited. no keys, no proxy, no build-time staleness.
the blog
posts are plain markdown in src/content/blog, validated by a zod schema through astro content collections. frontmatter is four fields, drafts are a boolean, and npm run build turns the whole thing into static files.
shipping is boring on purpose: upload dist/ to any static host and the terminal is live.