| name | landing-page |
| description | How to design a landing page. Use when the user asks to build a website or marketing page. |
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.html with 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.html with the five sections.
- Use real-feeling copy (no "Lorem ipsum"). Make it specific to the prompt.
- After writing, use the
bash tool to open index.html (macOS) or xdg-open index.html (Linux).
- If the user asks for changes, use Edit to make targeted changes โ don't rewrite.