-
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
4 changed files
with
337 additions
and
336 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import React from "react"; | ||
import styles from "./Education.module.css"; | ||
import { Chrono } from "react-chrono"; | ||
import data from "./EducationData"; | ||
import useWindowSize from "../../../shared/hooks/windowSize"; | ||
|
||
const EducationList = () => { | ||
const size = useWindowSize(); | ||
const bigScreenMode = "VERTICAL_ALTERNATING"; | ||
const smallScreenMode = "VERTICAL"; | ||
|
||
return ( | ||
<div className={styles.timeline}> | ||
<Chrono | ||
items={data} | ||
mode={size.width <= 850 ? smallScreenMode : bigScreenMode} | ||
hideControls | ||
theme={{ | ||
primary: "#5969BA", | ||
secondary: "#E6E8FA", | ||
cardBgColor: "#d0d0d0", | ||
}} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EducationList; | ||
import React from "react"; | ||
import styles from "./Education.module.css"; | ||
import { Chrono } from "react-chrono"; | ||
import data from "./EducationData"; | ||
import useWindowSize from "../../../shared/hooks/useWindowSize"; | ||
|
||
const EducationList = () => { | ||
const size = useWindowSize(); | ||
const bigScreenMode = "VERTICAL_ALTERNATING"; | ||
const smallScreenMode = "VERTICAL"; | ||
|
||
return ( | ||
<div className={styles.timeline}> | ||
<Chrono | ||
items={data} | ||
mode={size.width <= 850 ? smallScreenMode : bigScreenMode} | ||
hideControls | ||
theme={{ | ||
primary: "#5969BA", | ||
secondary: "#E6E8FA", | ||
cardBgColor: "#d0d0d0", | ||
}} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EducationList; |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import React from "react"; | ||
import styles from "./Experience.module.css"; | ||
import { Chrono } from "react-chrono"; | ||
import history from "./ExperienceData"; | ||
import useWindowSize from "../../../shared/hooks/windowSize"; | ||
|
||
const ExperienceList = () => { | ||
const size = useWindowSize(); | ||
const bigScreenMode = "VERTICAL_ALTERNATING"; | ||
const smallScreenMode = "VERTICAL"; | ||
|
||
return ( | ||
<div className={styles.timeline}> | ||
<Chrono | ||
items={history} | ||
mode={size.width <= 850 ? smallScreenMode : bigScreenMode} | ||
hideControls | ||
theme={{ | ||
primary: "#5969BA", | ||
secondary: "#E6E8FA", | ||
cardBgColor: "#d0d0d0", | ||
}} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExperienceList; | ||
import React from "react"; | ||
import styles from "./Experience.module.css"; | ||
import { Chrono } from "react-chrono"; | ||
import history from "./ExperienceData"; | ||
import useWindowSize from "../../../shared/hooks/useWindowSize"; | ||
|
||
const ExperienceList = () => { | ||
const size = useWindowSize(); | ||
const bigScreenMode = "VERTICAL_ALTERNATING"; | ||
const smallScreenMode = "VERTICAL"; | ||
|
||
return ( | ||
<div className={styles.timeline}> | ||
<Chrono | ||
items={history} | ||
mode={size.width <= 850 ? smallScreenMode : bigScreenMode} | ||
hideControls | ||
theme={{ | ||
primary: "#5969BA", | ||
secondary: "#E6E8FA", | ||
cardBgColor: "#d0d0d0", | ||
}} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExperienceList; |
Oops, something went wrong.