diff --git a/src/App.tsx b/src/App.tsx index f4c30c9..e586733 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,294 +1,12 @@ -import AboutTestimonial from '@/components/sections/about/AboutTestimonial'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import FaqTwoColumn from '@/components/sections/faq/FaqTwoColumn'; -import FeaturesStatisticsCards from '@/components/sections/features/FeaturesStatisticsCards'; -import FooterBrandReveal from '@/components/sections/footer/FooterBrandReveal'; -import HeroBillboard from '@/components/sections/hero/HeroBillboard'; -import NavbarCentered from '@/components/ui/NavbarCentered'; -import PricingPage from '@/components/sections/pricing/PricingPage'; -import ProductVariantCards from '@/components/sections/product/ProductVariantCards'; -import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; -import LegalSection from '@/components/sections/legal/LegalSection'; +import { Routes, Route } from "react-router-dom"; +import HomePage from "@/pages/HomePage"; +import ServicesPage from "@/pages/ServicesPage"; export default function App() { return ( - <> - - -
- -
- -
- -
- -
- -
- -
- -
- - - -
- -
- -
- -
- -
- -
- - - - - + + } /> + } /> + ); } diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index a3e7160..7151bc8 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,22 +1,297 @@ -import NavbarCentered from "@/components/ui/NavbarCentered"; -import { routes } from "@/routes"; +import AboutTestimonial from '@/components/sections/about/AboutTestimonial'; +import ContactCta from '@/components/sections/contact/ContactCta'; +import FaqTwoColumn from '@/components/sections/faq/FaqTwoColumn'; +import FeaturesStatisticsCards from '@/components/sections/features/FeaturesStatisticsCards'; +import FooterBrandReveal from '@/components/sections/footer/FooterBrandReveal'; +import HeroBillboard from '@/components/sections/hero/HeroBillboard'; +import NavbarCentered from '@/components/ui/NavbarCentered'; +import PricingPage from '@/components/sections/pricing/PricingPage'; +import ProductVariantCards from '@/components/sections/product/ProductVariantCards'; +import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; +import LegalSection from '@/components/sections/legal/LegalSection'; -const HomePage = () => { + +export default function HomePage() { return ( -
+ <> + - ); -}; + logo="DriveEasy" + navItems={[ + { + name: "Home", + href: "#hero", + }, + { + name: "About", + href: "#about", + }, + { + name: "Vehicles", + href: "#vehicles", + }, + { + name: "Pricing", + href: "#pricing", + }, + { name: "Services", href: "/services" }, -export default HomePage; + ]} + ctaButton={{ + text: "Book Now", + href: "#contact", + }} + /> +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + +
+ +
+ +
+ +
+ +
+ +
+ + + + + + ); +} diff --git a/src/pages/ServicesPage.tsx b/src/pages/ServicesPage.tsx new file mode 100644 index 0000000..bd73655 --- /dev/null +++ b/src/pages/ServicesPage.tsx @@ -0,0 +1,93 @@ +import { routes } from "@/routes"; +import NavbarCentered from "@/components/ui/NavbarCentered"; // Corrected import path +import HeroSplit from "@/components/sections/hero/HeroSplit"; +import FeaturesDetailedCards from "@/components/sections/features/FeaturesDetailedCards"; +import TestimonialQuoteCards from "@/components/sections/testimonial/TestimonialQuoteCards"; +import ContactCta from "@/components/sections/contact/ContactCta"; +import FooterSimple from "@/components/sections/footer/FooterSimple"; + +export default function ServicesPage() { + return ( +
+ ({ name: r.label, href: r.path }))} + ctaButton={{ text: "Get Started", href: "/contact" }} + /> + +
+ + + + + + + +
+ + +
+ ); +} \ No newline at end of file diff --git a/src/routes.ts b/src/routes.ts index 362ecb5..6b7660e 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -6,4 +6,5 @@ export interface Route { export const routes: Route[] = [ { path: '/', label: 'Home', pageFile: 'HomePage' }, + { path: '/services', label: 'Services', pageFile: 'ServicesPage' }, ];