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
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
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 like this
Build an Interactive Team Org Chart One-Pager with Contact Cards in HTML
Get a single HTML file with an expandable SVG org chart, department color coding, clickable contact cards and a search box that highlights matching people.
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.
Build a Company Fact Sheet One-Pager with Animated Stats and a Location Map
You get a single HTML file laid out like an investor or press fact sheet, with animated stat counters, mission, leadership, milestones, an interactive SVG office map and a brand-color theme switch.
Build a Creator Media Kit One-Pager With Audience Stats in HTML
A pitch-ready creator media kit page with animated follower counts, platform tabs, audience demographic bars, engagement benchmarks and a clickable package quote builder.
Build a Gantt-Style Project Timeline Infographic with Milestones in Pure SVG
A single HTML file that draws a project Gantt chart in pure SVG, with progress bars, dependency arrows, milestone diamonds, a Today marker and hover tooltips.