Skip to content

Commit f43f74b

Browse files
committed
"update : Slider ajustado e funcional "
1 parent ed07816 commit f43f74b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

FrontEnd/tripscript-react/src/components/Slider.js renamed to FrontEnd/tripscript-react/src/components/SlideShow.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "pure-react-carousel/dist/react-carousel.es.css";
44

55
/* Install pure-react-carousel using -> npm i pure-react-carousel */
66

7-
const Slider = () => {
7+
const SlideShow = () => {
88

99
return (
1010

@@ -13,16 +13,11 @@ const Slider = () => {
1313
{/* Carousel for Small-Sized Screen */}
1414
<CarouselProvider className="relative block sm:hidden" naturalSlideWidth={100} isIntrinsicHeight={true} totalSlides={3} visibleSlides={1} step={1} infinite={true}>
1515
<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>
2116
<Slider>
2217
<Slide index={0}>
2318
<div className="gallery-cell lg:mr-7 mr-6 lg:w-1/2 sm:w-96 w-full h-full">
2419
<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" />
2621
<div className="pl-6 pb-6 lg:pl-8 lg:pb-8 absolute left-0 bottom-0">
2722
<h1 className="text-xl leading-5 lg:text-2xl lg:leading-normal font-medium text-white">Lounge Interior</h1>
2823
</div>
@@ -68,6 +63,11 @@ const Slider = () => {
6863
</div>
6964
</Slide>
7065
</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>
7171
<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">
7272
<svg width={8} height={14} viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">
7373
<path d="M1 1L7 7L1 13" stroke="black" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
@@ -76,7 +76,7 @@ const Slider = () => {
7676
</div>
7777
</CarouselProvider>
7878

79-
{/* Carousel for Medium and Large-Sized Screen */}
79+
{/* Carousel for Medium and Large-Sized Screen
8080
<CarouselProvider className="relative hidden sm:block" naturalSlideWidth={100} isIntrinsicHeight={true} totalSlides={3} visibleSlides={1} step={1} infinite={true} currentSlide={1}>
8181
<div className="js-flickity flex justify-center items-center">
8282
<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 = () => {
8888
<Slide className="carousel__inner-slideLarge" index={0}>
8989
<div className="gallery-cell w-full h-full">
9090
<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" />
9292
<div className="pl-6 pb-6 lg:pl-8 lg:pb-8 absolute left-0 bottom-0">
9393
<h1 className="text-xl leading-5 lg:text-2xl lg:leading-normal font-medium text-white">Lounge Interior</h1>
9494
</div>
@@ -140,7 +140,7 @@ const Slider = () => {
140140
</svg>
141141
</ButtonNext>
142142
</div>
143-
</CarouselProvider>
143+
</CarouselProvider> */}
144144
</div>
145145

146146
<style>
@@ -182,4 +182,4 @@ const Slider = () => {
182182
);
183183
}
184184

185-
export default Slider;
185+
export default SlideShow;

0 commit comments

Comments
 (0)