Skip to content

Commit e6dfeaa

Browse files
committed
Fix motion component TypeScript build errors
1 parent 7985f05 commit e6dfeaa

1 file changed

Lines changed: 22 additions & 18 deletions

File tree

components/Hero.tsx

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,28 @@ export default function Hero() {
66
return (
77
<section className="min-h-screen flex items-center justify-center bg-cream">
88
<div className="text-center px-6">
9-
<motion.div
10-
initial={{ opacity: 0, y: 30 }}
11-
animate={{ opacity: 1, y: 0 }}
12-
transition={{ duration: 0.8 }}
13-
className="flex flex-col items-center"
14-
>
15-
<motion.img
16-
src="/Icon-Dark.svg"
17-
alt="FreshPass Logo"
18-
className="w-24 h-24 md:w-32 md:h-32 mb-4"
19-
initial={{ opacity: 0, scale: 0.8 }}
20-
animate={{ opacity: 1, scale: 1 }}
21-
transition={{ duration: 1, delay: 0.3, ease: "easeOut" }}
22-
/>
23-
<h1 className="text-6xl md:text-8xl font-bold text-dark-gray mb-6 font-display">
24-
FreshPass
25-
</h1>
26-
</motion.div>
9+
<div className="flex flex-col items-center">
10+
<motion.div
11+
initial={{ opacity: 0, y: 30 }}
12+
animate={{ opacity: 1, y: 0 }}
13+
transition={{ duration: 0.8 }}
14+
>
15+
<motion.div
16+
initial={{ opacity: 0, scale: 0.8 }}
17+
animate={{ opacity: 1, scale: 1 }}
18+
transition={{ duration: 1, delay: 0.3, ease: "easeOut" }}
19+
>
20+
<img
21+
src="/Icon-Dark.svg"
22+
alt="FreshPass Logo"
23+
className="w-24 h-24 md:w-32 md:h-32 mb-4"
24+
/>
25+
</motion.div>
26+
<h1 className="text-6xl md:text-8xl font-bold text-dark-gray mb-6 font-display">
27+
FreshPass
28+
</h1>
29+
</motion.div>
30+
</div>
2731
<motion.div
2832
initial={{ opacity: 0, y: 30 }}
2933
animate={{ opacity: 1, y: 0 }}

0 commit comments

Comments
 (0)