Build a Real Estate Listing One-Pager with Clickable Floor Plan and Mortgage Slider

A polished single-file property listing page with an interactive SVG floor plan, key-feature icons and a live monthly mortgage estimate driven by sliders.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and real estate marketing designer.

Build a property listing one-pager for 27 Larkspur Lane, a renovated 1962 three-bedroom ranch in the fictional town of Maple Hollow, asking $485,000. The page combines a header with price and address, a stat strip, an interactive floor plan, a key-features grid and a monthly cost estimator.

Rules:
1. Floor plan: draw it in inline SVG with 8 rooms plus a hallway. Each room is clickable, focusable with Tab, activated with Enter or Space, and shows a selected state. Selecting a room updates a details panel with its name, dimensions, square footage and a one-line description written like a real listing.
2. Key features: 6 cards, each with an emoji icon in a soft tinted tile, a bold title and a short detail line (solar, heat pump, EV-ready garage and so on).
3. Mortgage estimator: range sliders for down payment percent and interest rate, plus 15 and 30 year toggle buttons. Show the total monthly cost, a stacked color bar and a legend for principal and interest, property tax, insurance and PMI, plus loan amount and total interest. Update live.
4. Palette: warm cream background, sage green accent, clay orange for prices, dark ink text; serif headings, system sans body.
5. Two-column layout on desktop that stacks below 900px, readable from 360px wide; disable transitions under prefers-reduced-motion.
6. No external resources, storage, forms or alerts.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: 27 Larkspur Lane, an interactive listing sheet for a renovated ranch home.

The page opens with the price, address and a stat strip (beds, baths, square feet, price per foot). Click, tap or Tab + Enter on any room in the SVG floor plan to see its size and notes. Drag the down payment and rate sliders or switch between 15 and 30 years to watch the monthly cost bar rebalance. Try dropping below 20% down to see PMI appear.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Naming the exact rooms, price and features removes guesswork, so the model writes believable listing copy instead of placeholders.
  • Asking for keyboard focus plus Enter or Space on SVG rooms makes the floor plan accessible without extra prompting.
  • Listing every cost component for the estimator forces a correct amortization formula and a legend that adds up to the total.

Paste into ChatGPT, Claude or Gemini. Save the returned code as listing.html and open it in any browser, or view it directly in the chat's preview or canvas panel. Swap in your own property details afterwards.

Common edits

  • Change the address, price, room list and tax rate to match a real listing, or turn it into a rental sheet with rent and deposit instead of a mortgage.
  • Add a photo-free gallery of CSS gradient tiles, a second floor tab, or an HOA fee slider to the estimator.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics