Skip to content
Snippets Groups Projects
Commit 71bd386c authored by Tiago Brito's avatar Tiago Brito
Browse files

Implemented Home.js

parent 3b3b7aa0
No related branches found
No related tags found
No related merge requests found
// Home.js
import React from 'react';
import Carousel from './Carousel';
import FeaturedProducts from './FeaturedProducts';
import Navigation from './Navigation';
import '../css/Home.css'
// Sample data for Carousel and FeaturedProducts
const sampleBanners = [
{ id: 1, image: '/images/essentials_for_gamers.jpg', title: 'Banner 1' },
{ id: 2, image: '/images/gifts_to_make_mom_smile.jpg', title: 'Banner 2' }
];
const sampleProducts = [
{ id: 1, name: 'Headsets', price: 99.99, image: '/images/featured_products/headsets.png' },
{ id: 2, name: 'Gaming mice', price: 199.99, image: '/images/featured_products/gaming_mice.png' },
{ id: 3, name: 'Laptops', price: 199.99, image: '/images/featured_products/laptops.png' },
{ id: 4, name: 'Keyboards', price: 199.99, image: '/images/featured_products/keyboards.png' },
{ id: 5, name: 'Chairs', price: 199.99, image: '/images/featured_products/chairs.png' }
];
function Home() {
return (
<div>
<h1>Welcome to ElectroMart</h1>
<p>Find the best electronics at unbeatable prices.</p>
<div className="home-page">
<Navigation />
<Carousel banners={sampleBanners} />
<FeaturedProducts title="Gaming Accessories" products={sampleProducts} />
</div>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment