Ivan Mišić product · tech · ai

Building your first page

JAN 25, 2026 · updated SEP 9, 2026 · 7 min · 977 words

on this page · 4

I would build and review the home page before creating the rest of the site. It gives you one working reference for navigation, spacing, type, and responsive behavior. The written requirements guide Claude, but the browser shows which decisions actually work.

Ask for Design Options First

Ask for several design options before choosing one, as the first result may lock you into a direction you have not compared.

text
Build me 3 design directions for the home page with the same content.
Make the layout, typography, and color choices clearly different.
Save them as home-v1.html, home-v2.html, home-v3.html.

Open all three in the browser and pick the one closest to your goal. If they look alike, ask Claude to explain what changed before generating another set.

Design option V1 Glassmorphism: clean centered layout with gradient background, purple call-to-action button, and modern typography

Design option V2 Brutalist Editorial: dark theme with large outlined name typography, split layout showing role and experience stats

Design option V3 Minimal Refined: elegant dark theme with serif typography and understated layout

Pick the option closest to your goal and use it as the starting point. It does not need to be final.

text
I like v2 the best. Let's use that as our starting point.
Rename it to index.html and move the other versions to _docs/archive/.

Review Your Selected Design

Open the selected index.html in a browser before changing it. Check the navigation, main heading, planned content, and overall structure against your requirements. Add anything missing in the next step. At this point you only need a usable reference, not a finished page.

The Iteration Loop

I use a short review loop:

  1. Look at what Claude built: Open the file in your browser
  2. Identify one thing to change: Not everything. One thing.
  3. Tell Claude what's wrong: "The hero text is too small" not "fix the design"
  4. Repeat

Be specific. Compare:

❌ "Make it better"
✅ "Make the hero heading larger, at least 48px"

❌ "I don't like the colors"
✅ "Change the background to dark blue (#0a1628) and the accent color to a warm orange (#ff6b35)"

❌ "Fix the layout"
✅ "Center the navigation links horizontally and add more space between them"

Change one visible problem at a time until the page is good enough to reuse. The number of rounds depends on the first result and how specific your feedback is.

Common First-Page Fixes

On a first page, I check spacing, text size, mobile layout, and contrast.

Spacing is usually the first thing that feels off:

text
Add more padding around the hero section. It feels cramped.
The footer needs more space above it.

For text that's too small or too light:

text
The body text is too small. Use 18px minimum.
Make headings bolder - use font-weight 700.

Always check a phone-sized screen:

text
Check the site on a phone-sized screen. The navigation is broken.
Make sure text doesn't overflow on narrow screens.

If the colors aren't quite working:

text
The contrast between text and background is too low.
Make the links more visible - they blend in too much.

Lock In Your Design Standards

Once the home page works, record its design decisions before building another page. Otherwise Claude may choose different spacing, navigation, or type on the next result.

Tell Claude to capture everything from your home page into a rules file:

text
Create .claude/rules/css.md from the decisions already present in
index.html and css/styles.css. Record the actual colors, type sizes,
spacing, header, footer, and responsive behavior. Do not invent values.
Treat the working home page as the reference for later pages.

Review the generated file before using it. A short rule can be enough:

markdown
# Design System Rules

- Use the header and footer from index.html as the reference.
- Keep shared styles in css/styles.css.
- Record only colors, sizes, spacing, and breakpoints found in the files.
- Compare each new page with index.html and correct visible drift.

Treat this file as the shared reference for later pages. Claude Code loads project rules as context, not as enforced configuration, so compare every new page with the working home page and correct any drift you see.

Why This Matters

Without a shared reference, one page may have five navigation links while the next adds a sixth or changes the header. After four pages, you can end up maintaining four versions of the same component.

The rules file gives Claude a reference for the shared parts. It does not remove the need to compare the rendered pages.

Extract Inline Styles (If Needed)

Claude may create the first options with CSS inside the HTML. If the chosen design will become the reference, move those styles into css/styles.css so later pages can reuse them.

Claude Code terminal showing it created .claude/rules/css.md with design system rules and asking if it should extract inline styles to css/styles.css

If Claude does not propose that change, tell it:

text
Extract all the inline CSS from index.html into css/styles.css.
The HTML should only have class names, no style attributes or <style> tags.

Review the change, as the HTML should keep class names while the shared visual rules stay in one stylesheet.

Test Before Moving On

Before building more pages, verify your home page works. Ask Claude to do a full check:

text
Review index.html and css/styles.css for:
1. Responsive design - test at mobile (375px), tablet (768px), and desktop (1200px+)
2. HTML validation - any errors or missing elements
3. Accessibility - proper heading hierarchy, alt text, color contrast
4. Navigation - all links present and styled correctly

Fix any issues you find.

Ask Claude to inspect the HTML and CSS for likely problems, then test the page yourself at narrow, medium, and wide widths. If Claude Code has a browser integration configured, it can also open the page and exercise those viewports. Source review alone cannot confirm the rendered result.

What You Have Now

After these steps, the project may look like this:

my-portfolio/
  CLAUDE.md
  index.html
  css/
    styles.css
  .claude/
    rules/
      css.md
  _docs/
    plan.md
    requirements.md
    archive/
      home-v1.html
      home-v3.html

Open the home page at 375px, 768px, and desktop width. Once the content, navigation, and spacing hold up, use it as the reference for the next page.

Get Personalized Help

Copy this prompt to ChatGPT, Claude, or your favorite AI assistant. Fill in your details and get guidance tailored to your specific situation.

I'm using https://ivanmisic.net/blog/ai-tools/building-your-first-page to create one home page that can become the visual reference for the rest of a small site.

My context:
- Site and audience: [WHO IT IS FOR, WHAT THEY SHOULD UNDERSTAND, AND THE MAIN ACTION]
- Real home-page content: [NAME, HEADLINE, INTRODUCTION, NAVIGATION, LINKS, AND IMAGES]
- Written constraints: [REQUIREMENTS, EXISTING BRAND CHOICES, MUST-KEEP ELEMENTS, AND THINGS TO AVOID]
- Technical setup and checks: [CURRENT FILES, CSS LOCATION, BROWSER, 375PX, 768PX, DESKTOP, AND ACCESSIBILITY]

Ask for missing content and constraints, then propose three genuinely different design directions using the same information. Save them as separate reviewable files and explain the differences in layout, type, color, and reading order.

Wait for me to choose one. Then make the selected version the home page, archive the alternatives, and move reusable styles into the shared stylesheet without changing the rendered result. Iterate on one visible problem at a time.

Once the page works, write a short design-rules file from the values and behavior actually present in the chosen HTML and CSS. Do not invent a parallel system. Verify heading structure, alt text, contrast, navigation, overflow, and the real content at the requested widths. The page becomes the reference only after the browser checks pass. Do not let the model choose which direction I prefer or treat source review as proof of the rendered design.