Skip to content

Instantly share code, notes, and snippets.

@SilencerWeb
Last active October 6, 2018 14:49
Show Gist options
  • Save SilencerWeb/5e6960708b5f93f7061b098264beb30a to your computer and use it in GitHub Desktop.
Save SilencerWeb/5e6960708b5f93f7061b098264beb30a to your computer and use it in GitHub Desktop.
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