Skip to content

Instantly share code, notes, and snippets.

@masterashu
Created November 22, 2019 14:51
Show Gist options
  • Save masterashu/f67c57b3778cbf5f1d85777e7d3dd55a to your computer and use it in GitHub Desktop.
Save masterashu/f67c57b3778cbf5f1d85777e7d3dd55a to your computer and use it in GitHub Desktop.
* {
margin: 0;
padding: 0;
}
header {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(back.jpg);
height: 100vh;
background-size: cover;
background-position: center;
}
.main-nav {
float: right;
list-style: none;
margin-top: 30px;
}
.main-nav li {
display: inline-block;
}
.main-nav li a {
color: white;
text-decoration: none;
padding: 5px 20px;
font-family: "Roboto", "sans-serif";
font-size: 15px;
}
.main-nav li.active a {
border: 1px solid white;
padding: 5px 19px;
}
.main-nav li a:hover {
border: 1px solid white;
padding: 5px 19px;
}
body {
font-family: monospace;
}
.row {
max-width: 1200px;
margin: auto;
}
.logo img {
width: 150px;
height: 100px;
float: left;
}
.hero {
position: absolute;
top: 300px;
left: 50%;
transform: translateX(-50%);
text-align: center;
}
h1 {
color: white;
text-transform: uppercase;
font-size: 70px;
text-align: center;
}
.button {
width: 80%;
margin: 20px auto;
}
.btn {
border: 1px solid white;
padding: 10px 30px;
color: white;
text-decoration: none;
font-size: 13px;
text-transform: uppercase;
margin: 0 5px;
}
.btn-one {
background-color: darkorange;
font-family: "Roboto", "sans-serif";
}
.btn-two {
font-family: "Roboto", "sans-serif";
}
.btn-two:hover {
background-color: darkorange;
transition: all 0.5s ease-in;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment