Create index component

This commit is contained in:
LordMathis 2020-10-02 18:55:16 +02:00
parent 21d0f12bb4
commit a6d6a680fa
2 changed files with 28 additions and 0 deletions

19
src/components/index.js Normal file
View File

@ -0,0 +1,19 @@
import { Link } from "gatsby"
import PropTypes from "prop-types"
import React from "react"
import styles from "../styles/index.module.scss"
import Social from "./social"
const Index = ({ author, social, email }) => (
<div className={styles.indexWrapper}>
<div>
<h1 className={styles.header}>{ author }</h1>
</div>
<Social social={social} email={email}/>
</div>
)
Index.propTypes = {
}
export default Index

View File

@ -0,0 +1,9 @@
.indexWrapper {
display: flex;
flex-direction: column;
justify-content: center;
}
.header {
font-size: 3em;
}