Skip to content

Instantly share code, notes, and snippets.

@auniverseaway
Last active June 26, 2021 14:46
Show Gist options
  • Save auniverseaway/7ff61851f99e28c7e83ce3dd959679ea to your computer and use it in GitHub Desktop.
Save auniverseaway/7ff61851f99e28c7e83ce3dd959679ea to your computer and use it in GitHub Desktop.
* {
box-sizing: border-box;
}
body {
background: #EFEFEF;
font-family: 'adobe clean';
margin: 0;
}
.hero {
position: relative;
}
.hero > div > div {
display: flex;
justify-content: center;
flex-wrap: wrap;
align-items: center;
align-content: flex-end;
height: 100vh;
max-width: 600px;
padding: 0 0 48px 0;
}
.hero h1, h2 {
z-index: 2;
position: relative;
background: #FFF;
padding: 6px 24px;
margin: 0;
flex: 1 1 auto;
}
.hero picture {
display: block;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.hero img {
object-fit: cover;
width: 100%;
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment