const DOORS = [
{ key: "projects", href: "#/projects", num: "01", title: "Projects", meta: "Selected work", desc: "Commissioned series across motorsport, wildlife, and portraiture.", image: "assets/imagery/sven-ugau-colours.jpg" },
{ key: "gallery", href: "#/gallery", num: "02", title: "Gallery", meta: "Three rooms", desc: "Frames that stand on their own, grouped by subject.", image: "assets/imagery/rapax-birds-of-prey.jpg" },
];
// The hero the site opens on. Hovering a door swaps to that door's image, but
// there is always a photograph on screen — hover never has to happen first, and
// on a touch screen it never does.
const DEFAULT_DOOR = DOORS[0].key;
function HomePage() {
const [active, setActive] = React.useState(null);
const [loaded, setLoaded] = React.useState(false);
const isMobile = window.useIsMobile();
const shown = active || DEFAULT_DOOR;
React.useEffect(() => { const t = setTimeout(() => setLoaded(true), 60); return () => clearTimeout(t); }, []);
return (
{DOORS.map((d) => (

))}
{/* One constant gradient. It used to switch between flat ink and this on
hover, which read as the page lurching rather than the image changing. */}
{/* The page shows the mark, not the name; a screen reader needs the name. */}
Bert Verheye — Photographer
{/* Side by side on a wide screen; stacked on a phone, where two columns
leave neither enough room and the menu tab cuts into the right one. */}
{DOORS.map((d, i) => (
setActive(d.key)}
onMouseLeave={() => setActive(null)}
style={{
display: "flex", flexDirection: "column", justifyContent: "center", textDecoration: "none",
// Keep clear of the fixed menu tab on the right edge.
padding: isMobile ? "clamp(28px,5vh,52px) 62px clamp(28px,5vh,52px) 6vw" : "0 clamp(24px,4vw,64px)",
borderLeft: i === 1 && !isMobile ? "1px solid rgba(255,255,255,.14)" : "none",
borderTop: i === 1 && isMobile ? "1px solid rgba(255,255,255,.14)" : "none",
opacity: loaded ? 1 : 0, transform: loaded ? "translateY(0)" : "translateY(22px)",
transition: `opacity 900ms cubic-bezier(.16,1,.3,1) ${160 + i * 120}ms, transform 900ms cubic-bezier(.16,1,.3,1) ${160 + i * 120}ms`,
}}
>
{d.title}
{d.meta}
{d.desc}
Enter
))}
Photographer based in Belgium, working across motorsport, wildlife, and portraiture.
);
}
window.HomePage = HomePage;