Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
code-splitting-demo/src/js/components/page1/index.jsx
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (19 sloc)
665 Bytes
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
import React from "react"; | |
import image1 from "../../../img/photo-1602700986195-61c063fe117f.jpeg"; | |
import image2 from "../../../img/photo-1604276919965-7ba5dab422f4.jpeg"; | |
import Glider from "../glider"; | |
import styles from "./style.scss"; | |
const Component = () => ( | |
<div className={styles.container}> | |
<h1 className={styles.title}>Page 1</h1> | |
<Glider hasDots slidesToShow={1}> | |
<div className={styles.slide}> | |
<img className={styles.image} src={image1} alt="1" /> | |
</div> | |
<div className={styles.slide}> | |
<img className={styles.image} src={image2} alt="2" /> | |
</div> | |
</Glider> | |
</div> | |
); | |
export default Component; |