/* global React, AGENTS, COMMUNITIES, COMMUNITY_DETAIL, listingsFor, communityById, HeadlineFragments, Arrow, ArrowDown, WhatsAppIcon, PinIcon, PhoneIcon, VideoIcon, SecHead, Crumbs, ViewingForm, ValuationForm, ListingCard, AgentCard, CommunityCard, scrollToId */ // ============================================================ // PAGE: AGENT MICROSITE (John Lyons demo) // ============================================================ function AgentPage({ id, setRoute }) { const agent = AGENTS.find(a => a.id === id) || AGENTS[0]; // Pull listings from communities this agent covers const agentListings = []; agent.communities.forEach(cid => { listingsFor(cid).forEach(l => { if (!agentListings.find(x => x.ref === l.ref)) agentListings.push(l); }); }); return (
setRoute({ name: "home" }) }, { label: "Team", onClick: () => setRoute({ name: "team" }) }, { label: agent.name }, ]} />
{agent.name}
{agent.role}

{agent.name.split(" ")[0]} {agent.name.split(" ").slice(1).join(" ")}

{agent.id === "john-lyons" ? "John has led Espace since October 2019 as Managing Director, building on a career running sales and leasing teams across Dubai's premium villa communities. Scottish, UK-trained, and a believer in the unfashionable idea that a Dubai brokerage can be measured, advisory and answer its phone." : `Senior consultant focused on ${agent.focus.toLowerCase()}, with deep network access across ${agent.communities.length} of Dubai's premium communities. Multilingual where indicated, available for video viewings, and a direct line for sellers and landlords.` }

Languages
{agent.langs}
Communities
{agent.communities.length}
{agent.brn ? "RERA" : "Focus"}
{agent.brn || agent.focus}
WhatsApp {agent.name.split(" ")[0]} Call office

{/* COMMUNITIES COVERED */}
Click a community to open its microsite →} />
{agent.communities.map(cid => { const c = communityById(cid); if (!c) return null; return setRoute({ name: "community", id })} />; })}

{/* AGENT'S LISTINGS */}
Sample / live feed in production
} />
{agentListings.slice(0, 6).map(l => ( scrollToId("agent-viewing")} /> ))}
{/* CONTACT BAND */}
Direct line

Skip the form. Talk to {agent.name.split(" ")[0]}.

Phone, WhatsApp, video call, or in-person at Marina Plaza. {agent.name.split(" ")[0]} reads every message that comes via this page personally.

  • +971 4 306 9999 — switchboard, ask for {agent.name.split(" ")[0]}
  • +971 56 829 6862 — usually replies in minutes
  • Video viewings for overseas buyers
  • Office 2702 & 2703, Marina Plaza · Mon–Fri 9am–6pm
); } // ============================================================ // PAGE: TEAM / ALL CONSULTANTS // ============================================================ function TeamPage({ setRoute }) { return (
setRoute({ name: "home" }) }, { label: "Team" }, ]} />
{AGENTS.map(a => ( setRoute({ name: "agent", id })} /> ))}
Build note

Per the brief, only the eight verified directors are shown — the remaining ~90+ consultants need permissioned bios + portraits before they ship. Each agent microsite reads from the same listings feed as the community pages, so John's "5-bed Saheel" and Arabian Ranches's "5-bed Saheel" stay in lockstep.

); } // ============================================================ // PAGE: SELL / VALUATION // ============================================================ function SellPage({ setRoute }) { return (
setRoute({ name: "home" }) }, { label: "Sell" }, ]} />
Sell or let with us

Free, no-obligation valuation.

Thinking of selling or letting? Get a realistic range from a consultant who knows your community. No bots, no guesswork — a human who transacts on your street every week.

What happens next

    {[ "We confirm a window to come and walk the property (or do it remotely).", "Your consultant brings comparable evidence from the last 90 days in your community.", "You get a realistic range — written, attributed, and honest about what could push it either way.", "If you decide to list, we agree marketing strategy and timing. If not, no follow-up emails.", ].map((s, i) => (
  1. 0{i+1} {s}
  2. ))}
Listing your property?

If you've already made the call to sell or let, you can skip the valuation step and brief us directly.

Request my valuation

Typically replied to within one business day.

); } // ============================================================ // PAGE: CONTACT // ============================================================ function ContactPage({ setRoute }) { return (
setRoute({ name: "home" }) }, { label: "Contact" }, ]} />
  • Phone
    Mon–Fri 9am–6pm · Sat & Sun closed
  • WhatsApp
    Usually replies within minutes during office hours.
  • Email
    Sales / leasing / valuation routed by topic.
  • Address
    Office 2702 & 2703, Marina Plaza
    Tower 74, Al Marsa Street
    Dubai Marina · PO Box 282391
    ⚠ Confirm exact entrance on day of visit. Public-holiday hours may vary.
Message us
{/* Stylised marina map */} {/* water */} {/* roads */} {/* towers */} {[...Array(14)].map((_, i) => { const x = 30 + (i % 7) * 50; const y = i < 7 ? 380 - 30 - (i*4 % 80) : 440 - 30 - (i*4 % 60); const h = 30 + (i*7) % 60; return ; })} {/* pin Marina Plaza */} MARINA PLAZA · 27F 25.0751°N 55.1402°E
); } window.AgentPage = AgentPage; window.TeamPage = TeamPage; window.SellPage = SellPage; window.ContactPage = ContactPage;