Created
May 13, 2020 07:53
-
-
Save mischievousdev/9e5d909b0040e4b41a24d510e90eaf9d to your computer and use it in GitHub Desktop.
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 url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap'); | |
body { | |
font-family: 'Roboto Mono', monospace; | |
margin: 0; | |
} | |
.hero-bg { | |
text-align: center; | |
background-color: #1a0045; | |
color: white; | |
height: 100vh; | |
padding-bottom: 1em; | |
position: relative; | |
} | |
.hero-text { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-right: -50%; | |
transform: translate(-50%, -50%) | |
} | |
.hero-text h1 { | |
font-size: 5em; | |
font-weight: bold; | |
} | |
.hero-text img { | |
padding: 1em; | |
} | |
.hero-text p { | |
font-weight: bold; | |
margin: 0 1em 3em; | |
font-size: 2.5em; | |
} | |
section h1 { | |
position: relative; | |
display: block; | |
z-index: 1; | |
font-size: 40px; | |
} | |
section h1 span::before { | |
content: ''; | |
position: absolute; | |
width: 1.9em; | |
background: cornflowerblue; | |
height: .4em; | |
bottom: 0; | |
z-index: -1; | |
margin-left: -.3em; | |
} | |
input[type=button] { | |
background-color: #F89104; | |
font-family: 'Roboto Mono', monospace; | |
border: none; | |
width: 30%; | |
color: white; | |
font-weight: bold; | |
padding: 1em 0; | |
border-radius: .2em; | |
font-size: 1.1em; | |
cursor: pointer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment