// ─── SENES MEDIA · Laptop X-Ray Hero ────────────────────────────── // A laptop. On hover, the cursor becomes a lens — beneath the website // mockup lies the source code that builds it. function LaptopXray() { const wrapRef = React.useRef(null); const screenRef = React.useRef(null); const maskRef = React.useRef(null); const labelRef = React.useRef(null); const [hovering, setHovering] = React.useState(false); React.useEffect(() => { const wrap = wrapRef.current; const screen = screenRef.current; if (!wrap || !screen) return; let tiltX = 0, tiltY = 0; let cursorX = 50, cursorY = 50; let raf; const tick = () => { if (screen) { screen.style.setProperty("--tilt-x", `${tiltX}deg`); screen.style.setProperty("--tilt-y", `${tiltY}deg`); screen.style.setProperty("--mx", `${cursorX}%`); screen.style.setProperty("--my", `${cursorY}%`); } raf = requestAnimationFrame(tick); }; const onMove = (e) => { const r = screen.getBoundingClientRect(); const x = (e.clientX - r.left) / r.width; const y = (e.clientY - r.top) / r.height; cursorX = x * 100; cursorY = y * 100; // outer tilt — subtle parallax based on whole wrapper const wr = wrap.getBoundingClientRect(); const wx = (e.clientX - wr.left) / wr.width - 0.5; const wy = (e.clientY - wr.top) / wr.height - 0.5; tiltY = wx * 6; tiltX = -wy * 4; if (labelRef.current) { labelRef.current.style.left = `${e.clientX - r.left}px`; labelRef.current.style.top = `${e.clientY - r.top}px`; } }; wrap.addEventListener("mousemove", onMove); tick(); return () => { wrap.removeEventListener("mousemove", onMove); cancelAnimationFrame(raf); }; }, []); return (
setHovering(true)} onMouseLeave={() => setHovering(false)} data-cursor="drag" data-cursor-label="Hold to inspect"> {/* Ambient red glow */}
{/* The laptop itself */}
{/* Screen bezel */}
{/* Notch / camera */}
{/* Inner screen */}
{/* LAYER 1 — code (beneath) */}
{/* LAYER 2 — website mockup (above; clipped on hover) */}
{/* Lens label */}
VIEW SOURCE
{/* Screen reflection */}
{/* Laptop base */}
); } // ─── Mini website mockup that appears on the laptop screen ───── function SiteMock() { return (
{/* Mock nav */}
SENES
IndexWorkAboutServicesContact
Reserve →
{/* Hero */}
EST · SENES · MEDIA STUDIO
Slow craft
for the
modern web.
View Work →
Read Story
FEATURED ⟶ AETHER · 2025
{/* Bottom bar / ticker */}
10 YRS · 140 SHIPPED · 62 CLIENTS ↓ SCROLL TO ENTER WORK · 01 / 10
); } // ─── Code view (the "x-ray" layer beneath the website) ───── function CodeView() { const lines = [ { l: 1, t: [ ["k","import"], ["t"," "], ["s","{ motion }"], ["t"," "], ["k","from"], ["t"," "], ["str","\"framer-motion\""] ] }, { l: 2, t: [ ["k","import"], ["t"," LogoMark "], ["k","from"], ["t"," "], ["str","\"./components\""] ] }, { l: 3, t: [] }, { l: 4, t: [ ["k","export default function"], ["t"," "], ["fn","Hero"], ["t","() {"] ] }, { l: 5, t: [ ["t"," "], ["k","return"], ["t"," ("] ] }, { l: 6, t: [ ["t"," <"], ["tag","section"], ["t"," "], ["a","className"], ["t","="], ["str","\"hero\""], ["t",">"] ] }, { l: 7, t: [ ["t"," <"], ["tag","Eyebrow"], ["t",">"], ["t","SENES Media Studio"], ["t",""] ] }, { l: 8, t: [ ["t"," <"], ["tag","h1"], ["t"," "], ["a","className"], ["t","="], ["str","\"display\""], ["t",">"] ] }, { l: 9, t: [ ["t"," Slow craft"], ["t"," "], ["t","<"], ["tag","br"], ["t","/>"] ] }, { l:10, t: [ ["t"," <"], ["tag","em"], ["t"," "], ["a","style"], ["t","={{ "], ["a","color"], ["t",": "], ["str","\"#ED3225\""], ["t"," }}>"] ] }, { l:11, t: [ ["t"," for the"] ] }, { l:12, t: [ ["t"," "], ["t"," "], ["t","<"], ["tag","br"], ["t","/>"] ] }, { l:13, t: [ ["t"," modern web."] ] }, { l:14, t: [ ["t"," "] ] }, { l:15, t: [ ["t"," <"], ["tag","p"], ["t",">{"] ] }, { l:16, t: [ ["c"," // we believe creativity & code"] ] }, { l:17, t: [ ["c"," // shape how brands communicate"] ] }, { l:18, t: [ ["t"," }"] ] }, { l:19, t: [ ["t"," <"], ["tag","Magnetic"], ["t","><"], ["tag","Button"], ["t"," "], ["a","intent"], ["t","="], ["str","\"primary\""], ["t",">"] ] }, { l:20, t: [ ["t"," View Work →"] ] }, { l:21, t: [ ["t"," "] ] }, { l:22, t: [ ["t"," "] ] }, { l:23, t: [ ["t"," );"] ] }, { l:24, t: [ ["t","}"] ] }, { l:25, t: [] }, { l:26, t: [ ["c","// ──────────────────────────────────────"] ] }, { l:27, t: [ ["c","// shipped 2026 · senes media · v3.2"] ] }, { l:28, t: [ ["c","// stack: next 14 · gsap · tailwind"] ] }, ]; const color = { k: "#FF6B5E", t: "#C8C5BC", s: "#E6E1D6", str: "#88B889", tag: "#FF8A7D", a: "#D4B976", fn: "#7DA9D1", c: "#5C5851", }; return (
{/* Header bar */}
~/senes-media/src/Hero.jsx UTF-8 · LF · JSX
{lines.map(({ l }) =>
{l}
)}
{lines.map(({ l, t }) => (
{t.length === 0 ?   : t.map((seg, i) => ( {seg[1]} ))}
))}
{/* Scanning line */}
); } Object.assign(window, { LaptopXray });