Skip to content

Commit 14a5911

Browse files
committed
Add hero image
1 parent b19e978 commit 14a5911

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

assets/css/style.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,18 @@ nav {
8484

8585
/* Main content */
8686
main {
87-
background-color: lightblue;
8887
/*Make main element take up any surplus space to push footer down*/
8988
flex: 1 0 auto;
9089
margin-top: 47px;
9190
}
9291

92+
/* Hero section*/
93+
#hero {
94+
height: 600px;
95+
width: 100%;
96+
background: url("../images/hero-image.webp") no-repeat center center/cover;
97+
}
98+
9399
/* Footer */
94100
#social-networks {
95101
text-align: center;

assets/images/hero-image.webp

81.1 KB
Binary file not shown.

index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ <h1 id="logo">Love Running</h1>
3636
</header>
3737

3838
<!-- Main content -->
39-
<main>Main content</main>
39+
<main>
40+
<section id="hero"></section>
41+
</main>
4042

4143
<!-- Footer -->
4244
<footer>

0 commit comments

Comments
 (0)