Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e62ed12196 | |||
| 9b98c29c71 | |||
| 1d1a60214a | |||
| fb1fc9231d | |||
| b28bb63675 | |||
| e7c1ec3512 | |||
| 5903fb5260 | |||
| 0ec500e71b | |||
| a3e3b3fdc8 | |||
| 686c1f1856 | |||
| 420716ed8f | |||
| 51e9681701 | |||
| e0984aa10b | |||
| 704f308cac | |||
| 1f70f9c349 | |||
| 46d248b354 | |||
| 7c685efcb0 | |||
| ef71150c09 | |||
| ed9424958d | |||
| d3f6e58d1d |
@@ -1,54 +1,53 @@
|
||||
"use client";
|
||||
|
||||
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 AdminDashboard() {
|
||||
const [bookings, setBookings] = useState([
|
||||
{ id: "1", client: "John Doe", service: "Precision Fade", status: "Pending" },
|
||||
{ id: "2", client: "Mike Smith", service: "Beard Sculpt", status: "Confirmed" }
|
||||
]);
|
||||
|
||||
export default function AdminDashboardPage() {
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-magnetic"
|
||||
defaultTextAnimation="background-highlight"
|
||||
borderRadius="rounded"
|
||||
contentWidth="smallMedium"
|
||||
sizing="large"
|
||||
background="floatingGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="radial-glow"
|
||||
contentWidth="medium"
|
||||
sizing="medium"
|
||||
background="noise"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
headingFontWeight="normal"
|
||||
headingFontWeight="semibold"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleFullscreen
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Admin Dashboard", id: "#admin" }
|
||||
]}
|
||||
brandName="Elite Grooming Admin"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="admin" className="pt-32 pb-20 px-6 max-w-7xl mx-auto">
|
||||
<h1 className="text-4xl font-bold mb-10">Admin Dashboard</h1>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||
<div className="p-6 border rounded-lg shadow-sm">Booking Management</div>
|
||||
<div className="p-6 border rounded-lg shadow-sm">Appointment Calendar</div>
|
||||
<div className="p-6 border rounded-lg shadow-sm">Client Management</div>
|
||||
<div className="p-6 border rounded-lg shadow-sm">Service Management</div>
|
||||
<div className="min-h-screen p-8">
|
||||
<h1 className="text-3xl font-bold mb-8">Booking Management Dashboard</h1>
|
||||
<div className="grid gap-6">
|
||||
{bookings.map((booking) => (
|
||||
<div key={booking.id} className="p-6 flex justify-between items-center border rounded-lg">
|
||||
<div>
|
||||
<h2 className="text-xl font-bold">{booking.client}</h2>
|
||||
<p className="text-muted-foreground">{booking.service}</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-4">
|
||||
<span className={`px-3 py-1 rounded-full text-sm font-medium ${booking.status === "Pending" ? "bg-yellow-100 text-yellow-800" : "bg-green-100 text-green-800"}`}>
|
||||
{booking.status}
|
||||
</span>
|
||||
{booking.status === "Pending" && (
|
||||
<button
|
||||
className="px-4 py-2 bg-blue-600 text-white rounded-md cursor-pointer hover:bg-blue-700 transition-colors"
|
||||
onClick={() => setBookings(prev => prev.map(b => b.id === booking.id ? {...b, status: "Confirmed"} : b))}
|
||||
>
|
||||
Process Booking
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBase
|
||||
logoText="Elite Grooming"
|
||||
columns={[
|
||||
{ title: "Navigation", items: [{ label: "Home", href: "/" }] }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
71
src/app/book-appointment/page.tsx
Normal file
71
src/app/book-appointment/page.tsx
Normal file
@@ -0,0 +1,71 @@
|
||||
"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 (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-magnetic"
|
||||
defaultTextAnimation="background-highlight"
|
||||
borderRadius="rounded"
|
||||
contentWidth="smallMedium"
|
||||
sizing="large"
|
||||
background="floatingGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="solid"
|
||||
headingFontWeight="normal"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleFullscreen
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Services", id: "/" },
|
||||
{ name: "Gallery", id: "/" },
|
||||
{ name: "Contact", id: "/" },
|
||||
{ name: "Book", id: "/book-appointment" },
|
||||
{ name: "Admin", id: "/admin" }
|
||||
]}
|
||||
brandName="Elite Grooming"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="booking" data-section="booking" className="py-24">
|
||||
<ContactSplitForm
|
||||
title="Schedule Your Appointment"
|
||||
description="Select your preferred service and time. Our team will confirm your booking shortly."
|
||||
inputs={[
|
||||
{ name: "fullName", type: "text", placeholder: "Full Name", required: true },
|
||||
{ name: "email", type: "email", placeholder: "Email Address", required: true },
|
||||
{ name: "date", type: "date", placeholder: "Appointment Date", required: true }
|
||||
]}
|
||||
multiSelect={{
|
||||
name: "service",
|
||||
label: "Choose Service",
|
||||
options: ["Precision Fade", "Beard Sculpt", "Hot Towel Shave"]
|
||||
}}
|
||||
textarea={{ name: "notes", placeholder: "Any special instructions or requests?" }}
|
||||
buttonText="Confirm Booking"
|
||||
onSubmit={(data) => console.log("Booking submitted:", data)}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBase
|
||||
logoText="Elite Grooming"
|
||||
columns={[
|
||||
{ title: "Navigation", items: [{ label: "Home", href: "/" }, { label: "Services", href: "/" }] },
|
||||
{ title: "Support", items: [{ label: "FAQ", href: "/" }, { label: "Book", href: "/book-appointment" }] }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
42
src/app/booking/page.tsx
Normal file
42
src/app/booking/page.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ContactCenter from '@/components/sections/contact/ContactCenter';
|
||||
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
|
||||
|
||||
export default function BookingPage() {
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-magnetic"
|
||||
defaultTextAnimation="background-highlight"
|
||||
borderRadius="rounded"
|
||||
contentWidth="medium"
|
||||
sizing="medium"
|
||||
background="none"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="glass"
|
||||
headingFontWeight="normal"
|
||||
>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleFullscreen
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Services", id: "/services" },
|
||||
{ name: "Book Online", id: "/booking" }
|
||||
]}
|
||||
brandName="Elite Grooming"
|
||||
/>
|
||||
</div>
|
||||
<div id="contact" data-section="contact" className="pt-32 pb-20">
|
||||
<ContactCenter
|
||||
tag="Appointment"
|
||||
title="Schedule Your Visit"
|
||||
description="Select your preferred time and barber for your next grooming session."
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@@ -47,7 +47,7 @@ export default function LandingPage() {
|
||||
title="Elite Grooming for the Modern Gentleman"
|
||||
description="Precision fades, classic hot towel shaves, and professional beard sculpting. Elevate your style at our premier barbershop."
|
||||
tag="Since 2015"
|
||||
buttons={[{ text: "Book Appointment", href: "#contact" }]}
|
||||
buttons={[{ text: "Book Appointment", href: "/book-appointment" }]}
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/handsome-bearded-man-barbershop-barber-work_627829-7361.jpg", imageAlt: "modern barber shop interior" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/barbershop-close-up-barber-holds-razor-shaving-his-beard_1157-43556.jpg", imageAlt: "barber grooming detail" }
|
||||
@@ -62,7 +62,7 @@ export default function LandingPage() {
|
||||
<TextAbout
|
||||
useInvertedBackground={false}
|
||||
title="Refined Grooming in the Heart of the City"
|
||||
buttons={[{ text: "Learn More", href: "#contact" }]}
|
||||
buttons={[{ text: "Learn More", href: "/book-appointment" }]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -72,9 +72,9 @@ export default function LandingPage() {
|
||||
textboxLayout="split"
|
||||
useInvertedBackground={false}
|
||||
plans={[
|
||||
{ id: "fade", price: "$35", name: "Precision Fade", features: ["Consultation", "Skin fade", "Hot towel finish"], buttons: [{ text: "Book Now", href: "#contact" }] },
|
||||
{ id: "beard", price: "$25", name: "Beard Sculpt", features: ["Beard trim", "Lineup", "Conditioning balm"], buttons: [{ text: "Book Now", href: "#contact" }] },
|
||||
{ id: "shave", price: "$45", name: "Hot Towel Shave", features: ["Steam treatment", "Straight razor shave", "Aftershave balm"], buttons: [{ text: "Book Now", href: "#contact" }] }
|
||||
{ id: "fade", price: "$35", name: "Precision Fade", features: ["Consultation", "Skin fade", "Hot towel finish"], buttons: [{ text: "Book Now", href: "/book-appointment" }] },
|
||||
{ id: "beard", price: "$25", name: "Beard Sculpt", features: ["Beard trim", "Lineup", "Conditioning balm"], buttons: [{ text: "Book Now", href: "/book-appointment" }] },
|
||||
{ id: "shave", price: "$45", name: "Hot Towel Shave", features: ["Steam treatment", "Straight razor shave", "Aftershave balm"], buttons: [{ text: "Book Now", href: "/book-appointment" }] }
|
||||
]}
|
||||
title="Our Professional Services"
|
||||
description="Expert grooming to keep you sharp."
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
--background-accent: #ffffff; */
|
||||
|
||||
--background: #000000;
|
||||
--card: #121212;
|
||||
--foreground: #ffffff;
|
||||
--card: #1A1A1A;
|
||||
--foreground: #FFFFFF;
|
||||
--primary-cta: #FFD700;
|
||||
--primary-cta-text: #000000;
|
||||
--secondary-cta: #1A1A1A;
|
||||
--secondary-cta: #262626;
|
||||
--secondary-cta-text: #FFFFFF;
|
||||
--accent: #B8860B;
|
||||
--background-accent: #262626;
|
||||
|
||||
Reference in New Issue
Block a user