← back to writing
6 min read

How I built a moving skyline with Claude Code

Drawing home in code.

farmidnearFIG 01 · THREE LAYERS, THREE SPEEDS

My homepage has always been bland. Before tech, I studied and worked in architecture for a few years and did design work on the side, and very little of that showed. I wanted my portfolio to show something more personal and bring back some of my roots. I'm not the stereotypical Silicon Valley engineer, and I didn't want my site to look like I was.

In architecture, your portfolio carries a lot of weight. It's what gets you the interview, and presenting your work visually is a skill of its own. Software is harder to show, unless you work on something product-facing. I redid my portfolio what felt like hundreds of times in architecture school, hoping the right eyes would see it. That habit never left, which is why I'm this nitpicky and why I probably spent too much time on this.

So I tried bringing architecture into my homepage. One version had a pavilion that drew itself in line by line. Another was a hanging pod, inspired by how weaver birds build, whose woven panels assembled from the bottom up. I tried seven drawings at the top of the page and three more further down.

Four versions of the homepage hero in a grid. The first has only the name Kevin Reber, a waving hand emoji, a tagline and two buttons. The other three add a line drawing on the right: an isometric pavilion with a tiled hip roof, an oval of woven rings around a small opening, and a teardrop pod covered in round panels.
The plain hero, and three of the seven drawings I tried beside it

They always felt out of place. A precise architectural drawing sat next to a cartoon waving hand, and nothing told a visitor what a hanging pod had to do with a software engineer. Without that context it was just something abstract. It was really hard to show work I'm proud of to a totally different audience, one that had no idea what it was looking at. None of the drawings made it to the homepage.

A pixel-art city gave me the idea

Then I came across an event page on Luma with a pixel-art city scrolling behind it. I wanted a city of my own, drawn the way the rest of this site is drawn: thin, warm-gray lines, quiet enough to sit behind text. I was born and raised in the Bay Area, and I went to school and worked in San Francisco, so I started there. I'd notice if something was off.

What's there now: San Francisco, sped up to 5x

That's the skyline behind my name on my homepage now. You can switch it to New York, speed it up, or turn on night mode. It's all SVG and CSS, with no image files.

I built it with Claude Code, using Claude Opus 5.5. I'd describe what I wanted, look at a screenshot, and point out what was wrong. Most of my time went into feedback, and that's where architecture, photography and a lot of time in Photoshop and Illustrator helped. I could tell when a proportion was off or the depth looked wrong.

The first version was a field of boxes

I started in isometric, to match the project drawings elsewhere on the site. It was hard to read. Every building shows two faces and a roof, so a row of towers turns into a field of boxes.

The same group of towers drawn two ways. On the left, in isometric, they crowd into a block of boxes. On the right, drawn flat, a pointed pyramid and a tall rounded tower stand out above a row of shorter buildings.
The same towers both ways, redrawn for this post

Drawn flat, the skyline reads right away, because people know a city by its silhouette. It's an elevation, the drawing architects use to show a building straight on.

Three layers that loop without a seam

The depth comes from three layers. The closer a layer is, the darker it's drawn and the faster it moves.

San Francisco's three layers, stacked. The back layer is pale hills with Sutro Tower, with a short arrow. The middle is downtown with the Transamerica Pyramid and Salesforce Tower, with a longer arrow. The front is the water, the Golden Gate Bridge and the Ferry Building, with the longest arrow. Below them, all three together.
San Francisco's layers apart and together. Longer arrows move faster

Each layer is shown twice, side by side. CSS slides the pair left by exactly one copy, then starts over. The second copy is now where the first one began, so you never see the restart.

The front layer where its two copies meet, marked by a dashed green line. Alcatraz ends the first copy on the left, the Golden Gate's hill begins the second on the right, and the water runs straight across.
Where one copy of the front layer ends and the next begins
drawings.cssCSS
.sky-layer { animation: sky-pan var(--pan) linear infinite; }
@keyframes sky-pan { to { transform: translateX(-50%); } }

Almost nothing was right the first time

The first pass usually got close, but anyone who knows the place could tell it was off. A few of the fixes:

Two versions of the far hills with Sutro Tower on top, one above the other. In the first, houses and trees follow only the ridge and the slope below is empty. In the second, clusters of houses and trees cover the slope.
The far hills: houses only along the ridge (top), then down the slopes (bottom)

What the water and hills are hiding

One mistake kept coming back: parts that floated. One end of the Bay Bridge hung over open water, Coit Tower sat on top of its trees, and the Empire State's antenna started just above its dome.

Often the fix was to draw more than you can see. The Golden Gate's deck keeps going into the hill, its anchorage is buried there, and its towers continue below the waterline. The dolphins work the same way. Each one swings in an arc, and the water covers it when it's under.

Two views of one end of the Golden Gate Bridge. On top, as drawn: a wooded hill covers the end of the deck, and two dolphins leap out of the water. Below, with the hill and water reduced to dashed green outlines: the deck runs on into the hill past a solid anchorage, the towers reach below the waterline, and one dolphin is shown at four points along an arc, two of them underwater.
The Golden Gate as you see it (top), and with the land and water removed (bottom)

New York City

Whenever I need to escape the Bay or find some inspiration, I find myself in New York. I lived in the city for a few years, and if I could afford a brownstone in Brooklyn, I'd make it my home base. It's always been my second home.

The New York skyline in light mode, without the page text: the Statue of Liberty and the Pier 2 basketball courts on the left, the Brooklyn Bridge in front of Lower Manhattan, and the Empire State Building pale in the distance on the right.
The Statue of Liberty to the Empire State Building, with the page text hidden

New York uses the same three layers: Midtown in the back, downtown in the middle, and the East River and its bridges in front.

I favored iconic shapes over realistic geography and proportions. Each landmark is simplified to the feature people recognize, like the Brooklyn Bridge's pointed stone arches, and some stand closer together than they do in real life.

Why night mode is navy

I tried three dark palettes on the real page: a warm black, a charcoal and a navy. Navy won because it was the only one that read as sky.

The same view of San Francisco at night in three palettes, side by side: a warm near-black, a neutral charcoal, and a deep navy.
The three palettes I tried
San Francisco at night in deep navy: a full moon, a floodlit Coit Tower, lights along the Golden Gate's cables, lit windows downtown, and Salesforce Tower's glowing blue crown.
Coit Tower floodlit, Salesforce Tower's crown in blue
New York at night in deep navy: a teal Statue of Liberty with a lit torch, pools of light on the Pier 2 courts, lights along the Brooklyn Bridge's cables, lit towers, and the Empire State Building's top in blue.
The Statue of Liberty's torch lit, the Empire State Building's top in blue

My first pass lit the Empire State and the Statue of Liberty by laying a glow over them, which flattened them into blobs. Keeping the lines on top of the light brought the detail back.

The Tribute in Light, the two beams that rise beside the World Trade Center, is a memorial that is lit once a year. On the site it's always on in New York's night mode.

New York at night in navy, with the two pale beams of the Tribute in Light rising straight up beside One World Trade Center. The Brooklyn Bridge is in front and the Empire State Building's top is lit blue.
The Tribute in Light beside One World Trade Center

Traffic that follows the real bridges

Both cities have moving traffic on their bridges:

It follows the real ones where it can. Subway trains only cross the Manhattan and Williamsburg, and trucks stay off the Brooklyn.

A close-up of the Manhattan Bridge by day and at night. Cars, vans and trucks cross the upper deck while two subway trains pass below. At night the vehicles have white headlights and red taillights, the train windows are lit, and a tugboat carries red and white lights.
The Manhattan Bridge up close: cars on top, subway trains below

What all of this weighs

All of this is code your browser has to download. San Francisco alone made the homepage's HTML 251 KB compressed, and adding New York pushed it to 345 KB. Drawing each layer once and reusing it for the loop brought it back to 251 KB. With night mode and traffic, it's about 295 KB today.

What I'd do differently

If I started over, I'd draw flat from the first day and settle the layers before drawing a single building.

Cities I want to try next

Los Angeles, Chicago, Las Vegas, Miami, Dubai, Tokyo and Rome are the first ones that come to mind. I turned the corrections into a skill for Claude Code, so the next city starts from that list instead of a blank page. If you're from one of them, tell me what I'd get wrong.

← back to writing