用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个围绕人们实际会做的两件事构建的房屋搜索门户:浏览列表和查看地图。首屏将页面分为两部分:可滚动的房源卡片和完全用代码绘制的地图。地图上有珊瑚色价格图钉,缩小时会聚在一起,还有平移和缩放控件,点击图钉会弹出预览卡片。将鼠标悬停在卡片上时,地图上对应的图钉会抬起。价格、卧室数、类型、街区等筛选条件会写入 URL,因此任何搜索都可以被收藏、分享或按名称保存,并在之后再次应用。每个房源页面都有照片画廊、基本信息、价格历史图表、学校和通勤卡片,以及带首付和利率滑块的房贷估算。房屋可以收藏,页面末尾是一个带时间段选择的看房请求表单。四十个虚构房源分布在六个街区,让列表具有真实的密度,所有照片都来自同一次明亮通透的拍摄,没有门牌号或标牌。白色、深青色、珊瑚色图钉和沙色,价格和标题使用衬线字体。在内容文件中更改门户名称、城市和经纪人,并替换为你自己的房源和照片;布局、配色和动效保持所述不变。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Property Search Map Portal Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A home search portal: a split list and map view (the map is drawn in code with price pins and clusters); filters synced to the URL; a listing page with a photo gallery, facts, a price history chart, school and commute cards and a mortgage estimate; saved homes and saved searches; and a tour request form. 40 fictional listings with photographs from one shoot of interiors and exteriors, with no house numbers or signs. White, deep teal #0F4C5C, coral pins #FF6F59 and sand #F4E9D8. - Audience: Independent brokerages and property startups that want a search experience without a map service, and developers building a listings product. - Goal: Let a visitor filter forty homes in seconds, open a listing, estimate the monthly cost and request a tour. - Tone: Calm and factual, like a good agent's email: prices, measurements and minutes, no real-estate exclamations. ## Stack - Framework: Vite 6 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: motion (MIT), lucide-react (ISC), @fontsource-variable/source-serif-4 (OFL-1.1), @fontsource-variable/public-sans (OFL-1.1), @fontsource/dm-mono (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - vite.config.ts: base './', build.sourcemap false, nothing from src/ copied into dist/. - tailwind.config.js: extend colors teal #0F4C5C, tealSoft #E3EEF0, coral #FF6F59, sand #F4E9D8, white #FFFFFF, ink #14252B, muted #5A6B70, line #E3E8E6, park #DCE8D4, water #BFDCE2; fontFamily display 'Source Serif 4 Variable', sans 'Public Sans Variable', mono 'DM Mono'. - src/components/Map.tsx renders the map as one inline SVG with viewBox 0 0 1000 700: sand blocks, white streets, a water band, three park shapes and neighbourhood labels from src/data/map.ts; pins are SVG groups positioned by each listing's x and y. Pan and zoom use a transform on one group, clamped so the map cannot be dragged away. - A small hash router reads location.hash; the search route keeps its filters in the hash query (#/search?price=300-800&beds=3&type=house&sort=newest&neigh=larchmont). src/lib/params.ts converts filters to and from that query with history.replaceState, so a search can be bookmarked and shared. - src/data/seed.ts holds the 40 listings, neighbourhoods, schools and commute lines; src/store/usePortal.ts is a reducer for filters, zoom, selection, saved homes and saved searches, persisting saved homes and searches to localStorage under the key [BRAND_SLUG]-portal, where [BRAND_SLUG] is [BRAND] lowercased with hyphens. - src/lib/mortgage.ts exports the estimate as a pure function; the price history chart is inline SVG drawn from the listing's history. - All copy, listings, filter options, tour slots and form labels live in src/content.ts and src/data/seed.ts as typed objects; components never hard-code copy. ## Variables - [BRAND] — Portal name (default: "Hearthway Homes") - [CITY] — City (default: "Rivermont") - [AGENT_NAME] — Agent who runs the tours (default: "Dana Whitfield") - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/property-search-map-portal in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Property Search Map Portal"
colors:
white: "#FFFFFF"
teal: "#0F4C5C"
tealsoft: "#E3EEF0"
coral: "#FF6F59"
sand: "#F4E9D8"
ink: "#14252B"
muted: "#5A6B70"
line: "#E3E8E6"
park: "#DCE8D4"
water: "#BFDCE2"
typography:
display_headings_prices_and_the_wordmark: { family: "Source Serif 4 Variable", weights: [600, 700] }
body_ui: { family: "Public Sans Variable", weights: [400, 500, 600] }
mono_measurements_counts_monthly_estimates: { family: "DM Mono", weights: [400, 500] }
spacing: "List cards p-4 with a 12px radius; section padding py-16; container max-w-[1160px] px-6 on the listing page; 8px rhythm."
radius: "Cards and photos 12px; buttons 8px; chips rounded-full; inputs 8px."
---
# Property Search Map Portal — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **white** `#FFFFFF` — Page ground and cards
- **teal** `#0F4C5C` — Deep teal: header, prices, primary buttons with white text
- **tealSoft** `#E3EEF0` — Soft panels and chips
- **coral** `#FF6F59` — Coral: map pins and clusters, active filter, highlights; fills carry teal text
- **sand** `#F4E9D8` — Map ground and secondary panels
- **ink** `#14252B` — Text
- **muted** `#5A6B70` — Secondary text
- **line** `#E3E8E6` — Borders and dividers
- **park** `#DCE8D4` — Parks on the map
- **water** `#BFDCE2` — River on the map
## Typography
- **Display / headings, prices and the wordmark** — Source Serif 4 Variable (OFL), weights 600/700. Self-host the font files.
- **Body / UI** — Public Sans Variable (OFL), weights 400/500/600. Self-host the font files.
- **Mono / measurements, counts, monthly estimates** — DM Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: List cards p-4 with a 12px radius; section padding py-16; container max-w-[1160px] px-6 on the listing page; 8px rhythm.
- Radius: Cards and photos 12px; buttons 8px; chips rounded-full; inputs 8px.
## Motion
- Map: zoom animates 250ms; a hovered or selected pin scales to 1.15 and lifts; a cluster click zooms in on it.
- List: cards fade in 200ms when the filter results change; the scroll position of the list resets to the top.
- Gallery: the main photo cross-fades 250ms.
- Mortgage: numbers update instantly as sliders move; the total changes colour for 300ms.
- Scroll reveals on the listing page: sections fade up 16px over 350ms, once; content is visible by default.
- prefers-reduced-motion: zoom, fades and reveals are instant; pins still respond to hover.
## Imagery
Bright, airy real-estate photographs from one shoot: wide-angle interiors and exteriors in natural light, warm wood, white walls, linen and plants, no people, no house numbers, no signs, no text. Each listing uses four of the six photographs in its gallery with its own cover.
## Tone
Calm and factual, like a good agent's email: prices, measurements and minutes, no real-estate exclamations.
---
— Prompt by VibeFather · https://vibefather.ai/t/property-search-map-portal · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 独立经纪公司:将 BRAND 和 CITY 设置为你所在的市场,将 AGENT_NAME 设置为主管经纪人,然后替换四十个房源并换上你自己库存的照片。
- 构建房源产品的房产初创公司:保留地图、与 URL 同步的筛选和房贷估算,并用你的街区、学校和通勤线路重写种子数据。
- 负责带看的独立经纪人:将 AGENT_NAME 设置为你自己,将看房请求时间段编辑为你的可用时间,并将收藏房屋列表接入你自己的跟进流程。
- 租赁或新建房专家:保留分栏列表和地图布局,将筛选选项从卧室数和类型改为租金范围和入住时间窗口,并重写房源基本信息。
房产搜索地图门户:常见问题
如果不使用 Google 地图这类地图服务,地图是如何工作的?
房产搜索地图门户完全用代码将地图绘制成一个内联 SVG:沙色街区、白色街道、一条水带、三个公园形状和街区标签。四十个虚构房源中的每一个都有 x 和 y 坐标,因此珊瑚色价格图钉会落在正确的街区上。缩小时图钉会聚合,平移和缩放受到限制,地图无法被拖走,点击图钉会打开预览卡片。不调用任何外部 API。
我可以分享或收藏某个具体的房产搜索吗?
可以。房产搜索地图门户会将每个筛选条件写入 URL,因此像价格、卧室数、类型、街区和排序方式这样的搜索可以被收藏、粘贴到消息中,或稍后打开并再次应用。访客还可以按名称保存搜索,收藏的房屋和保存的搜索会通过 localStorage 持久化在浏览器中,键名由门户名称生成。
怎么用 AI 做一个房产搜索地图门户?
复制本页的完整提示词(Pro),或者运行 npx vibefather add property-search-map-portal,把 [CITY]、[BRAND]、[AGENT_NAME] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。