Skip to content

Commit

Permalink
Add cover text with club name and locations
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-von-d committed Mar 6, 2024
1 parent 1906e5e commit ed3aa84
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
34 changes: 26 additions & 8 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ body {
/* General project style */
color: #3a3a3a;
font-family: 'Lato', sans-serif;

}
h1, h2, h3 {
font-family: 'Oswald', sans-serif;
text-transform: uppercase;
letter-spacing: 2px;
color: #252525;
}

/* Header*/
Expand All @@ -38,13 +43,6 @@ header a {
color: inherit;
}

h1 {
font-family: 'Oswald', sans-serif;
text-transform: uppercase;
letter-spacing: 2px;
color: #252525;
}

#menu {
font-size: 110%;
letter-spacing: 4px;
Expand Down Expand Up @@ -95,8 +93,23 @@ main {
height: 600px;
width: 100%;
background: url("../images/hero-image.webp") no-repeat center center/cover;
position: relative;
}
#cover-text{
/* Final rgba value sets the opacity so it is semi-transparent */
background-color: rgba(241, 109, 107, .7);
font-size: 130%;
position: absolute;
bottom: 30px;
width: 80%;
min-height: 200px;
padding-top: 40px;
padding-left: 10px;
}

#cover-text > h2, cover-text > h3 {
color: #ffffff;
}

/* Footer */
#social-networks {
Expand Down Expand Up @@ -148,6 +161,11 @@ main {
/* Push main content down to accomodate larger header */
margin-top: 79px;
}
/* Hero*/
#cover-text {
width: 300px;
right:50px;
}
}

/* Large devices (laptop and desktop, 922px and higher */
Expand Down
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ <h1 id="logo">Love Running</h1>
<!--Main content-->
<main>
<section id="hero"</section>
<div id="cover-text">
<h2>Love Running</h2>
<h3>Dublin Docklands Phoenix Park</h3>

</div>
</main>

<!--Footer-->
Expand Down

0 comments on commit ed3aa84

Please sign in to comment.