Skip to content

Instantly share code, notes, and snippets.

@konstantinmuenster
Created May 24, 2020 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konstantinmuenster/1472011dc29b5b4d4254d9708b69745e to your computer and use it in GitHub Desktop.
Save konstantinmuenster/1472011dc29b5b4d4254d9708b69745e to your computer and use it in GitHub Desktop.
hero.js (1) - How To Gatsby Portfolio
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