diff --git a/src/app/book-appointment/page.tsx b/src/app/book-appointment/page.tsx index 4d09229..1520ee9 100644 --- a/src/app/book-appointment/page.tsx +++ b/src/app/book-appointment/page.tsx @@ -2,9 +2,10 @@ import { useState } from "react"; import { Calendar, Phone, Mail, User, MessageSquare, Stethoscope } from "lucide-react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline"; +import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple"; import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal"; import Textarea from "@/components/form/Textarea"; +import ButtonHoverBubble from "@/components/button/ButtonHoverBubble"; interface FormData { fullName: string; @@ -76,7 +77,9 @@ export default function BookAppointmentPage() { } }; - const handleChange = (e: React.ChangeEvent) => { + const handleChange = ( + e: React.ChangeEvent + ) => { const { name, value } = e.target; setFormData((prev) => ({ ...prev, @@ -112,33 +115,45 @@ export default function BookAppointmentPage() { headingFontWeight="semibold" > -
+
-

Book Your Appointment

-

Schedule your visit to Rehoboth Dental Clinic

+

+ Book Your Appointment +

+

+ Schedule your visit to Rehoboth Dental Clinic +

{submitted && (
-

✓ Your appointment request has been submitted successfully! We'll contact you shortly to confirm your booking.

+

+ ✓ Your appointment request has been submitted successfully! We'll + contact you shortly to confirm your booking. +

)} -
+
{/* Full Name */}
@@ -158,7 +173,9 @@ export default function BookAppointmentPage() { } text-foreground placeholder-foreground/50`} placeholder="Enter your full name" /> - {errors.fullName &&

{errors.fullName}

} + {errors.fullName && ( +

{errors.fullName}

+ )}
{/* Email */} @@ -179,7 +196,9 @@ export default function BookAppointmentPage() { } text-foreground placeholder-foreground/50`} placeholder="your.email@example.com" /> - {errors.email &&

{errors.email}

} + {errors.email && ( +

{errors.email}

+ )}
{/* Phone */} @@ -200,7 +219,9 @@ export default function BookAppointmentPage() { } text-foreground placeholder-foreground/50`} placeholder="+250 792 891 566" /> - {errors.phone &&

{errors.phone}

} + {errors.phone && ( +

{errors.phone}

+ )}
{/* Service Type */} @@ -228,7 +249,9 @@ export default function BookAppointmentPage() { - {errors.serviceType &&

{errors.serviceType}

} + {errors.serviceType && ( +

{errors.serviceType}

+ )}
{/* Preferred Date */} @@ -248,12 +271,16 @@ export default function BookAppointmentPage() { : "border-background-accent focus:ring-2 focus:ring-primary-cta/20" } text-foreground`} /> - {errors.preferredDate &&

{errors.preferredDate}

} + {errors.preferredDate && ( +

{errors.preferredDate}

+ )}
{/* Preferred Time */}
- + - {errors.preferredTime &&

{errors.preferredTime}

} + {errors.preferredTime && ( +

{errors.preferredTime}

+ )}
@@ -299,12 +328,13 @@ export default function BookAppointmentPage() { {/* Submit Button */}
- +