first commit
This commit is contained in:
170
src/App.tsx
Normal file
170
src/App.tsx
Normal file
@@ -0,0 +1,170 @@
|
||||
import React from 'react';
|
||||
import { Routes, Route } from "react-router-dom";
|
||||
import { AuthProvider } from "./components/AuthContext";
|
||||
import { CartProvider } from "./components/CartContext";
|
||||
import { Navigation } from "./components/Navigation";
|
||||
import HeroSection from "./components/HeroSection";
|
||||
import { StatsSection } from "./components/StatsSection";
|
||||
import { LogosSection } from "./components/LogosSection";
|
||||
import { ServicesSection } from "./components/ServicesSection";
|
||||
import { VirtualSpaceSection } from "./components/VirtualSpaceSection";
|
||||
import { TestimonialsSection } from "./components/TestimonialsSection";
|
||||
import { UpcomingWebinarsSection } from "./components/UpcomingWebinarsSection";
|
||||
import { InsightsSection } from "./components/InsightsSection";
|
||||
import { CTABannerSection } from "./components/CTABannerSection";
|
||||
import { WhitepapersSection } from "./components/WhitepapersSection";
|
||||
import { Footer } from "./components/Footer";
|
||||
import { AIChatbot } from "./components/AIChatbot";
|
||||
import { LeadershipJourneyPage } from "./components/LeadershipJourneyPage";
|
||||
import { LeadershipDevelopment } from "./components/services/LeadershipDevelopment";
|
||||
import { Consulting } from "./components/services/Consulting";
|
||||
import { CultureCompetence } from "./components/services/CultureCompetence";
|
||||
import { ExecutiveCoaching } from "./components/services/ExecutiveCoaching";
|
||||
import { ManagementDevelopment } from "./components/services/ManagementDevelopment";
|
||||
import { LearningFacility } from "./components/services/LearningFacility";
|
||||
import { OurVision } from "./components/about/OurVision";
|
||||
import { OurExpertise } from "./components/about/OurExpertise";
|
||||
import { OurImpact } from "./components/about/OurImpact";
|
||||
import { Contact } from "./components/Contact";
|
||||
import { Cart } from "./components/Cart";
|
||||
import { CorporateSignIn } from "./components/CorporateSignIn";
|
||||
import { SelfLearnerSignIn } from "./components/SelfLearnerSignIn";
|
||||
import { CorporateSignUp } from "./components/CorporateSignUp";
|
||||
import { SelfLearnerSignUp } from "./components/SelfLearnerSignUp";
|
||||
import { ProgrammeDetail } from "./components/ProgrammeDetail";
|
||||
import { Articles } from "./components/Articles";
|
||||
import { Blogs } from "./components/Blogs";
|
||||
import { BlogDetail } from "./components/BlogDetail";
|
||||
import { Webinars } from "./components/Webinars";
|
||||
import { WebinarsPage } from "./components/WebinarsPage";
|
||||
import WebinarsListing from "./components/WebinarsListing";
|
||||
import WebinarDetail from "./components/WebinarDetail";
|
||||
import { LearningOnline } from "./components/LearningOnline";
|
||||
import { Terms } from "./components/Terms";
|
||||
// import EnrollPlaceholder from "./components/EnrollPlaceholder";
|
||||
// import ForgotPasswordPlaceholder from "./components/ForgotPasswordPlaceholder";
|
||||
// import DashboardPlaceholder from "./components/DashboardPlaceholder";
|
||||
// import CheckoutPlaceholder from "./components/CheckoutPlaceholder";
|
||||
// import HomePage from "./components/HomePage";
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<AuthProvider>
|
||||
<CartProvider>
|
||||
<div
|
||||
className="min-h-screen main-content"
|
||||
style={{ backgroundColor: '#FFFFFF' }}
|
||||
>
|
||||
<Routes>
|
||||
{/* Home Page */}
|
||||
<Route path="/" element={<HomePage />} />
|
||||
|
||||
{/* Leadership Journey */}
|
||||
<Route path="/leadership-journey" element={<LeadershipJourneyPage />} />
|
||||
|
||||
{/* Services Pages */}
|
||||
<Route path="/services/leadership-development" element={<LeadershipDevelopment />} />
|
||||
<Route path="/services/consulting" element={<Consulting />} />
|
||||
<Route path="/services/culture-competence" element={<CultureCompetence />} />
|
||||
<Route path="/services/executive-coaching" element={<ExecutiveCoaching />} />
|
||||
<Route path="/services/management-development" element={<ManagementDevelopment />} />
|
||||
<Route path="/services/learning-facility" element={<LearningFacility />} />
|
||||
|
||||
{/* About Us Pages */}
|
||||
<Route path="/about/our-vision" element={<OurVision />} />
|
||||
<Route path="/about/our-expertise" element={<OurExpertise />} />
|
||||
<Route path="/about/our-impact" element={<OurImpact />} />
|
||||
|
||||
{/* Learning Pages */}
|
||||
<Route path="/learning/articles" element={<Articles />} />
|
||||
<Route path="/learning/blogs" element={<Blogs />} />
|
||||
<Route path="/learning/webcast" element={<Webinars />} />
|
||||
|
||||
{/* Webinars Pages */}
|
||||
<Route path="/webinars" element={<WebinarsPage />} />
|
||||
<Route path="/webinars-legacy" element={<WebinarsListing />} />
|
||||
|
||||
{/* Learning Online */}
|
||||
<Route path="/learning-online" element={<LearningOnline />} />
|
||||
|
||||
{/* Terms & Conditions */}
|
||||
<Route path="/terms" element={<Terms />} />
|
||||
|
||||
{/* Cart */}
|
||||
<Route path="/cart" element={<Cart />} />
|
||||
|
||||
{/* Authentication Pages */}
|
||||
<Route path="/corporate-login" element={<CorporateSignIn />} />
|
||||
<Route path="/self-learner-signin" element={<SelfLearnerSignIn />} />
|
||||
<Route path="/signin/self-learner" element={<SelfLearnerSignIn />} />
|
||||
<Route path="/corporate-signup" element={<CorporateSignUp />} />
|
||||
<Route path="/self-learner-signup" element={<SelfLearnerSignUp />} />
|
||||
|
||||
{/* Contact Page */}
|
||||
<Route path="/contact" element={<Contact />} />
|
||||
|
||||
{/* Dynamic Routes */}
|
||||
<Route path="/learning/articles/:slug" element={<BlogDetail />} />
|
||||
<Route path="/learning/blogs/:slug" element={<BlogDetail />} />
|
||||
{/* <Route path="/learning/webcast/:slug" element={<WebinarDetail />} />
|
||||
<Route path="/webinar/:slug" element={<WebinarDetail />} /> */}
|
||||
<Route path="/course/:slug" element={<ProgrammeDetail />} />
|
||||
<Route path="/programme/:slug" element={<ProgrammeDetail />} />
|
||||
|
||||
{/* Placeholder Pages */}
|
||||
{/* <Route path="/enroll" element={<EnrollPlaceholder />} />
|
||||
<Route path="/forgot-password" element={<ForgotPasswordPlaceholder />} />
|
||||
<Route path="/dashboard" element={<DashboardPlaceholder />} />
|
||||
<Route path="/checkout" element={<CheckoutPlaceholder />} /> */}
|
||||
|
||||
{/* 404 Page */}
|
||||
<Route path="*" element={<NotFound />} />
|
||||
</Routes>
|
||||
|
||||
{/* Add AIChatbot to all pages */}
|
||||
<AIChatbot />
|
||||
</div>
|
||||
</CartProvider>
|
||||
</AuthProvider>
|
||||
);
|
||||
}
|
||||
|
||||
// Home Page Component (extracted from your default landing page)
|
||||
function HomePage() {
|
||||
return (
|
||||
<>
|
||||
<Navigation />
|
||||
<HeroSection />
|
||||
<StatsSection />
|
||||
<LogosSection />
|
||||
<ServicesSection />
|
||||
<VirtualSpaceSection />
|
||||
<TestimonialsSection />
|
||||
<UpcomingWebinarsSection />
|
||||
<InsightsSection />
|
||||
<WhitepapersSection />
|
||||
<CTABannerSection />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
// 404 Not Found Component
|
||||
function NotFound() {
|
||||
return (
|
||||
<div className="min-h-screen flex items-center justify-center" style={{ backgroundColor: '#FFFFFF' }}>
|
||||
<div className="text-center">
|
||||
<h1 className="text-h2 mb-4">Page Not Found</h1>
|
||||
<p className="text-body-lg text-muted mb-8">
|
||||
The page you're looking for doesn't exist.
|
||||
</p>
|
||||
<button
|
||||
onClick={() => window.location.href = '/'}
|
||||
className="brand-button-system"
|
||||
>
|
||||
Back to Home
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user