Building a Landing Page with Codex, Astro, and Cloudflare
I created a landing page for a project I've wanted to start for a long time. Much of the delay came from struggling to wrap my head around the project.
The best way to beat procrastination is to do something—anything, really—to 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 develop variants of the two mockups I liked best.
Codex now (as of August 2026, 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 receive fully rendered HTML without much JS fluff. I also wanted the landing page to include a waitlist feature.
This is 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 to receive signup requests without adding any bloat. The endpoint then inserts each email address into a database table.
Cloudflare makes this especially simple without any hassle. I deployed the landing page on Cloudflare Pages and connected it to a D1 database to store incoming waitlist signups. And it just worked.
