For: Full Stack · Public Website

Public website

The pages visitors see, what each one does, and how search engines read them.

Pages

Address Page
/{ar,en} Home: search hero (buy or rent, area, type, budget, bedrooms), featured homes, homes by type, buying vs renting explained, neighbourhoods, agency intro, call to action for owners.
/properties Listings with filters (purpose, type, area, price range, bedrooms, bathrooms, furnishing, keywords, must-have amenities), sort (newest, price both ways, largest), grid or list view, pagination.
/properties/{slug} Listing: gallery, price, key facts, description, features, "picture life here", "around this area", the agent, request a viewing or ask a question, share, similar homes.
/agency What the agency does, the five-step process, principles, areas covered by governorate, the team.
/saved Homes saved with the heart button.
/compare Up to three homes side by side.
/contact General message form and office details. From a listing (/contact?property={slug}) the message is about that listing and prefilled.
/privacy Privacy notice.

Filters live in the address (/en/properties?purpose=RENT&area=qurum&beds=2&view=list), so every search can be bookmarked and shared, and works without JavaScript. Prices in the address are in major units (OMR). Unknown values are dropped rather than causing an error. The rules are in src/lib/search.ts and covered by tests/search.test.ts.

Only listings with status PUBLISHED or UNDER_OFFER, in a visible area, are shown. SOLD, RENTED and DRAFT listings answer 404.

Listing page

  • Gallery: arrows, keyboard (left/right) and thumbnails. Photos made in the AI staging studio carry a "Virtually staged" label.
  • Picture life here: up to three everyday moments chosen from what the home really has (a pool, a majlis, a balcony, a garden) and what is near it (a beach or golf course within a few minutes), followed by the area's own paragraph. The choice is a pure function, lifestyleMoments() in src/lib/rules.ts; it never invents a feature.
  • Around this area: the area's places (schools, beaches, malls, hospitals, airport...) with driving minutes, edited in Dashboard > Areas.
  • Request a viewing / Ask a question: two tabs on one form. See Inquiries and viewings.

Saved homes and comparison

Both lists are kept in the visitor's browser (localStorage keys dar:saved and dar:compare), never on the server. The comparison holds three homes at most. Homes that left the market are removed from the lists automatically with a short notice.

SEO

  • sitemap.xml: home, search pages per purpose and area, every public listing (with its last change date), the agency, contact and privacy pages and the docs, in both languages with hreflang alternates.
  • robots.txt: the dashboard, the API, saved and compare pages are excluded.
  • Each listing page has a RealEstateListing JSON-LD block (price with currency, monthly unit for rentals, address, rooms, floor size, photos, date posted), built by listingJsonLd() in src/lib/seo.ts.
  • Titles, descriptions, canonical links and Open Graph images are set per page.

Accessibility

Keyboard focus is always visible, touch targets are at least 44 px, colour contrast is at least 4.5:1 for text, motion is reduced when the visitor asks for it, and forms announce their errors.