diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 347cf4c..e8e47aa 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -4,51 +4,68 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; import FooterBase from '@/components/sections/footer/FooterBase'; +import { useState } from 'react'; export default function AdminDashboardPage() { + const [appointments, setAppointments] = useState([ + { id: "1", client: "John Doe", service: "Precision Fade", time: "10:00 AM", status: "Confirmed" }, + { id: "2", client: "Mike Smith", service: "Hot Towel Shave", time: "11:30 AM", status: "Confirmed" }, + ]); + + const handleCancel = (id: string) => { + setAppointments(appointments.filter(app => app.id !== id)); + }; + return ( - - - - - - Admin Dashboard - - Booking Management - Appointment Calendar - Client Management - Service Management - - - - + + + Appointment Management + + + + + Client + Service + Time + Actions + + + + {appointments.map((app) => ( + + {app.client} + {app.service} + {app.time} + + handleCancel(app.id)} className="text-red-500 hover:underline">Cancel + + + ))} + + + + + ); -} +} \ No newline at end of file diff --git a/src/app/book-appointment/page.tsx b/src/app/book-appointment/page.tsx new file mode 100644 index 0000000..7b0e117 --- /dev/null +++ b/src/app/book-appointment/page.tsx @@ -0,0 +1,70 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; +import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; +import FooterBase from '@/components/sections/footer/FooterBase'; + +export default function BookAppointmentPage() { + return ( + + + + + + + + console.log("Booking submitted:", data)} + /> + + + + + + ); +} \ No newline at end of file