2020-06-14 13:22:07 +00:00
|
|
|
import PropTypes from "prop-types";
|
|
|
|
import React from "react";
|
|
|
|
import Avatar from "../components/Avatar";
|
|
|
|
import Infos from "../components/Infos";
|
|
|
|
import Presentation from "../components/Presentation";
|
|
|
|
import styles from "./modules/HomeSection.module.css";
|
|
|
|
import Section from "./Section";
|
2020-06-14 14:20:45 +00:00
|
|
|
import Button from "./Button";
|
|
|
|
import DownIcon from "../public/icons/arrow-down.svg";
|
2020-06-14 13:22:07 +00:00
|
|
|
|
|
|
|
export default function HomeSection(props) {
|
|
|
|
const person = props.person;
|
|
|
|
return (
|
|
|
|
<Section>
|
|
|
|
<div className={styles.bg} />
|
|
|
|
|
|
|
|
<div className={styles.flexCenter}>
|
|
|
|
<div className={styles.container}>
|
|
|
|
<Presentation
|
|
|
|
firstName={person.firstName}
|
|
|
|
lastName={person.lastName}
|
|
|
|
description={person.description}
|
|
|
|
/>
|
2020-06-14 14:45:20 +00:00
|
|
|
<Avatar size={"big"} />
|
2020-06-14 13:22:07 +00:00
|
|
|
|
2020-06-14 14:59:50 +00:00
|
|
|
<div className={styles.infosHolder}>
|
|
|
|
<Infos infos={person.infos} />
|
|
|
|
</div>
|
2020-06-14 13:22:07 +00:00
|
|
|
</div>
|
2020-06-14 14:20:45 +00:00
|
|
|
|
|
|
|
<div className={styles.buttonContainer}>
|
|
|
|
<Button
|
|
|
|
label={"Case Studies"}
|
|
|
|
onClick={() => props.scrollFunction()}
|
|
|
|
/>
|
|
|
|
<DownIcon className={styles.icon} />
|
|
|
|
</div>
|
2020-06-14 13:22:07 +00:00
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
HomeSection.propTypes = {
|
|
|
|
person: PropTypes.object.isRequired,
|
|
|
|
};
|