-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
49 changed files
with
11,758 additions
and
625 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
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,221 @@ | ||
import React, { Component } from "react"; | ||
import Icofont from "react-icofont"; | ||
// import ScrollAnimation from "react-animate-on-scroll"; | ||
import { MDBContainer, MDBRow } from "mdbreact"; | ||
import Lightbox from "react-image-lightbox"; | ||
|
||
|
||
const images = [ | ||
require("../assets/img/etudiants1.jpg"), | ||
require("../assets/img/etudiants2.jpg"), | ||
require("../assets/img/etudiants3.jpg"), | ||
require("../assets/img/etudiants4.jpg"), | ||
require("../assets/img/etudiants5.jpg"), | ||
require("../assets/img/etudiants6.jpg"), | ||
]; | ||
|
||
const smallImages = [ | ||
require("../assets/img/etudiants1.jpg"), | ||
require("../assets/img/etudiants2.jpg"), | ||
require("../assets/img/etudiants3.jpg"), | ||
require("../assets/img/etudiants4.jpg"), | ||
require("../assets/img/etudiants5.jpg"), | ||
require("../assets/img/etudiants6.jpg"), | ||
]; | ||
|
||
class VieEcole extends Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
photoIndex: 0, | ||
isOpen: false | ||
}; | ||
} | ||
|
||
render() { | ||
const { photoIndex, isOpen } = this.state; | ||
return ( | ||
<React.Fragment> | ||
<section id="works" className="our-works ptb-100"> | ||
<MDBContainer> | ||
<div className="mdb-lightbox no-margin"> | ||
<MDBRow> | ||
<div className="col-md-6 col-lg-4"> | ||
<div className="work-details"> | ||
<figure> | ||
<img | ||
src={smallImages[0]} | ||
alt="Gallery" | ||
className="img-fluid" | ||
/> | ||
<div className="box-content"> | ||
|
||
<ul className="icon"> | ||
<li> | ||
<span | ||
href= "ll" | ||
onClick={() => this.setState({ photoIndex: 0, isOpen: true })} | ||
className="popup-btn"> | ||
<Icofont icon="icofont-search-2"/> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</figure> | ||
</div> | ||
</div> | ||
|
||
<div className="col-md-6 col-lg-4"> | ||
<div className="work-details"> | ||
<figure> | ||
<img | ||
src={smallImages[1]} | ||
alt="Gallery" | ||
className="img-fluid" | ||
/> | ||
<div className="box-content"> | ||
|
||
<ul className="icon"> | ||
<li> | ||
<span | ||
href= "ll" | ||
onClick={() => this.setState({ photoIndex: 1, isOpen: true })} | ||
className="popup-btn"> | ||
<Icofont icon="icofont-search-2"/> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</figure> | ||
</div> | ||
</div> | ||
|
||
<div className="col-md-6 col-lg-4"> | ||
<div className="work-details"> | ||
<figure> | ||
<img | ||
src={smallImages[2]} | ||
alt="Gallery" | ||
className="img-fluid" | ||
/> | ||
<div className="box-content"> | ||
|
||
<ul className="icon"> | ||
<li> | ||
<span | ||
href= "ll" | ||
onClick={() => this.setState({ photoIndex: 2, isOpen: true })} | ||
className="popup-btn"> | ||
<Icofont icon="icofont-search-2"/> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</figure> | ||
</div> | ||
</div> | ||
|
||
<div className="col-md-6 col-lg-4"> | ||
<div className="work-details"> | ||
<figure> | ||
<img | ||
src={smallImages[3]} | ||
alt="Gallery" | ||
className="img-fluid" | ||
/> | ||
<div className="box-content"> | ||
|
||
<ul className="icon"> | ||
<li> | ||
<span | ||
href= "ll" | ||
onClick={() => this.setState({ photoIndex: 3, isOpen: true })} | ||
className="popup-btn"> | ||
<Icofont icon="icofont-search-2"/> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</figure> | ||
</div> | ||
</div> | ||
|
||
<div className="col-md-6 col-lg-4"> | ||
<div className="work-details"> | ||
<figure> | ||
<img | ||
src={smallImages[3]} | ||
alt="Gallery" | ||
className="img-fluid" | ||
/> | ||
<div className="box-content"> | ||
|
||
<ul className="icon"> | ||
<li> | ||
<span | ||
href= "ll" | ||
onClick={() => this.setState({ photoIndex: 4, isOpen: true })} | ||
className="popup-btn"> | ||
<Icofont icon="icofont-search-2"/> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</figure> | ||
</div> | ||
</div> | ||
|
||
<div className="col-md-6 col-lg-4"> | ||
<div className="work-details"> | ||
<figure> | ||
<img | ||
src={smallImages[3]} | ||
alt="Gallery" | ||
className="img-fluid" | ||
/> | ||
<div className="box-content"> | ||
|
||
<ul className="icon"> | ||
<li> | ||
<span | ||
href= "ll" | ||
onClick={() => this.setState({ photoIndex: 5, isOpen: true })} | ||
className="popup-btn"> | ||
<Icofont icon="icofont-search-2"/> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</figure> | ||
</div> | ||
</div> | ||
</MDBRow> | ||
</div> | ||
{isOpen && ( | ||
<Lightbox | ||
mainSrc={images[photoIndex]} | ||
nextSrc={images[(photoIndex + 1) % images.length]} | ||
prevSrc={images[(photoIndex + images.length - 1) % images.length]} | ||
imageTitle={photoIndex + 1 + "/" + images.length} | ||
onCloseRequest={() => this.setState({ isOpen: false })} | ||
onMovePrevRequest={() => | ||
this.setState({ | ||
photoIndex: (photoIndex + images.length - 1) % images.length | ||
}) | ||
} | ||
onMoveNextRequest={() => | ||
this.setState({ | ||
photoIndex: (photoIndex + 1) % images.length | ||
}) | ||
} | ||
/> | ||
)} | ||
</MDBContainer> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} | ||
} | ||
|
||
export default VieEcole; |
Oops, something went wrong.