Created
March 13, 2018 12:32
-
-
Save BartusZak/70da7b1b830ffd573988c1cec6fcf5dd to your computer and use it in GitHub Desktop.
Trying to use bootstrap carousel with React.
This file contains hidden or 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
import React from 'react'; | |
import './Advert.css'; | |
import Aux from '../../../hoc/Auxi'; | |
import {Carousel} from 'reactstrap'; | |
import billeniumLogo from '../../../assets/img/homePage/billennium.png'; | |
import uwmLogo from '../../../assets/img/homePage/uwmLogo.png'; | |
const advert = (props) => { | |
return ( | |
<Carousel> | |
<Carousel.Item> | |
<img width={900} height={500} alt="900x500" src={billeniumLogo} /> | |
<Carousel.Caption> | |
<h3>First slide label</h3> | |
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> | |
</Carousel.Caption> | |
</Carousel.Item> | |
<Carousel.Item> | |
<img width={900} height={500} alt="900x500" src={uwmLogo} /> | |
<Carousel.Caption> | |
<h3>Second slide label</h3> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
</Carousel.Caption> | |
</Carousel.Item> | |
<Carousel.Item> | |
<img width={900} height={500} alt="900x500" src={uwmLogo} /> | |
<Carousel.Caption> | |
<h3>Third slide label</h3> | |
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p> | |
</Carousel.Caption> | |
</Carousel.Item> | |
</Carousel> | |
); | |
} | |
export default advert; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment