StealThis .dev
ページ 難しい

Real Estate — Listing Detail

A polished, editorial property detail page for a fictional luxury listing. It pairs a swappable hero gallery with thumbnails and a keyboard-friendly lightbox, a price and key-facts header, a description with read-more, a features grid, a stylized neighborhood map, rated nearby schools, an interactive monthly-payment estimator, and an agent contact card with a request-a-tour form. Built with semantic HTML, layered CSS, and vanilla JavaScript — no frameworks, no network.

Labで開く
html css vanilla-js
ターゲット: JS HTML

コード

Listing Detail

A full single-property detail page styled with an editorial real-estate look — serif Cormorant Garamond display type, an ivory canvas, and brass hairline accents. The hero gallery shows a large “photo” alongside a column of thumbnails; clicking any thumbnail swaps the main image and caption, and clicking the main image opens a fullscreen lightbox you can move through with the arrow buttons or your keyboard. Property photos are simulated entirely with warm CSS gradients, so the page is self-contained and needs no network.

Below the gallery, a price-and-address header presents the asking price and a key-facts strip (beds, baths, sq ft, lot, year, price per sq ft), followed by an expandable description, a features grid, a stylized neighborhood map with hover-labeled points of interest and walkability scores, and a list of nearby schools with rating badges. A sticky sidebar holds an interactive monthly-payment estimator — adjust price, down payment, rate, and term to recompute principal, interest, tax, and insurance live — plus an agent card with a request-a-tour form.

All interactions are plain vanilla JavaScript: gallery swap, lightbox navigation, save and share buttons, the read-more toggle, the mortgage math, and a small toast() helper that confirms form submissions and validation. The layout is responsive down to about 360px, where the thumbnail rail becomes a horizontal scroller and the columns stack.

Illustrative UI only — sample listings and data are fictional; not a real real-estate service.