-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hero.jsx
43 lines (40 loc) · 1.35 KB
/
Hero.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Link } from 'react-router-dom';
import hero1 from '../assets/hero1.webp';
import hero2 from '../assets/hero2.webp';
import hero3 from '../assets/hero3.webp';
import hero4 from '../assets/hero4.webp';
const carouselImages = [hero1, hero2, hero3, hero4];
const Hero = () => {
return (
<div className='grid lg:grid-cols-2 gap-24 items-center'>
<div>
<h1 className='max-w-2xl text-4xl font-bold tracking-tight sm:text-6xl'>
We are changing the way people shop
</h1>
<p className='mt-8 max-w-xl text-lg leading-8'>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Tempore
repellat explicabo enim soluta temporibus asperiores aut obcaecati
perferendis porro nobis.
</p>
<div className='mt-10'>
<Link to='/products' className='btn btn-primary'>
Our Products
</Link>
</div>
</div>
<div className='hidden h-[28rem] lg:carousel carousel-center p-4 space-x-4 bg-neutral rounded-box '>
{carouselImages.map((image) => {
return (
<div key={image} className='carousel-item'>
<img
src={image}
className='rounded-box h-full w-80 object-cover'
/>
</div>
);
})}
</div>
</div>
);
};
export default Hero;