@@ -125,7 +125,6 @@ const ArchitectsPage = () => {
125125 setMessage ( "" ) ;
126126
127127 try {
128- // ✅ Step 1: Check if already registered
129128 const { data : existingArchitect , error : checkError } = await supabase
130129 . from ( "architects" )
131130 . select ( "id" )
@@ -141,7 +140,6 @@ const ArchitectsPage = () => {
141140 return ;
142141 }
143142
144- // ✅ Step 2: Register new architect
145143 const { error } = await supabase . from ( "architects" ) . insert ( [
146144 {
147145 name,
@@ -154,7 +152,6 @@ const ArchitectsPage = () => {
154152
155153 if ( error ) throw error ;
156154
157- // ✅ Step 3: Update user_role to 'architect' in profiles table
158155 const { error : roleError } = await supabase
159156 . from ( "profiles" )
160157 . update ( { user_role : "architect" } )
@@ -180,7 +177,6 @@ const ArchitectsPage = () => {
180177 }
181178 } ;
182179
183- // ✅ Handle Register button click
184180 const handleRegisterClick = ( ) => {
185181 if ( ! user ) {
186182 navigate ( "/auth/login" ) ;
@@ -191,7 +187,6 @@ const ArchitectsPage = () => {
191187 }
192188 } ;
193189
194- // ✅ Filter Architects for Search
195190 const filteredArchitects = architects . filter (
196191 ( arch ) =>
197192 arch . name ?. toLowerCase ( ) . includes ( search . toLowerCase ( ) ) ||
@@ -203,7 +198,7 @@ const ArchitectsPage = () => {
203198 < Navbar />
204199
205200 { /* Hero Section */ }
206- < section className = "max-w-7xl mx-auto px-6 py-24 grid grid-cols-1 md:grid-cols-2 gap-10 items-center" >
201+ < section className = "max-w-7xl mx-auto px-6 py-24 pb-4 grid grid-cols-1 md:grid-cols-2 gap-10 items-center relative " >
207202 < div >
208203 < h1 className = "text-4xl md:text-5xl font-extrabold leading-tight mb-4" >
209204 Hire < span className = "text-blue-600" > Top Architects</ span > < br /> for
@@ -254,18 +249,28 @@ const ArchitectsPage = () => {
254249 > </ iframe >
255250 </ div >
256251
257- < div className = "absolute top-4 right-4 bg-white shadow-lg rounded-xl px-4 py-2 flex items-center gap-2" >
258- < CheckCircle2 className = "text-green-500 w-5 h-5" />
259- < div className = "text-sm" >
260- < p className = "font-semibold text-gray-800" > Verified Experts</ p >
261- < p className = "text-gray-500 text-xs" > Background Checked</ p >
252+ { /* Floating Verified Experts */ }
253+ < div className = "absolute -top-6 -right-6 bg-white rounded-lg p-4 shadow-lg animate-fade-in animation-delay-300 animate-bounce-slow hidden md:block" >
254+ < div className = "flex items-center space-x-2" >
255+ < div className = "bg-green-100 rounded-full p-2" >
256+ < CheckCircle2 className = "text-green-600 w-5 h-5" />
257+ </ div >
258+ < div >
259+ < p className = "font-semibold text-sm text-gray-800" > Verified Experts</ p >
260+ < p className = "text-xs text-gray-500" > Background Checked</ p >
261+ </ div >
262262 </ div >
263263 </ div >
264264
265- < div className = "absolute bottom-4 left-4 bg-white shadow-lg rounded-xl px-4 py-2 flex items-center gap-2" >
266- < Smile className = "text-blue-500 w-5 h-5" />
267- < div className = "text-sm" >
268- < p className = "font-semibold text-gray-800" > Happy Clients</ p >
265+ { /* Floating Happy Clients */ }
266+ < div className = "absolute -bottom-6 -left-6 bg-white rounded-lg p-4 shadow-lg animate-fade-in animation-delay-400 animate-bounce-slow hidden md:block" >
267+ < div className = "flex items-center space-x-2" >
268+ < div className = "bg-blue-100 rounded-full p-2" >
269+ < Smile className = "text-blue-600 w-5 h-5" />
270+ </ div >
271+ < div >
272+ < p className = "text-xs text-gray-500" > Happy Clients</ p >
273+ </ div >
269274 </ div >
270275 </ div >
271276 </ div >
@@ -360,8 +365,18 @@ const ArchitectsPage = () => {
360365 </ section >
361366 ) }
362367
368+ { /* ✅ Heading Added Below Cards Section */ }
369+ < section className = "max-w-6xl mx-auto px-4 md:px-0 mt-16 mb-8 text-center" >
370+ < h2 className = "text-3xl md:text-4xl font-extrabold text-gray-900" >
371+ Our Best Architects
372+ </ h2 >
373+ < p className = "text-gray-600 mt-2 text-lg" >
374+ Explore profiles of talented architects ready to design your dream space.
375+ </ p >
376+ </ section >
377+
363378 { /* Architects Grid */ }
364- < section className = "max-w-6xl mx-auto px-4 md:px-0 mt-12 mb-20" >
379+ < section className = "max-w-6xl mx-auto px-4 md:px-0 mt-6 mb-20" >
365380 { loading ? (
366381 < div className = "flex justify-center items-center h-40" >
367382 < Loader2 className = "animate-spin w-8 h-8 text-blue-600" />
0 commit comments