@@ -30,7 +30,8 @@ export function Hero() {
3030 return (
3131 < div className = "relative flex h-full w-full flex-col items-center text-center text-lg" >
3232 < UnicornBackground />
33- < div className = "mb-42 flex h-full w-full flex-col items-center justify-center gap-10 pt-12" >
33+ { /* pointer-events-none allows mouse events to pass through to the canvas behind */ }
34+ < div className = "pointer-events-none mb-42 flex h-full w-full flex-col items-center justify-center gap-10 pt-12" >
3435 < div className = "relative z-20 flex flex-col items-center gap-3 pt-8 pb-2" >
3536 { ! isShortScreen && (
3637 < motion . div
@@ -43,7 +44,7 @@ export function Hero() {
4344 href = "https://www.ycombinator.com/companies/onlook/jobs/e4gHv1n-founding-engineer-fullstack"
4445 target = "_blank"
4546 rel = "noopener noreferrer"
46- className = "hover:bg-foreground-secondary/20 border-foreground-secondary/20 text-foreground-secondary inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs backdrop-blur-sm transition-all duration-200 hover:scale-102"
47+ className = "pointer-events-auto hover:bg-foreground-secondary/20 border-foreground-secondary/20 text-foreground-secondary inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs backdrop-blur-sm transition-all duration-200 hover:scale-102"
4748 >
4849 We're hiring engineers
4950 < Icons . ArrowRight className = "h-4 w-4" />
@@ -81,7 +82,7 @@ export function Hero() {
8182 < HighDemand />
8283 < CreateError />
8384 </ div >
84- < div className = "relative z-20 hidden flex-row items-center gap-4 sm:flex" >
85+ < div className = "pointer-events-auto relative z-20 hidden flex-row items-center gap-4 sm:flex" >
8586 < motion . div
8687 initial = { { opacity : 0 , y : 10 } }
8788 animate = { { opacity : 1 , y : 0 } }
@@ -102,7 +103,9 @@ export function Hero() {
102103 </ Button >
103104 </ motion . div >
104105 </ div >
105- < MobileEmailCapture />
106+ < div className = "pointer-events-auto w-full flex justify-center" >
107+ < MobileEmailCapture />
108+ </ div >
106109 </ div >
107110 </ div >
108111 ) ;
0 commit comments