@@ -4,7 +4,7 @@ import "pure-react-carousel/dist/react-carousel.es.css";
4
4
5
5
/* Install pure-react-carousel using -> npm i pure-react-carousel */
6
6
7
- const Slider = ( ) => {
7
+ const SlideShow = ( ) => {
8
8
9
9
return (
10
10
@@ -13,16 +13,11 @@ const Slider = () => {
13
13
{ /* Carousel for Small-Sized Screen */ }
14
14
< CarouselProvider className = "relative block sm:hidden" naturalSlideWidth = { 100 } isIntrinsicHeight = { true } totalSlides = { 3 } visibleSlides = { 1 } step = { 1 } infinite = { true } >
15
15
< div className = "js-flickity flex justify-center items-center" >
16
- < ButtonBack role = "button" aria-label = "slide backward" className = "w-12 h-12 md:w-14 md:h-14 rounded-full flex justify-center items-center bg-white border border-gray-300 hover:bg-gray-400 absolute z-30 left-0 ml-8 focus:outline-none focus:bg-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 cursor-pointer" id = "prev" >
17
- < svg width = { 8 } height = { 14 } viewBox = "0 0 8 14" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
18
- < path d = "M7 1L1 7L7 13" stroke = "black" strokeWidth = { 2 } strokeLinecap = "round" strokeLinejoin = "round" />
19
- </ svg >
20
- </ ButtonBack >
21
16
< Slider >
22
17
< Slide index = { 0 } >
23
18
< div className = "gallery-cell lg:mr-7 mr-6 lg:w-1/2 sm:w-96 w-full h-full" >
24
19
< div className = "relative w-full h-full lg:block hidden" >
25
- < img src = "https://i.ibb.co/VSsN4Jt/carousel-2.png " alt = "sitting area" className = "object-center object-cover w-full h-full" />
20
+ < img src = "https://raw.githubusercontent.com/CJBiohacker/TripScript-Viagens/dc41b307bb886fb030b63c64571ca212db18edb6/images/fernando-de-noronha.svg " alt = "sitting area" className = "object-center object-cover w-full h-full" />
26
21
< div className = "pl-6 pb-6 lg:pl-8 lg:pb-8 absolute left-0 bottom-0" >
27
22
< h1 className = "text-xl leading-5 lg:text-2xl lg:leading-normal font-medium text-white" > Lounge Interior</ h1 >
28
23
</ div >
@@ -68,6 +63,11 @@ const Slider = () => {
68
63
</ div >
69
64
</ Slide >
70
65
</ Slider >
66
+ < ButtonBack role = "button" aria-label = "slide backward" className = "w-12 h-12 md:w-14 md:h-14 rounded-full flex justify-center items-center bg-white border border-gray-300 hover:bg-gray-400 absolute z-30 left-0 ml-8 focus:outline-none focus:bg-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 cursor-pointer" id = "prev" >
67
+ < svg width = { 8 } height = { 14 } viewBox = "0 0 8 14" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
68
+ < path d = "M7 1L1 7L7 13" stroke = "black" strokeWidth = { 2 } strokeLinecap = "round" strokeLinejoin = "round" />
69
+ </ svg >
70
+ </ ButtonBack >
71
71
< ButtonNext role = "button" aria-label = "slide forward" className = "w-12 h-12 md:w-14 md:h-14 rounded-full flex justify-center items-center bg-white border border-gray-300 hover:bg-gray-400 absolute z-30 right-0 mr-8 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-800" id = "next" >
72
72
< svg width = { 8 } height = { 14 } viewBox = "0 0 8 14" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
73
73
< path d = "M1 1L7 7L1 13" stroke = "black" strokeWidth = { 2 } strokeLinecap = "round" strokeLinejoin = "round" />
@@ -76,7 +76,7 @@ const Slider = () => {
76
76
</ div >
77
77
</ CarouselProvider >
78
78
79
- { /* Carousel for Medium and Large-Sized Screen */ }
79
+ { /* Carousel for Medium and Large-Sized Screen
80
80
<CarouselProvider className="relative hidden sm:block" naturalSlideWidth={100} isIntrinsicHeight={true} totalSlides={3} visibleSlides={1} step={1} infinite={true} currentSlide={1}>
81
81
<div className="js-flickity flex justify-center items-center">
82
82
<ButtonBack role="button" aria-label="slide backward" className="w-12 h-12 md:w-14 md:h-14 rounded-full flex justify-center items-center bg-white border border-gray-300 hover:bg-gray-400 absolute z-30 left-0 ml-8 focus:outline-none focus:bg-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 cursor-pointer" id="prev">
@@ -88,7 +88,7 @@ const Slider = () => {
88
88
<Slide className="carousel__inner-slideLarge" index={0}>
89
89
<div className="gallery-cell w-full h-full">
90
90
<div className="relative w-full h-full lg:block hidden">
91
- < img src = "https://i.ibb.co/VSsN4Jt/carousel-2.png " alt = "sitting area" className = "object-center object-cover w-full h-full" />
91
+ <img src="https://raw.githubusercontent.com/CJBiohacker/TripScript-Viagens/dc41b307bb886fb030b63c64571ca212db18edb6/images/fernando-de-noronha.svg " alt="sitting area" className="object-center object-cover w-full h-full" />
92
92
<div className="pl-6 pb-6 lg:pl-8 lg:pb-8 absolute left-0 bottom-0">
93
93
<h1 className="text-xl leading-5 lg:text-2xl lg:leading-normal font-medium text-white">Lounge Interior</h1>
94
94
</div>
@@ -140,7 +140,7 @@ const Slider = () => {
140
140
</svg>
141
141
</ButtonNext>
142
142
</div>
143
- </ CarouselProvider >
143
+ </CarouselProvider> */ }
144
144
</ div >
145
145
146
146
< style >
@@ -182,4 +182,4 @@ const Slider = () => {
182
182
) ;
183
183
}
184
184
185
- export default Slider ;
185
+ export default SlideShow ;
0 commit comments