// Hero.jsx — reusable hero with two layouts: image-led (split) & copy-led (centered)
function Photo({ label, h = '100%', icon = 'heart', src, position = 'center', style = {} }) {
if (src) {
return (
);
}
return (
);
}
const heroTrust = [
'A provider who knows you',
'Same-day replies',
'No surprise bills',
];
function Hero({ layout = 'image' }) {
const copyBlock = (
Direct Primary Care · Orlando, FL
Healthcare that feels like it’s actually about you.
At Peaceful Hearts, you get a provider who knows your name, your story, and
what matters to you. Visits aren’t rushed. You can reach us directly and hear back the same
day. Pricing is simple, with no insurance hoops or surprise bills.
{heroTrust.map(t => (
{t}
))}
);
if (layout === 'copy') {
return (
Now accepting new patients
Adults across the Orlando metro
);
}
return (
{copyBlock}
Now accepting new patients
Adults across the Orlando metro
);
}
Object.assign(window, { Hero, Photo });