Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from stephja/dev
Browse files Browse the repository at this point in the history
Added new hero image to main.css.
  • Loading branch information
stephenjacobsio authored Sep 7, 2021
2 parents 04256c9 + 6785961 commit f133aac
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,39 @@
box-sizing: border-box;
font-family: "Raleway", sans-serif;
}
body,
html {
height: 100%;
}

/* The hero image */
.hero-image {
/* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("images/pexels-negative-space-169573.jpg");

/* Set a specific height */
height: 50%;

/* Position and center the image to scale nicely on all screens */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
padding-bottom: 600px;
}

/* Place text in the middle of the image */
.hero-text {
text-align: center;
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: "Raleway", sans-serif;
}

body {
overflow-x: hidden;
overflow-y: auto;
Expand Down

0 comments on commit f133aac

Please sign in to comment.