diff --git a/src/app/brands/[brand]/page.tsx b/src/app/brands/[brand]/page.tsx index b524dcb..de9e8fc 100644 --- a/src/app/brands/[brand]/page.tsx +++ b/src/app/brands/[brand]/page.tsx @@ -1,140 +1,179 @@ -'use client'; +"use client"; -import { useParams } from 'next/navigation'; -import { ThemeProvider } from '@/components/theme/ThemeProvider'; -import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; -import Link from 'next/link'; +import { useParams } from "next/navigation"; +import { MapPin, Award, Users, TrendingUp } from "lucide-react"; -const BRAND_DATA: Record = { - toyota: { - name: 'Toyota', - description: 'Renowned for reliability and fuel efficiency', +interface BrandModel { + id: string; + name: string; + year: string; + price: string; + image: string; +} + +interface BrandInfo { + name: string; + founded: string; + headquarters: string; + description: string; + history: string; + stats: { + yearsInBusiness: string; + vehiclesSold: string; + countries: string; + awards: string; + }; + models: BrandModel[]; +} + +const mockBrandData: { [key: string]: BrandInfo } = { + tesla: { + name: "Tesla", founded: "2003", headquarters: "Palo Alto, California", description: "Leading electric vehicle manufacturer revolutionizing sustainable transportation.", history: + "Tesla was founded in 2003 by Martin Eberhard and Marc Tarpenning. Named after inventor Nikola Tesla, the company was established to prove that electric vehicles can be both high-performance and desirable. In 2004, Elon Musk joined as chairman and led Series A funding. Tesla has since become the world's most valuable automaker, pioneering the mass production of electric vehicles and accelerating the global transition to sustainable energy.", stats: { + yearsInBusiness: "21+", vehiclesSold: "3.5M+", countries: "100+", awards: "150+"}, models: [ - { name: 'Camry', year: 2023, type: 'Sedan', price: '$28,500' }, - { name: 'Corolla', year: 2023, type: 'Sedan', price: '$22,000' }, - { name: 'RAV4', year: 2023, type: 'SUV', price: '$32,000' }, - ] - }, - honda: { - name: 'Honda', - description: 'Innovation and performance combined', - models: [ - { name: 'Civic', year: 2023, type: 'Sedan', price: '$24,000' }, - { name: 'CR-V', year: 2023, type: 'SUV', price: '$32,000' }, - { name: 'Accord', year: 2023, type: 'Sedan', price: '$32,000' }, - ] - }, - ford: { - name: 'Ford', - description: 'Trucks and SUVs for every adventure', - models: [ - { name: 'F-150', year: 2023, type: 'Truck', price: '$52,000' }, - { name: 'Mustang', year: 2023, type: 'Sports', price: '$40,000' }, - { name: 'Explorer', year: 2023, type: 'SUV', price: '$36,000' }, - ] + { id: "1", name: "Model S", year: "2024", price: "$89,990", image: "https://images.unsplash.com/photo-1560958089-b8a63dd8b50b?w=600" }, + { id: "2", name: "Model 3", year: "2024", price: "$43,990", image: "https://images.unsplash.com/photo-1516814050195-3a03d82e059d?w=600" }, + { id: "3", name: "Model X", year: "2024", price: "$104,990", image: "https://images.unsplash.com/photo-1552820728-8ac41f1ce891?w=600" }, + { id: "4", name: "Model Y", year: "2024", price: "$52,990", image: "https://images.unsplash.com/photo-1560958089-fcbb3cce6c55?w=600" }, + ], }, bmw: { - name: 'BMW', - description: 'Luxury and performance redefined', + name: "BMW", founded: "1916", headquarters: "Munich, Germany", description: "Premium German automaker known for innovative design and performance.", history: + "BMW (Bayerische Motoren Werke AG) was founded in 1916 as an aircraft engine manufacturer. The company transitioned to automobile production in 1929, establishing itself as a leader in luxury vehicles. BMW is renowned for its engineering excellence, innovative technology, and the iconic 'Ultimate Driving Machine' philosophy. Today, BMW stands as one of the world's leading premium automakers with a global presence.", stats: { + yearsInBusiness: "108+", vehiclesSold: "2.5M+", countries: "140+", awards: "200+"}, models: [ - { name: '3 Series', year: 2023, type: 'Sedan', price: '$45,000' }, - { name: 'X5', year: 2023, type: 'SUV', price: '$65,000' }, - { name: 'M440i', year: 2023, type: 'Sedan', price: '$55,000' }, - ] + { id: "1", name: "M440i xDrive", year: "2024", price: "$67,500", image: "https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=600" }, + { id: "2", name: "X5 M", year: "2024", price: "$115,900", image: "https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600" }, + { id: "3", name: "i7", year: "2024", price: "$99,650", image: "https://images.unsplash.com/photo-1533473359331-35b3c3f0f038?w=600" }, + { id: "4", name: "Z4 M440i", year: "2024", price: "$79,500", image: "https://images.unsplash.com/photo-1552820728-8ac41f1ce891?w=600" }, + ], }, }; -export default function BrandDetailPage() { +export default function BrandPage() { const params = useParams(); - const brand = params.brand as string; - const brandData = BRAND_DATA[brand]; + const brandKey = (params.brand as string)?.toLowerCase() || ""; + const brand = mockBrandData[brandKey]; - if (!brandData) { + if (!brand) { return ( - - -
-
-

Brand not found

- ← Back to Brands -
+
+
+

Brand Not Found

+

The brand you're looking for doesn't exist.

+ Back to Home
- +
); } return ( - - - -
-
- ← Back to Brands - -

{brandData.name}

-

{brandData.description}

- -

Popular Models

-
- {brandData.models.map((model: any, idx: number) => ( -
-
- Model Image -
-

{model.name}

-
-

Year: {model.year}

-

Type: {model.type}

-

Price: {model.price}

-
- -
- ))} +
+ {/* Brand Header */} +
+
+ ← Back +

{brand.name}

+

{brand.description}

+
+
+ + Founded {brand.founded} +
+
+ + {brand.headquarters} +
- + + {/* Main Content */} +
+ {/* Brand History */} +
+

Our Story

+
+
+

{brand.history}

+
+
+

By the Numbers

+
+
+
+ + Years in Business +
+

{brand.stats.yearsInBusiness}

+
+
+
+ + Vehicles Sold +
+

{brand.stats.vehiclesSold}

+
+
+
+ + Countries Served +
+

{brand.stats.countries}

+
+
+
+ + Awards Won +
+

{brand.stats.awards}

+
+
+
+
+
+ + {/* All Models */} +
+

All {brand.name} Models

+
+ {brand.models.map((model) => ( +
+
+ {model.name} +
+
+

{model.year}

+

{model.name}

+

{model.price}

+ + View Details → + +
+
+ ))} +
+
+ + {/* CTA Section */} +
+

Ready to Explore?

+

+ Discover the perfect {brand.name} vehicle for your lifestyle. Our expert team is ready to help you find the right model. +

+ +
+
+
); }