· 3 min read · by Eav Puthcambo
How this site is built
A quick tour under the hood of this portfolio — a static Next.js site, Markdown posts, and a pile of CSS tricks to make it look hand-drawn.
You're looking at it. This post is a short tour of how the site you're reading is actually put together, from the framework down to the wobbly borders.
The stack
It's a Next.js site, but a boring, reliable kind: everything is rendered once at build time and shipped as plain static HTML. No server, no database, nothing to keep running.
// next.config.ts
const nextConfig = {
output: "export", // → a folder of static HTML
trailingSlash: true,
images: { unoptimized: true },
};
That output: "export" turns the whole thing into a folder I can drop on any static host. It's deployed on Cloudflare for free, and a git push is the entire publish step.
Styling is Tailwind CSS v4, and the fonts are Gochi Hand for headings and Kalam for body text, which do most of the "handwritten" work on their own.
Posts are just Markdown
Every post, including this one, is a Markdown file in content/blog/. A small loader reads the folder, parses the front-matter, and renders the body with Shiki for code highlighting.
The part I'm happiest with is that the front-matter is validated with zod, so a typo can't slip through:
const postSchema = z.object({
title: z.string().min(2),
description: z.string().min(10),
date: z.coerce.date(),
tags: z.array(z.string()).default([]),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
});
If I misspell a field or forget a date, the build fails loudly and tells me which file and which field. A broken post never makes it to the site. Posts marked draft: true show up while I'm writing locally but are left out of the published build.
Making it look hand-drawn
None of the sketchy look is images — it's all CSS. A few of the tricks:
- Graph paper: two repeating linear-gradients on the
bodybackground, one horizontal, one vertical. - Wobbly borders: an asymmetric
border-radiuslike255px 15px 225px 15px / 15px 225px 15px 255pxmakes a box look drawn by hand instead of a perfect rectangle. - Highlighter marks:
<mark>gets a slightly uneven linear-gradient background so it looks like a real marker swept across the text. - Taped cards: the project and post cards are "paper" with a hard offset shadow and a little tape strip, tilted a degree or two.
The emoji dotted around the place are all self-hosted from emoji.gg, so nothing depends on another site staying up.
Light and dark
The whole theme is a set of CSS custom properties defined once, then redefined for dark mode. Every colour on the site is a token like var(--ink) or var(--paper), so dark mode is just a second set of values — no component knows which theme it's in. It follows your system setting by default, and the toggle in the header overrides it.
The blog machinery
A few things run themselves so I never have to touch them when I post:
- Pagination at 8 posts per page, with the extra pages generated at build time.
- An RSS feed at
/blog/feed.xml, built from the same posts. - A sitemap and robots file.
Add a Markdown file, push, and the list, pages, feed and sitemap all update on their own.
Credit where it's due
The playful, notebook look is inspired by calebephrem/portfolio — rebuilt from scratch with my own design and code. The full list of tools, fonts and assets lives on the credits page.
That's the whole thing: static HTML, Markdown, and a lot of CSS pretending it can't draw a straight line.
Read more 
Hello, world 👋
A new home for my projects and writeups, and what I plan to write about here.
A Python program hidden inside itself, many times over
An obfuscated Python challenge decrypts a layer, runs it, and repeats, with anti-debug that silently corrupts the key if it sees you. The weak spot is the one library it forgot to protect.
An IDOR bug hidden inside a Roblox game
A CTF challenge built on top of Roblox hands you a toy "memory" API with a read-protected flag. The write function never checks what you're allowed to touch, so you just turn the protection off.