Last active
October 6, 2018 14:49
-
-
Save SilencerWeb/5e6960708b5f93f7061b098264beb30a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 * as React from 'react' | |
import styled from "styled-components" | |
const HeroWrapper = styled.section`` | |
const HeroName = styled.h1`` | |
const HeroList = styled.ul`` | |
const HeroBullet = styled.li`` | |
const HeroContact = styled.a`` | |
export default class Hero extends React.Component { | |
render = () => { | |
return ( | |
<HeroWrapper> | |
<HeroName>Mevish Aslam</HeroName> | |
<HeroList> | |
{this.props.heroList && this.props.heroList.map((text, i) => { | |
return <HeroBullet key={i}>{ text }</HeroBullet> | |
})} | |
</HeroList> | |
<HeroContact href={`mailto:${this.props.mail}`}>In a hurry? <br /> email me</HeroContact> | |
</HeroWrapper> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment