Landing page — the canonical structure
A landing page that converts has five sections, in order:
- Hero — one-sentence promise + visual + ONE primary CTA.
- Three highlights — three benefits in three cards. No more.
- Hours / details — practical info above the fold of the second screen.
- Map / contact — embedded iframe or link.
- Footer — minimal: copyright, social links.
Tech rules (the engineering parts)
- One file.
index.htmlwith inline<style>and<script>. No build step. - Tailwind via CDN —
<script src="https://cdn.tailwindcss.com"></script>. Don't pull npm. - Stock photos via Unsplash source URLs —
https://source.unsplash.com/featured/?keyword. - Mobile-first. Test at 375px width.
- No animations longer than 200ms. No carousels. No popups.
Color guidance
- Pick ONE primary color and ONE accent. Use neutrals for the rest.
- For warm businesses (food, hospitality): orange/red primary, cream neutral.
- For tech: blue/indigo primary, slate neutral.
- Never use pure black on pure white — soften both.
Procedure
When asked to build a landing page:
- Identify the business type from the prompt.
- Pick a color palette using the guidance above.
- Write
index.htmlwith the five sections. - Use real-feeling copy (no "Lorem ipsum"). Make it specific to the prompt.
- After writing, use the
bashtool toopen index.html(macOS) orxdg-open index.html(Linux). - If the user asks for changes, use Edit to make targeted changes — don't rewrite.