diff --git a/src/app/page.jsx b/src/app/page.jsx index c300781..b270e97 100644 --- a/src/app/page.jsx +++ b/src/app/page.jsx @@ -1,62 +1,8 @@ +"use client"; + import React from 'react'; import { MessageCircle } from 'lucide-react'; -// Dados de exemplo (depois virĂ£o do backend) -const cars = [ - { - id: 1, - name: 'MERCEDES-BENZ C-CLASS', - year: '2015', - price: 35000, - image: '/api/placeholder/400/300', - special: true, - specs: { - consumption: '18/26', - transmission: 'Automatic', - mileage: '100' - } - }, - { - id: 2, - name: 'NISSAN ALTIMA', - year: '2019', - price: 18000, - image: '/api/placeholder/400/300', - special: true, - specs: { - consumption: '25/36', - transmission: 'Automatic', - mileage: '18000' - } - }, - { - id: 3, - name: 'TESLA ROADSTER', - year: '2021', - price: 109000, - image: '/api/placeholder/400/300', - special: false, - specs: { - consumption: '18/100', - transmission: 'Automatic', - mileage: '400' - } - }, - { - id: 4, - name: 'LEXUS RX-350', - year: '2021', - price: 22000, - image: '/api/placeholder/400/300', - special: true, - specs: { - consumption: '18/100', - transmission: 'Automatic', - mileage: '2000' - } - } -]; - const CarCard = ({ car }) => (
{car.special && ( @@ -71,7 +17,7 @@ const CarCard = ({ car }) => ( />

- {car.name} {car.year} + {car.name}

${car.price.toLocaleString()} @@ -79,21 +25,12 @@ const CarCard = ({ car }) => (
{car.specs.consumption} - - -
{car.specs.transmission} - - -
{car.specs.mileage} - - -
@@ -101,9 +38,24 @@ const CarCard = ({ car }) => ( ); const HomePage = () => { + const cars = [ + { + id: 1, + name: 'MERCEDES-BENZ C-CLASS 2015', + price: 35000, + image: '/api/placeholder/400/300', + special: true, + specs: { + consumption: '18/26', + transmission: 'Automatic', + mileage: '100' + } + }, + // mais carros aqui + ]; + return (
- {/* Header */}
@@ -112,7 +64,6 @@ const HomePage = () => {
- {/* Main Content */}
{cars.map(car => ( @@ -121,7 +72,6 @@ const HomePage = () => {
- {/* Footer */}