@@ -98,45 +98,54 @@ const HeroSlider = ({ setData }) => {
9898 backgroundSize : 'cover' ,
9999 } }
100100 >
101- < div className = "" >
102- < div className = "grid grid-cols-1 lg:grid-cols-2 gap-12 items-center min-h-[500px]" >
103- < div className = "max-w-2xl mx-auto px-6 pl-32" >
104- < div className = "mb-12" >
105- < H2 className = "font-extrabold text-primary-500" >
106- { heroData . title ||
107- 'Welcome to the Kenya Drylands Investment Hub' }
108- </ H2 >
109- < ParagraphMD className = "mt-4" >
110- { heroData . description ||
111- "Driving sustainable investment in agrifood, water, and energy across Kenya's drylands" }
112- </ ParagraphMD >
113- </ div >
101+ < div className = "w-full" >
102+ < div className = "grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-12 items-center min-h-[400px] md:min-h-[500px]" >
103+ { /* Text Content */ }
104+ < div className = "w-full px-6 sm:px-8 md:px-12 lg:pl-16 xl:pl-32 py-8 lg:py-12" >
105+ < div className = "max-w-2xl mx-auto lg:mx-0" >
106+ < div className = "mb-8 lg:mb-12" >
107+ < H2 className = "font-extrabold text-primary-500 text-2xl sm:text-3xl md:text-4xl lg:text-5xl" >
108+ { heroData . title ||
109+ 'Welcome to the Kenya Drylands Investment Hub' }
110+ </ H2 >
111+ < ParagraphMD className = "mt-4 text-sm sm:text-base lg:text-lg" >
112+ { heroData . description ||
113+ "Driving sustainable investment in agrifood, water, and energy across Kenya's drylands" }
114+ </ ParagraphMD >
115+ </ div >
114116
115- < div className = "mb-8" >
116- < p className = "text-[#818181] mb-[10px]" >
117- Search all platform content
118- </ p >
119- < form onSubmit = { handleSearch } className = "flex gap-3" >
120- < div className = "relative flex-1 flex items-center bg-white border border-gray-200 rounded-full shadow-sm" >
121- < Search className = "absolute left-4 text-gray-400 w-5 h-5" />
122- < input
123- type = "text"
124- placeholder = "Search all platform content.."
125- value = { query }
126- onChange = { handleInputChange }
127- className = "flex-1 pl-12 pr-4 h-12 text-lg bg-transparent border-none focus:outline-none text-black focus:ring-2 focus:ring-primary-500 rounded-full"
128- />
129- < Button variant = "primary" className = "font-bold" >
130- Search
131- </ Button >
132- </ div >
133- </ form >
117+ < div className = "mb-8" >
118+ < p className = "text-[#818181] mb-3 text-sm sm:text-base" >
119+ Search all platform content
120+ </ p >
121+ < form
122+ onSubmit = { handleSearch }
123+ className = "flex flex-col sm:flex-row gap-3"
124+ >
125+ < div className = "relative flex-1 flex items-center bg-white border border-gray-200 rounded-full shadow-sm" >
126+ < Search className = "absolute left-3 sm:left-4 text-gray-400 w-4 h-4 sm:w-5 sm:h-5" />
127+ < input
128+ type = "text"
129+ placeholder = "Search content..."
130+ value = { query }
131+ onChange = { handleInputChange }
132+ className = "flex-1 pl-10 sm:pl-12 pr-3 sm:pr-4 h-10 sm:h-12 text-sm sm:text-base lg:text-lg bg-transparent border-none focus:outline-none text-black focus:ring-2 focus:ring-primary-500 rounded-full"
133+ />
134+ < Button
135+ variant = "primary"
136+ className = "font-bold text-sm sm:text-base h-8 sm:h-10 px-3 sm:px-4"
137+ >
138+ Search
139+ </ Button >
140+ </ div >
141+ </ form >
142+ </ div >
134143 </ div >
135144 </ div >
136145
137- < div className = "relative" >
146+ < div className = "relative w-full px-6 sm:px-8 lg:px-0 lg:pr-0 " >
138147 { videoUrl ? (
139- < div className = "relative min- h-[600px] max- h-[600px] overflow-hidden rounded-lg" >
148+ < div className = "relative h-[300px] sm: h-[400px] md:h-[500px] lg: h-[600px] overflow-hidden rounded-lg" >
140149 < video
141150 ref = { ( ref ) => setVideoRef ( ref ) }
142151 className = "w-full h-full object-cover"
@@ -151,36 +160,42 @@ const HeroSlider = ({ setData }) => {
151160 Your browser does not support the video tag.
152161 </ video >
153162
154- < div className = "absolute bottom-6 left-6 right-6 z-30 flex items-center justify-between" >
163+ < div className = "absolute bottom-4 sm:bottom- 6 left-4 sm:left-6 right-4 sm: right-6 z-30 flex items-center justify-between" >
155164 < div className = "flex gap-3" >
156165 < button
157166 onClick = { togglePlayPause }
158- className = "bg-black/50 backdrop-blur-sm text-white p-2 rounded-full hover:bg-black/70 transition-colors"
167+ className = "bg-black/50 backdrop-blur-sm text-white p-1.5 sm:p- 2 rounded-full hover:bg-black/70 transition-colors"
159168 aria-label = { isPlaying ? 'Pause video' : 'Play video' }
160169 >
161170 { isPlaying ? (
162- < Pause className = "w-5 h-5" />
171+ < Pause className = "w-4 h-4 sm:w-5 sm: h-5" />
163172 ) : (
164- < Play className = "w-5 h-5" />
173+ < Play className = "w-4 h-4 sm:w-5 sm: h-5" />
165174 ) }
166175 </ button >
167176 </ div >
168177 </ div >
169178 </ div >
170179 ) : (
171- < div className = "h-[600px] bg-gradient-to-br from-primary-100 to-primary-200 rounded-lg flex items-center justify-center shadow-2xl" >
180+ < div className = "h-[300px] sm:h-[400px] md:h-[500px] lg:h-[ 600px] bg-gradient-to-br from-primary-100 to-primary-200 rounded-lg flex items-center justify-center shadow-2xl" >
172181 { loading ? (
173182 < div className = "text-center" >
174- < div className = "animate-spin rounded-full h-12 w-12 border-b-2 border-primary-500 mx-auto mb-4" > </ div >
175- < p className = "text-primary-600" > Loading video...</ p >
183+ < div className = "animate-spin rounded-full h-10 w-10 sm:h-12 sm:w-12 border-b-2 border-primary-500 mx-auto mb-4" > </ div >
184+ < p className = "text-primary-600 text-sm sm:text-base" >
185+ Loading video...
186+ </ p >
176187 </ div >
177188 ) : (
178189 < div className = "text-center text-primary-600" >
179- < div className = "w-24 h-24 mx-auto mb-4 bg-primary-500 rounded-full flex items-center justify-center" >
180- < Play className = "w-12 h-12 text-white" />
190+ < div className = "w-20 h-20 sm:w- 24 sm: h-24 mx-auto mb-4 bg-primary-500 rounded-full flex items-center justify-center" >
191+ < Play className = "w-10 h-10 sm:w- 12 sm: h-12 text-white" />
181192 </ div >
182- < h3 className = "text-xl font-semibold" > Kenya Drylands</ h3 >
183- < p className = "text-primary-500" > Investment Hub</ p >
193+ < h3 className = "text-lg sm:text-xl font-semibold" >
194+ Kenya Drylands
195+ </ h3 >
196+ < p className = "text-primary-500 text-sm sm:text-base" >
197+ Investment Hub
198+ </ p >
184199 </ div >
185200 ) }
186201 </ div >
0 commit comments