-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9241a2d
commit d983981
Showing
20 changed files
with
304 additions
and
10,812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import AliceCarousel from 'react-alice-carousel'; | ||
import 'react-alice-carousel/lib/alice-carousel.css'; | ||
|
||
// const handleDragStart = (e ) => e.preventDefault(); | ||
const items = [ | ||
<img className="carousel-img" src="../assets/gallery/events/event_1.png"/>, | ||
]; | ||
|
||
const responsive = { | ||
0: { items: 1 }, | ||
768: { items: 2 }, | ||
1024: { items: 3 }, | ||
}; | ||
|
||
const ImageGallery = ()=>{ | ||
return ( | ||
<AliceCarousel | ||
responsive={responsive} | ||
mouseTracking | ||
|
||
infinite | ||
disableButtonsControls | ||
disableDotsControls | ||
|
||
items={items} /> | ||
); | ||
} | ||
|
||
export default ImageGallery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import AliceCarousel from 'react-alice-carousel'; | ||
import 'react-alice-carousel/lib/alice-carousel.css'; | ||
|
||
const responsive = { | ||
0: { items: 1 }, | ||
768: { items: 2 }, | ||
1250: { items: 3 }, | ||
}; | ||
|
||
const items = [ | ||
<div><img className="carousel-img" src="/assets/gallery/sw24photos/sw24_1.JPG"/></div>, | ||
<div><img className="carousel-img" src="/assets/gallery/sw24photos/sw24_2.JPG"/></div>, | ||
<div><img className="carousel-img" src="/assets/gallery/sw24photos/sw24_3.JPG"/></div>, | ||
<div><img className="carousel-img" src="/assets/gallery/sw24photos/sw24_4.JPG"/></div>, | ||
]; | ||
|
||
const SWCarousel = () => { | ||
return <AliceCarousel | ||
mouseTracking | ||
infinite | ||
disableButtonsControls | ||
disableDotsControls | ||
|
||
items={items} | ||
responsive={responsive} | ||
autoPlay={true} | ||
autoPlayInterval={3000} | ||
/> | ||
} | ||
|
||
export default SWCarousel; |
Oops, something went wrong.