Building a Landing Page with Codex, Astro, and Cloudflare
I created a landing page for a project that I've wanted to start for a long time. Much of the delay came from my struggle to wrap my head around it.
The best way to beat procrastination is to do something—anything, really—and simply get started. For me, that “something” was building a landing page.
I asked Codex to generate five landing-page mockups in vastly different styles. I then refined the design by asking it to create variants of the two I liked best.
As of August 2026, Codex (with gpt-5.6-sol) understands images remarkably well. It can generate design mockups and accurately interpret their layouts.
After some discussion, I asked Codex to build the site with server-side rendering so that users would receive fully rendered HTML without much JavaScript fluff. I also wanted the landing page to include a waitlist feature.
This was my first time using Astro. Judging by the code Codex produced, Astro handles the job cleanly and elegantly.
What's remarkable is that Astro creates a server-side endpoint that receives signup requests without adding any bloat. The endpoint then inserts each email address into a database table.
Cloudflare makes this especially simple. I deployed the landing page to Cloudflare Pages and connected it to a D1 database to store incoming waitlist signups. It just worked.
