Created
May 24, 2020 17:47
-
-
Save konstantinmuenster/1472011dc29b5b4d4254d9708b69745e to your computer and use it in GitHub Desktop.
hero.js (1) - How To Gatsby Portfolio
This file contains 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 React from "react" | |
import styled from "styled-components" | |
const StyledSection = styled.section` | |
.title { | |
margin-bottom: 0; | |
} | |
.subtitle { | |
margin-top: 0; | |
} | |
.highlighted { | |
box-shadow: inset 0 -2.5rem 0 #cdf3e1; | |
} | |
` | |
const Hero = () => { | |
return ( | |
<StyledSection id="hero"> | |
<h1 className="title"> | |
Hello <span role="img" aria-label="emoji">👋</span><br /> | |
I'm Konstantin Münster | |
</h1> | |
<h2 className="subtitle"> | |
I design and build <span className="highlighted">things for the web</span>. | |
</h2> | |
<div className="description"> | |
Product Manager and Freelance Web Developer. Based in Hamburg. | |
</div> | |
</StyledSection> | |
) | |
} | |
export default Hero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment