import React, { useEffect, useState } from 'react'; import { motion, AnimatePresence } from 'motion/react'; import { ArrowRight, ShieldCheck, Zap, Target, BookOpen, Users, Star, Play, CheckCircle2, Calculator, ChevronDown, MessageCircle, BarChart3, GraduationCap, ChevronRight, Pi, FlaskConical, Code, FileSignature, Blocks, School, Mic, Video, Monitor, PhoneOff, MoreHorizontal, TrendingUp } from 'lucide-react'; import { Link } from 'react-router-dom'; import CourseCard from '../components/CourseCard'; import TextType from '../components/TextType'; import LogoLoop from '../components/LogoLoop'; import SEO from '../components/SEO'; import { Course, Testimonial, StudentTestimonial, Mentor } from '../types'; import { firestoreService } from '../services/firestoreService'; import { defaultCourses } from '../data/defaultCourses'; const homePageSchemas = [ { "@context": "https://schema.org", "@type": "EducationalOrganization", "@id": "https://mathboi-pathshala.com/#organization", "name": "MathBoi Pathshala", "url": "https://mathboi-pathshala.com", "logo": "https://mathboi-pathshala.com/mathboi-pathshala-logo.png", "description": "Premium E-Learning and Elite Live Mathematics Mentoring for academic boards including CBSE, ICSE, ISC, IB (MYP, DP), and Cambridge (IGCSE, A-Level) exams.", "founder": { "@type": "Person", "name": "Mukarram Mallick", "email": "mathboipathshala@gmail.com" }, "sameAs": [ "https://api.whatsapp.com/send/?phone=916295030740" ] }, { "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [ { "@type": "Question", "name": "Which math boards are covered by MathBoi Pathshala?", "acceptedAnswer": { "@type": "Answer", "text": "MathBoi Pathshala specializes in CBSE, ICSE, ISC, IB (MYP, DP), and Cambridge (IGCSE, A-Level) curricular boards, tailoring worksheets, assessments, and mock exams for each standards pattern specifically." } }, { "@type": "Question", "name": "How is the 1-on-1 live mentoring structured at MathBoi Pathshala?", "acceptedAnswer": { "@type": "Answer", "text": "Classes are conducted 1-on-1 online using an interactive visual collaborative digital whiteboard with real-time feedback, detailed concept mapping, and dynamic visualization models to guarantee clarity and high analytical scores." } }, { "@type": "Question", "name": "Is a free demo class available for new students?", "acceptedAnswer": { "@type": "Answer", "text": "Absolutely! We support new families by conducting a complimentary personal diagnosis and live 30 min demo session of custom math concepts so teachers, parents, and students can preview the interactive board." } } ] } ]; const Home = () => { const [mentors, setMentors] = useState([]); const [courses, setCourses] = useState([]); const [parentTestimonials, setParentTestimonials] = useState([]); const [studentTestimonials, setStudentTestimonials] = useState([]); const [openFaqIndex, setOpenFaqIndex] = useState(null); const [{ successRate, studentId }] = useState(() => ({ successRate: Math.floor(Math.random() * (98 - 93 + 1)) + 93, studentId: Math.floor(1000 + Math.random() * 9000), })); useEffect(() => { const fetchData = async () => { let mentorsData: Mentor[] = [], coursesData: Course[] = [], pTestimonialsData: Testimonial[] = [], sTestimonialsData: StudentTestimonial[] = []; try { [mentorsData, coursesData, pTestimonialsData, sTestimonialsData] = await Promise.all([ firestoreService.getAllMentors().catch(() => []), firestoreService.getAll('courses').catch(() => []), firestoreService.getAll('testimonials').catch(() => []), firestoreService.getAll('studentTestimonials').catch(() => []) ]); } catch (e) { console.warn('Firestore fetch warning:', e); } setMentors(mentorsData || []); const combinedCourses = (coursesData && coursesData.length > 0) ? coursesData : defaultCourses; setCourses(combinedCourses.slice(0, 6)); setParentTestimonials(pTestimonialsData || []); setStudentTestimonials(sTestimonialsData || []); }; fetchData(); }, []); const ceoMentor = mentors.find(m => m.role.includes('CEO') || m.role.includes('FOUNDER')) || mentors[0]; return (
{/* Hero Section */}
{/* Background Decorative Blur Orbs */}
Premium Learning for All Boards

Master Math with

Mathboi Pathshala provides top-tier education specializing in ICSE, ISC, CBSE, IB, and Cambridge boards. Built for students who aim for excellence.

Enroll Now Start Free Trial
{[1, 2, 3, 4].map(i => ( ))}

500+ Active Students

4.9/5 Rating
{/* Digital Classroom Window Container */}
{/* Live Classroom Screen */}
{/* Background Mentor Video Feed */} Live 1-on-1 Mathboi Pathshala Teacher
{/* Top Status Header inside classroom */}
Live 1:1 Class
Mathboi Pathshala Mentor
{/* Video Controls Bar (Bottom Left inside classroom window) */}
{/* Happy Student Foreground Layer */} Student Excel Learning {/* Floating Badges Matching Reference Image */} {/* 1. Pink A+ Badge */} A+ {/* 2. Yellow Growth Graph Badge */} {/* 3. Green Math Formula Badge */} √x {/* 4. Success Rate Badge */}

Success Rate

{successRate}%

{/* 5. Progress Report Badge */}

Progress Report

Student ID #{studentId} is performing 25% better this month.

{/* Integrated Excellence Showcases */}
{/* Row 1: Subjects */}

Get help with all your school subjects

Physics
}, { node:
English
}, { node:
Math
}, { node:
Chemistry
}, { node:
Coding
}, { node:
SAT/Entrance
}, ]} />
{/* Row 2: School Systems */}

For all school systems

ICSEICSE System
}, { node:
ISCISC System
}, { node:
United KingdomBritish System
}, { node:
IB System
}, { node:
United StatesAmerican System
}, ]} />
{/* Row 3: Grades */}

In all grades

Primary school

(1 to 5)

Middle School

(6 to 8)

High school

(9 to 12)

{/* Interactive Learning Section */}
Our Approach

Interactive Learning That Engages

Our advanced study materials combine visual learning, practice problems, and real-world applications. Every lesson is crafted to maintain engagement while building deep understanding.

{[ { icon: Target, title: "Personalized Study Plans", desc: "Customized education paths adapting to each student's pace and learning style." }, { icon: Zap, title: "Engaging Curriculum", desc: "Interactive content that makes complex concepts easy to understand and retain." }, { icon: GraduationCap, title: "One-on-One Mentorship", desc: "Direct access to expert instructors for doubts, guidance, and academic support." } ].map((item, i) => (

{item.title}

{item.desc}

))}
Learn More About Our Approach
{/* How It Works */}

The Journey

4 Steps to Academic Excellence

{/* Connector Line */}
{[ { step: "01", title: "Free Demo", desc: "Experience 30 min of premium learning with no commitments." }, { step: "02", title: "Personal Plan", desc: "We design a study roadmap based on current performance." }, { step: "03", title: "Live Classes", desc: "Interact with expert faculty in high-engagement sessions." }, { step: "04", title: "Weekly Mastery", desc: "Review progress and celebrate new academic milestones." } ].map((item, i) => (
{item.step}

{item.title}

{item.desc}

))}
{/* Courses Showcase */}
Our Curriculum

Explore Featured Courses

Personalized 1-on-1 programs tailored to your board & grade for complete concept clarity.

View All Courses
{courses.map(course => (
))}
{/* Parental Peace of Mind Section */}
Analytics dashboard

Transparency First

Complete Parental Peace of Mind

Parents deserve transparency. We provide comprehensive progress tracking, expert faculty insights, and a safe learning environment.

    {[ { title: "Real-Time Progress Tracking", desc: "Access comprehensive dashboards with detailed insights into your child's academic journey." }, { title: "Safe Learning Environment", desc: "Secure, monitored classes. Your child focuses entirely on growth while we ensure safety." }, { title: "Expert Faculty Dedication", desc: "Qualified educators committed to one-on-one mentorship tailored to their learning style." } ].map((item, i) => (
  • {item.title}

    {item.desc}

  • ))}
Access Parent Dashboard
{/* Stats Counter */}
{[ { label: "Students Mentored", value: "500+", icon: Users, desc: "Achieving proven academic results" }, { label: "Dedicated Educators", value: "50+", icon: GraduationCap, desc: "Expert faculty with proven track records" }, { label: "Success Rate", value: "98%", icon: Target, desc: "Comprehensive progress tracking & support" } ].map((stat, i) => (

{stat.value}

{stat.label}

{stat.desc}

))}
{/* Owner Section */}

Owner's Desk

Academic Visionary & Master Mentor

{ceoMentor?.about ? `"${ceoMentor.about}"` : `"At Mathboi Pathshala, we don't just teach modules; we build mindsets. Our goal is to transform the fear of mathematics into the joy of discovery. Every student who walks through our doors is a testament to our commitment to excellence."`}

{ceoMentor?.name

{ceoMentor?.name || "Mukarram Mallick"}

{ceoMentor?.role || "Co-Founder & CEO"}, Mathboi Pathshala

{ceoMentor?.qualifications || "M.Sc. Mathematics"} {ceoMentor?.experience || "7+ Years Exp."}
93+

Topper's Score

7+

Years of Impact

500+

Lives Changed

100%

Dedication

{/* Parent Testimonials */} {parentTestimonials.length > 0 && (

Parental Reviews

Trust from Families

{parentTestimonials.map((t) => (

"{t.content}"

{t.name}

{t.name}

{t.role}

))}
)} {/* Student Testimonials Section */} {studentTestimonials.length > 0 && (

Student Voice

Success Stories Through Their Eyes

{studentTestimonials.map((t, i) => (
{t.studentName}

{t.studentName}

{t.courseTaken}

"{t.content}"

))}
)} {/* Comparison Section */}

Why Mathboi Pathshala?

Traditional vs. Modern Learning

Focused Mentorship

The Future of Education

{[ { feature: "Personalized Mentorship", us: true, them: false }, { feature: "24/7 Doubt Resolution", us: true, them: false }, { feature: "Infinity Practice Sets", us: true, them: "Limited" }, { feature: "Board-Specific Coaching", us: true, them: "Generic" }, { feature: "Regular Progress Reports", us: true, them: "Monthly" }, { feature: "Free Demo (30 Min)", us: true, them: "None" } ].map((row, idx) => ( ))}
Core Feature Mathboi Others
{row.feature} {row.us === true ? (
Yes
) : row.us}
{row.them === false ? "Limited" : row.them}

"Traditional learning often focuses on the curriculum, but we focus on the student. Our metrics show a 40% faster retention rate compared to standard classroom environments."

{/* Final CTA */}

Unlock Your Child's True Potential Today

{/* Start Free 7-Day Trial */} Schedule a Demo

No Credit Card Required | Instant Access

{/* FAQ Section */}

Frequently asked questions

{[ { q: "How do you ensure my child actually understands the concepts?", a: "We use real-time interactive assessment tools and one-on-one doubt clearing sessions to confirm conceptual depth before moving to the next topic." }, { q: "Is the mentorship limited to only school curriculum?", a: "While we master the board curriculum (CBSE/ICSE/ISC/IB), we also incorporate logic building and competitive problem-solving to prepare students for real-world challenges." }, { q: "How frequent are the assessment tests?", a: "Weekly quick-tests and monthly comprehensive mock exams for all boards are standard, accompanied by detailed performance analytics for parents." }, { q: "What if my child misses a scheduled session?", a: "All live sessions are recorded and available in the student dashboard, plus we offer 24/7 doubt resolution through our portal." }, { q: "Can I track my child's progress in real-time?", a: "Yes, parents get a dedicated dashboard with real-time updates on attendance, test scores, and qualitative feedback from mentors." }, { q: "Do you provide help with competitive exam preparations?", a: "Absolutely. We have specialized modules for Olympiads, SATs, and board-level entrance exams integrated into our premium courses." } ].map((faq, idx) => { const isOpen = openFaqIndex === idx; return (
{isOpen && (

{faq.a}

)}
); })}
); }; export default Home;