diff --git a/src/components/HowItWorksPage.tsx b/src/components/HowItWorksPage.tsx index 676cb17..103290c 100644 --- a/src/components/HowItWorksPage.tsx +++ b/src/components/HowItWorksPage.tsx @@ -1,89 +1,244 @@ -import { BookOpen } from "lucide-react"; +import { BookOpen, Calendar, CreditCard, Users, Table2, CheckCircle } from "lucide-react"; import { motion } from "motion/react"; +import { useState } from "react"; import { ImageWithFallback } from "./figma/ImageWithFallback"; +import exampleImage from '../assets/fe850ec33f7da20cadeecc91695cda7ad837415e.png'; interface HowItWorksPageProps { onNavigate: (page: string) => void; } +interface Step { + id: number; + title: string; + shortTitle: string; + description: string; + icon: React.ElementType; + details: string[]; +} + export default function HowItWorksPage({ onNavigate }: HowItWorksPageProps) { + const [activeStep, setActiveStep] = useState(1); + + const steps: Step[] = [ + { + id: 1, + title: "Sign Up", + shortTitle: "Sign Up", + description: "Get started with CityCard Partner Web by creating your account and setting up your business profile.", + icon: BookOpen, + details: [ + "Create your partner account with basic business information", + "Verify your email and complete profile setup", + "Connect with the CityCard platform", + "Access your personalized dashboard" + ] + }, + { + id: 2, + title: "Manage Bookings", + shortTitle: "Manage Bookings", + description: "View and manage customer bookings through an intuitive calendar or table view with powerful scheduling tools.", + icon: Calendar, + details: [ + "View bookings in calendar or table format", + "Check-in customers and manage time slots", + "Set up recurring blocked time periods", + "Handle walk-in customers efficiently", + "Track booking history and analytics" + ] + }, + { + id: 3, + title: "Process Redemptions", + shortTitle: "Process Redemptions", + description: "Quickly scan and verify CityCard passes for your customers with our streamlined redemption process.", + icon: CreditCard, + details: [ + "Scan and verify CityCard passes instantly", + "Process single and multi-day passes", + "Handle redemption confirmations in real-time", + "View complete redemption history", + "Track success rates and analytics" + ] + }, + { + id: 4, + title: "Add Staff Members", + shortTitle: "Add Staff", + description: "Build your team by adding staff members, assigning roles, and managing permissions for smooth operations.", + icon: Users, + details: [ + "Add new team members with role assignments", + "Set permissions and access levels", + "Track staff activity and performance", + "Manage staff schedules efficiently", + "Enable/disable staff accounts as needed" + ] + }, + { + id: 5, + title: "Generate Reports", + shortTitle: "Generate Reports", + description: "Access comprehensive analytics and generate detailed reports to track your business performance.", + icon: Table2, + details: [ + "Download reports in PDF or Excel format", + "View redemption analytics and trends", + "Track booking patterns and peak times", + "Monitor staff performance metrics", + "Access custom date range reports" + ] + } + ]; + + const ActiveIcon = steps[activeStep - 1].icon; + return ( -
+
- {/* Header */} + {/* Header Section */} -
-
- +
+
+
+
+
-

How It Works

+

How CityCard Partner Web Works

- {/* Main Content */} - - {/* Image */} -
- -
- - {/* Text Content */} -
-

Welcome to CityCards Partner Web

- -
-

- CityCards Partner Web is your comprehensive dashboard for managing customer bookings, - processing redemptions, and overseeing your team operations. This platform streamlines - your daily tasks and provides powerful analytics to help grow your business. -

- -

- Managing Bookings: View and manage customer bookings - through an intuitive calendar or table view. Check-in customers, handle walk-ins, and set up - recurring blocked time periods for holidays or maintenance. -

- -

- Processing Redemptions: Quickly scan and verify - CityCard passes for your customers. Process both single and multi-day passes, handle redemption - confirmations, and access complete redemption history at your fingertips. -

- -

- Staff Management: Add and remove team members, - assign roles and permissions, track staff activity, and manage schedules efficiently. - Keep your team organized and ensure smooth operations. -

- -

- Reports & Analytics: Generate comprehensive reports - in PDF or Excel format. View redemption analytics, track booking trends, and monitor staff - performance to make data-driven decisions for your business. -

- -

- Support: Need help? Our support team is always - available to assist you with any questions or issues you may encounter while using the platform. -

+ {/* Left Side - Fixed Sidebar */} + +
+
+
+ {steps.map((step, index) => ( + setActiveStep(step.id)} + className={`w-full flex items-center gap-3 p-2 rounded-lg transition-all ${ + activeStep === step.id + ? 'bg-[#F95F62] text-white shadow-md' + : 'hover:bg-gray-50 text-gray-700' + }`} + whileHover={{ scale: 1.02 }} + whileTap={{ scale: 0.98 }} + > +
+ {step.id} +
+ + {step.shortTitle} + +
+ ))} +
+
-
- + + + {/* Right Side - Scrollable Content */} + +
+
+ {steps.map((step, stepIndex) => { + const StepIcon = step.icon; + return ( + + {/* Header with Icon and Title */} +
+
+
+ +
+
+
+ Step {step.id} of {steps.length} +
+

{step.title}

+
+
+

+ {step.description} +

+
+ + {/* Content Details */} +
+

Key Features

+
+ {step.details.map((detail, index) => ( + +
+ +
+

{detail}

+
+ ))} +
+
+
+ ); + })} +
+
+
+
); -} +} \ No newline at end of file diff --git a/src/index.css b/src/index.css index e665b40..3eb7cce 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,4 @@ +@import "tailwindcss"; @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"); /*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */ @layer properties {