import React, { useState, useEffect } from 'react'; import { createRoot } from 'react-dom/client'; import { ArrowRight, MapPin, Mail, Instagram, Facebook, Linkedin } from 'lucide-react'; // --- Configuration --- const cacheBuster = `?v=${Date.now()}`; const IMAGES = { logo: 'logo.png' + cacheBuster, founders: 'founders.png' + cacheBuster, }; const App: React.FC = () => { const [email, setEmail] = useState(''); const [submitted, setSubmitted] = useState(false); const [isVisible, setIsVisible] = useState(false); const [logoError, setLogoError] = useState(false); const [foundersError, setFoundersError] = useState(false); useEffect(() => { // Immediate visibility to prevent black screen setIsVisible(true); }, []); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); if (!email) return; try { const formData = new FormData(); formData.append('email', email); formData.append('_subject', 'New Registry: Roque Pages Realty'); formData.append('_captcha', 'false'); // Use the info@roquepagesrealty.com email for submission await fetch("https://formsubmit.co/ajax/info@roquepagesrealty.com", { method: "POST", body: formData }); setSubmitted(true); setEmail(''); } catch (error) { console.error("Submission failed", error); // Fallback: direct post if fetch fails const form = e.currentTarget; form.action = "https://formsubmit.co/info@roquepagesrealty.com"; form.method = "POST"; form.submit(); } }; return (
{/* LEFT COLUMN: BRANDING & CTA */}
{/* LOGO AREA */}
{!logoError ? ( Roque Pages Realty setLogoError(true)} /> ) : (
ROQUE PAGES Realty
)}
{/* HERO TEXT */}

Coral Gables, Florida

Buy smart
Sell Strong.

We are curating an exclusive real estate journey in South Florida. Join our private registry to receive an invitation to our limited unveiling.

{/* SIGNUP FORM */}
{submitted ? (

Thank You

Registry Confirmed.

) : (
setEmail(e.target.value)} className="w-full bg-transparent border-b border-white/10 px-0 py-3 text-white focus:outline-none focus:border-[#ED1C24] transition-all tracking-[0.1em] font-light placeholder:text-white/10" placeholder="your@email.com" />
)}
{/* FOOTER */}
Coral Gables
info@roquepagesrealty.com
{/* RIGHT COLUMN: FOUNDERS + POP CARD */}
{/* Subtle Background Mark */}
ROQUE
{/* Main Founders Image - Use object-top on mobile to keep faces visible */} {!foundersError ? ( Roque Pages Realty Founders setFoundersError(true)} /> ) : (
)} {/* Floating Glass Pop Card - Pushed to bottom on mobile, smaller scale */}

Roque Pages
Realty

Buy smart, Sell Strong

{/* Red Vertical Bar */}
); }; // Explicit mount point const container = document.getElementById('root'); if (container) { const root = createRoot(container); root.render(); }