Personal-site/components/HomeSection.js

46 lines
1.3 KiB
JavaScript
Raw Normal View History

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";
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}
/>
2021-04-19 13:39:09 +00:00
<Avatar src={person.profilePicture} size={"big"} />
2020-06-14 14:59:50 +00:00
<div className={styles.infosHolder}>
<Infos infos={person.infos} />
</div>
</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>
</div>
</Section>
);
}
HomeSection.propTypes = {
person: PropTypes.object.isRequired,
};