Afternoon AI
2:00 p. m. · Singapur

Esta página solo está disponible en inglés.

5 Things That Broke Before I Launched My Vibe-Coded Blog

My homepage looked fine in screenshots. In a real browser, the phone header took three lines, Chinese words split in half, and the 3D sphere flashed black on a slow first visit. Here's what broke, and the checks I'd run again.

Por 5 min de lectura Primeros pasos
EN ESTA PÁGINA · 6
  1. 1. The first preview didn't match the mockup
  2. 2. The phone header took three lines
  3. 3. Other languages broke the spacing
  4. 4. The 3D sphere flashed black on a slow first visit
  5. 5. Launch day: redirects and a missing icon
  6. The checklist I'd use again

In my first post, I covered how I built Afternoon AI with Claude Code and Codex. This one is about the part in between: the design was done, but the site still wasn't ready.

I built the site by vibe coding: I describe what I want in plain words, and AI writes the code. I'm not a coder, so I couldn't find these problems by reading code. I found them by opening the site in a real browser, on a phone, in other languages, and on a slow first visit, recording what happened. Here are the five that mattered most, and the check I'd run again for each one.

1. The first preview didn't match the mockup

When I opened the first version Codex built from my v8 design, it looked way off. Background colors didn't fade smoothly, buttons jumped instead of animating, and the layout was out of place.

Describing the design in words wasn't enough. So I stopped letting Codex improvise and put the mockup's raw HTML, CSS, and JS straight into the handoff doc. No real data until the look passed. After every round, Codex captured 1440px screenshots at 2x and full scroll recordings, and I handed them to Claude Code to compare with the mockup.

The recordings caught things screenshots never would. The shift from light blue into cobalt looked like hitting a wall. The dot grid cut off suddenly. And the header clock, which moves with your scroll, reached 8:30 pm at the bottom of the page and was still showing a sun. We added in-between colors, faded the dot grid in and out, and switched to the moon starting at 7:30 pm.

The check: Don't judge a build from one screenshot. Record a full scroll from top to bottom and watch it next to your mockup.

2. The phone header took three lines

Shrinking the desktop layout onto a phone jammed the header into three lines, clipped the big footer text, and threw the four-step line out of place. Patching the desktop CSS didn't fix it. What worked was adding a separate mobile spec to the handoff doc and having Codex rebuild the mobile layout from it.

The check: Open every page at 375px and 390px wide, two common iPhone widths, before you call it done. Chrome's device toolbar does this in a few clicks.

3. Other languages broke the spacing

The site runs in US English, UK English, Spanish, and Simplified Chinese. Spanish ran longer, so headings and buttons that fit in English got cramped. Chinese was worse: a short word like 小工具 ("small tool") split across two lines. We added line-break rules to keep Chinese word groups together and checked the language menus one by one.

The check: Switch languages at phone width, not just on desktop. The longest language and the one with no spaces between words are where layouts break first.

4. The 3D sphere flashed black on a slow first visit

This is the one I would have missed. The homepage has a liquid-metal 3D sphere built with Three.js. On my own computer it looked fine. But in a recording of a slow first visit, the sphere area went black for 25 frames (frames 31 to 55) before the metal appeared. The headline next to it stayed on screen the whole time, so the page didn't look broken. It just looked wrong for a moment.

You can't catch this in a screenshot, and you won't see it on your own computer once the page is cached.

The fix was simple: show a static image of the sphere first, and fade in the 3D version only after its first real frame is ready. To make sure it worked, we recorded five cold starts of the fixed sphere and checked every frame. Across 638 frames, there were no black flashes.

If you're fighting a Three.js black flash on load, the real question is when to hide the loading screen. For me, the answer wasn't when the files finished loading. It was after the first frame actually rendered.

The check: If your page has 3D, video, or heavy animation, record a first visit with an empty cache and a slowed-down connection. Then step through the first second frame by frame.

5. Launch day: redirects and a missing icon

Once the pages looked right, deploying the Astro site to Cloudflare Pages brought its own small problems. When Chrome followed an old link, it also asked for a default favicon.ico file. That file didn't exist, so it got a 404. We added a matching fallback icon.

After connecting the domain, I checked that www redirects to the root domain and that old addresses redirect properly. For example, http://www.afternoon-ai.com/es/?source=test should land on https://afternoon-ai.com/es/?source=test, keeping both the language path and the tag. On the live site, Codex then ran 98 automated browser checks across desktop and mobile, and all of them passed.

The check: After launch, type in an old-style address with www, http, a path, and a ?source= tag. The address bar should end up on your main domain with everything after it intact.

The checklist I'd use again

  • Record a full scroll and compare it with the mockup.
  • Check every page at 375px and 390px.
  • Switch languages at phone width.
  • Record a slow first visit if anything on the page is 3D or animated.
  • After launch, test redirects with a path and a tag.

I didn't need to read code for any of these. I just needed to look at the real thing, on the screens and connections my readers actually use.

So is vibe coding bad? Not in my experience. But it gets you to "looks done" a lot faster than "is done."

¿QUÉ CONSTRUYO DESPUÉS?

Tu problema
podría ser el siguiente.

Cuéntame una tarea pequeña y molesta de tu trabajo. Si a suficientes personas les pasa, crearé una herramienta y publicaré cada número.

[email protected]