Merge branch 'main' of http://git.wdipl.com/PriyanshuVishwakarma/KLC-Website into parth-dev
This commit is contained in:
93
src/App.tsx
93
src/App.tsx
@@ -1,46 +1,34 @@
|
||||
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 { Route, Routes, useNavigate } from "react-router-dom";
|
||||
import { OurExpertise } from "./components/about/OurExpertise";
|
||||
import { OurImpact } from "./components/about/OurImpact";
|
||||
import { OurVision } from "./components/about/OurVision";
|
||||
import { AIChatbot } from "./components/AIChatbot";
|
||||
import { Articles } from "./components/Articles";
|
||||
import { AuthProvider } from "./components/AuthContext";
|
||||
import { BlogDetail } from "./components/BlogDetail";
|
||||
import { Blogs } from "./components/Blogs";
|
||||
import { Cart } from "./components/Cart";
|
||||
import { CartProvider } from "./components/CartContext";
|
||||
import { Contact } from "./components/Contact";
|
||||
import { CorporateSignIn } from "./components/CorporateSignIn";
|
||||
import { CorporateSignUp } from "./components/CorporateSignUp";
|
||||
import { Footer } from "./components/Footer";
|
||||
import { LeadershipJourneyPage } from "./components/LeadershipJourneyPage";
|
||||
import { LeadershipDevelopment } from "./components/services/LeadershipDevelopment";
|
||||
import { LearningOnline } from "./components/LearningOnline";
|
||||
import { Navigation } from "./components/Navigation";
|
||||
import { ProgrammeDetail } from "./components/ProgrammeDetail";
|
||||
import { SelfLearnerSignIn } from "./components/SelfLearnerSignIn";
|
||||
import { SelfLearnerSignUp } from "./components/SelfLearnerSignUp";
|
||||
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 { LeadershipDevelopment } from "./components/services/LeadershipDevelopment";
|
||||
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 { ManagementDevelopment } from "./components/services/ManagementDevelopment";
|
||||
import { Terms } from "./components/Terms";
|
||||
import { Webinars } from "./components/Webinars";
|
||||
import WebinarsListing from "./components/WebinarsListing";
|
||||
import { WebinarsPage } from "./components/WebinarsPage";
|
||||
import HomePage from './pages/HomePage';
|
||||
import { AboutUs } from './components/AboutUs';
|
||||
import { Services } from './components/Services';
|
||||
@@ -143,26 +131,9 @@ export default function App() {
|
||||
);
|
||||
}
|
||||
|
||||
// Home Page Component (extracted from your default landing page)
|
||||
// function HomePage() {
|
||||
// return (
|
||||
// <>
|
||||
// <HeroSection />
|
||||
// <StatsSection />
|
||||
// <LogosSection />
|
||||
// <ServicesSection />
|
||||
// <VirtualSpaceSection />
|
||||
// <TestimonialsSection />
|
||||
// <UpcomingWebinarsSection />
|
||||
// <InsightsSection />
|
||||
// <WhitepapersSection />
|
||||
// <CTABannerSection />
|
||||
// </>
|
||||
// );
|
||||
// }
|
||||
|
||||
// 404 Not Found Component
|
||||
function NotFound() {
|
||||
const navigate = useNavigate();
|
||||
return (
|
||||
<div className="min-h-screen flex items-center justify-center" style={{ backgroundColor: '#FFFFFF' }}>
|
||||
<div className="text-center">
|
||||
@@ -170,12 +141,14 @@ function NotFound() {
|
||||
<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 className="flex items-center justify-center">
|
||||
<button
|
||||
onClick={() => navigate('/')}
|
||||
className="brand-button-system"
|
||||
>
|
||||
Back to Home
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user