← All projects

Personal site

Personal website

The site you're looking at — a static Astro site with projects, photos, music, racing and a daily dashboard, hosted on my own server, in Chinese and English.

🦔

Overview

  • Fully static with a strict CSP and automatic deploys from GitHub Actions; the only back end on the server is a small sandboxed chat service
  • A vinyl record player, 10-band EQ and an AI-separated stem mixer, playing 16 CC0 electronic tracks
  • A 2026 F1 start animation built from real data — revs, reaction time, a two-stage clutch and active aero
  • The "Ask the hedgehog" chat assistant, a dashboard that updates itself every day, and four hedgehog buddies who take turns on duty
AstroTailwind CSSGSAPWeb AudioNginx
Type
Personal site
My role
Design and development
Date
2026.10
Status
In progress

Background

I wanted a place I can keep up for the long run — for projects, my resume and what I’m up to, and also for my hobbies in music, photography and racing.

What’s on it

  • Photos: browse by album or open a region on the globe. The pinpoint markers pulse independently, reveal place names on hover and filter the gallery when selected.

  • Music: a vinyl record player, live spectrum, 10-band equalizer and stem mixer. Every track has notes, credits its original artist and has clickable sections.

  • Ask the hedgehog: click the hedgehog in the bottom-right corner to ask about projects, recent updates or how to use the site. Conversations aren’t kept, and sensitive details are masked before anything is sent.

  • Racing: the series I follow, GT3 cars I love, my sim lap times and a countdown to the next F1 race and a drivers’ champion feature.

  • Today: Suzhou weather, a hedgehog fortune draw, a world market clock, tech stock trends and rising GitHub repos.

  • Now: a timeline plus a heatmap of my GitHub activity.

  • Two languages: Chinese at / and English under /en/, with a switch in the header that remembers your choice.

  • Browsing: Chinese and English, site search, a phone menu, project covers made from app screenshots and home-screen icons. Press Tab to reveal the skip-to-content link.

Tech choices

  • Astro: the best fit for a content site, with zero JS by default
  • Tailwind CSS: styles live in the components, so it’s cheap to maintain
  • GSAP: scroll and text animation

Deployment

After a push to GitHub, GitHub Actions builds the site, syncs the files to a new folder on an Aliyun server and then switches a symlink atomically, so a bad release can be rolled back in seconds. The server only opens the ports it needs, and Nginx serves the static files.

Security

The site itself is static files. The only back end on the server is a small service for the chat assistant: it runs in a systemd sandbox, only listens locally and is rate-limited per IP. Pages carry a strict Content Security Policy, with scripts and styles allowed by hash. The deploy account can only upload site files, and root can’t log in to the server remotely.

export default defineConfig({
  security: { csp: true },
});