@@ -4,7 +4,6 @@ import { motion } from 'framer-motion'
44import { useState , useEffect } from 'react'
55
66import { HeroButtons } from './hero-buttons'
7- import { Section } from './section'
87
98// Typing effect component for hero headline
109function TypingEffect ( { words } : { words : string [ ] } ) {
@@ -60,63 +59,61 @@ function TypingEffect({ words }: { words: string[] }) {
6059
6160export function Hero ( ) {
6261 return (
63- < Section hero >
64- < div className = "relative z-10" >
65- < motion . div
66- initial = { { opacity : 0 , y : 30 } }
67- animate = { { opacity : 1 , y : 0 } }
68- transition = { { duration : 0.7 } }
62+ < div className = "relative z-10" >
63+ < motion . div
64+ initial = { { opacity : 0 , y : 30 } }
65+ animate = { { opacity : 1 , y : 0 } }
66+ transition = { { duration : 0.7 } }
67+ >
68+ < motion . h1
69+ className = "hero-heading text-center mb-8 text-white text-balance"
70+ initial = { { opacity : 0 , scale : 0.95 } }
71+ animate = { { opacity : 1 , scale : 1 } }
72+ transition = { {
73+ duration : 0.8 ,
74+ ease : [ 0.165 , 0.84 , 0.44 , 1 ] ,
75+ } }
6976 >
70- < motion . h1
71- className = "hero-heading text-center mb-8 text-white text-balance"
72- initial = { { opacity : 0 , scale : 0.95 } }
73- animate = { { opacity : 1 , scale : 1 } }
74- transition = { {
75- duration : 0.8 ,
76- ease : [ 0.165 , 0.84 , 0.44 , 1 ] ,
77- } }
77+ < motion . span
78+ className = "relative inline-block"
79+ initial = { { y : 20 } }
80+ animate = { { y : 0 } }
81+ transition = { { duration : 0.5 , delay : 0.1 } }
7882 >
79- < motion . span
80- className = "relative inline-block"
81- initial = { { y : 20 } }
82- animate = { { y : 0 } }
83- transition = { { duration : 0.5 , delay : 0.1 } }
84- >
85- < span className = "relative z-10" > Supercharge</ span >
86- </ motion . span > { ' ' }
87- Your{ ' ' }
88- < motion . span
89- className = "relative inline-block"
90- initial = { { y : 20 } }
91- animate = { { y : 0 } }
92- transition = { { duration : 0.5 , delay : 0.2 } }
93- >
94- < span className = "relative z-10" > AI Coding</ span >
95- </ motion . span >
96- </ motion . h1 >
97- </ motion . div >
83+ < span className = "relative z-10" > Supercharge</ span >
84+ </ motion . span > { ' ' }
85+ Your{ ' ' }
86+ < motion . span
87+ className = "relative inline-block"
88+ initial = { { y : 20 } }
89+ animate = { { y : 0 } }
90+ transition = { { duration : 0.5 , delay : 0.2 } }
91+ >
92+ < span className = "relative z-10" > AI Coding</ span >
93+ </ motion . span >
94+ </ motion . h1 >
95+ </ motion . div >
9896
99- < motion . h2
100- className = "hero-subtext text-center mx-auto max-w-xl mb-6"
101- initial = { { opacity : 0 , y : 20 } }
102- animate = { { opacity : 1 , y : 0 } }
103- transition = { { duration : 0.5 , delay : 0.3 } }
104- >
105- < span className = "whitespace-nowrap" > Simple. Fast. Powerful.</ span > { ' ' }
106- < span className = "whitespace-nowrap" >
107- Codebuff works in your terminal.
108- </ span >
109- </ motion . h2 >
97+ < motion . h2
98+ className = "hero-subtext text-center mx-auto max-w-xl mb-6"
99+ initial = { { opacity : 0 , y : 20 } }
100+ animate = { { opacity : 1 , y : 0 } }
101+ transition = { { duration : 0.5 , delay : 0.3 } }
102+ >
103+ < span className = "whitespace-nowrap" > Simple. Fast. Powerful.</ span > { ' ' }
104+ < span className = "whitespace-nowrap" >
105+ Codebuff works in your terminal.
106+ </ span >
107+ </ motion . h2 >
110108
111- < motion . div
112- initial = { { opacity : 0 , y : 20 } }
113- animate = { { opacity : 1 , y : 0 } }
114- transition = { { duration : 0.5 , delay : 0.5 } }
115- className = "mb-12 md:mb-4" // Added more bottom margin on mobile
116- >
117- < HeroButtons />
118- </ motion . div >
119- </ div >
120- </ Section >
109+ < motion . div
110+ initial = { { opacity : 0 , y : 20 } }
111+ animate = { { opacity : 1 , y : 0 } }
112+ transition = { { duration : 0.5 , delay : 0.5 } }
113+ className = "mb-12 md:mb-4" // Added more bottom margin on mobile
114+ >
115+ < HeroButtons />
116+ </ motion . div >
117+ </ div >
121118 )
122119}
0 commit comments