diff --git a/client/src/components/classes/classes-section.tsx b/client/src/components/classes/classes-section.tsx index ff2cbe3..337e66b 100644 --- a/client/src/components/classes/classes-section.tsx +++ b/client/src/components/classes/classes-section.tsx @@ -18,65 +18,26 @@ export function ClassesSection() { const handleBookClick = (classId: number) => { setSelectedClassId(classId); - - // Scroll to booking calendar - const bookingCalendar = document.getElementById("booking-calendar"); - if (bookingCalendar) { - bookingCalendar.scrollIntoView({ behavior: "smooth" }); + const element = document.getElementById('booking-calendar'); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); } }; - if (error) { - return ( -
-
-

Error loading classes. Please try again later.

-
-
- ); - } - return ( -
+

- Class Offerings + Our Classes

- Choose from our variety of class options designed to match your individual needs + Join our supportive, personalized classes where you'll discover strength, flexibility, and mindfulness.

-
-
-

Mat Pilates

-

Foundational strength, posture, and mobility

-
- -
-

Reformer & Equipment

-

Deeper resistance, alignment, and control

-
- -
-

Beginner Foundations

-

For those new to movement or Pilates

-
- -
-

Live Online Classes

-

Accessible from anywhere

-
- -
-

Workshops & Events

-

Special themed sessions and gatherings

-
-
- -
-
+
+

✨ In-Person Classes @@ -98,37 +59,48 @@ export function ClassesSection() {
- +
- - - -
- - -
- + + + +

))}
+ ) : error ? ( +
+

Error loading classes. Please try again later.

+
) : (
- {classes?.map(classItem => ( + {classes?.map((classData) => ( ))}
)} -
- {selectedClass && ( + {selectedClass && ( +
+

+ Book Your {selectedClass.name} Class +

- )} -
+
+ +
+
+ )}
); diff --git a/client/src/components/newsletter/newsletter-section.tsx b/client/src/components/newsletter/newsletter-section.tsx index 7c07584..466e9c1 100644 --- a/client/src/components/newsletter/newsletter-section.tsx +++ b/client/src/components/newsletter/newsletter-section.tsx @@ -58,7 +58,7 @@ export function NewsletterSection() { }; return ( -
+

@@ -70,14 +70,14 @@ export function NewsletterSection() {

-
+
- + setEmail(e.target.value)} required @@ -88,18 +88,18 @@ export function NewsletterSection() {