source: frontend/src/Components/Layout/CarouselHome/Carousel.js@ e6c2521

Last change on this file since e6c2521 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 6 months ago

images upload/download impl, other fixes

  • Property mode set to 100644
File size: 1.2 KB
Line 
1import React from 'react';
2import { useState } from 'react';
3import Carousel from 'react-bootstrap/Carousel';
4
5function HomeCarousel() {
6 const [index, setIndex] = useState(0);
7
8 const handleSelect = (selectedIndex) => {
9 setIndex(selectedIndex);
10 };
11
12 return (
13 <Carousel activeIndex={index} onSelect={handleSelect}>
14 <Carousel.Item>
15 <img
16 className="d-block w-100 h-400 rounded-5"
17 src="https://www.kovz.gov.mk/articleImage.img/2022/08/05/JPG_010_-_Jovan_Kaneo_church_in_Ohrid__panorama-min.jpg"
18 alt="First slide"
19 style={{height:"50vh"}}
20 />
21 </Carousel.Item>
22 <Carousel.Item>
23 <img
24 className="d-block w-100 rounded-5"
25 src="https://macedonia-timeless.com/wp-content/uploads/2018/08/dojran-ezero.jpg"
26 alt="Second slide"
27 style={{height:"50vh"}}
28 />
29
30 </Carousel.Item>
31 <Carousel.Item>
32 <img
33 className="d-block w-100 rounded-5"
34 src="https://i.imgur.com/NFlxbqY.jpg"
35 alt="Third slide"
36 style={{height:"50vh"}}
37 />
38 </Carousel.Item>
39 </Carousel>
40 );
41}
42
43export default HomeCarousel;
Note: See TracBrowser for help on using the repository browser.