Skip to content

Commit 9ed23e5

Browse files
committed
Add cover text with club name and locations
1 parent 14a5911 commit 9ed23e5

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

assets/css/style.css

+30-7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ body {
1818
font-family: 'Lato', sans-serif;
1919
}
2020

21+
h1, h2, h3 {
22+
font-family: 'Oswald', sans-serif;
23+
text-transform: uppercase;
24+
letter-spacing: 2px;
25+
color: #252525;
26+
}
27+
2128
/* Header */
2229
header {
2330
background-color: #ffffff;
@@ -36,13 +43,6 @@ header a {
3643
color: inherit;
3744
}
3845

39-
h1 {
40-
font-family: 'Oswald', sans-serif;
41-
text-transform: uppercase;
42-
letter-spacing: 2px;
43-
color: #252525;
44-
}
45-
4646
#menu {
4747
font-size: 110;
4848
letter-spacing: 4px;
@@ -94,6 +94,23 @@ main {
9494
height: 600px;
9595
width: 100%;
9696
background: url("../images/hero-image.webp") no-repeat center center/cover;
97+
position: relative;
98+
}
99+
100+
#cover-text {
101+
/* Final rgba value sets the opacity so it is semi-transparent*/
102+
background-color: rgba(241, 109, 107, .7);
103+
font-size: 130%;
104+
position: absolute;
105+
bottom: 30px;
106+
width: 80%;
107+
min-height: 200px;
108+
padding-top: 40px;
109+
padding-left: 10px;
110+
}
111+
112+
#cover-text > h2, #cover-text > h3 {
113+
color: #ffffff;
97114
}
98115

99116
/* Footer */
@@ -145,6 +162,12 @@ main {
145162
/* Push main content down to accomodate larger header*/
146163
margin-top: 79px;
147164
}
165+
166+
/* Hero */
167+
#cover-text {
168+
width: 300px;
169+
right: 50px;
170+
}
148171
}
149172

150173
/* Larger devices (laptops and desktops, 992px and up) */

index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ <h1 id="logo">Love Running</h1>
3737

3838
<!-- Main content -->
3939
<main>
40-
<section id="hero"></section>
40+
<section id="hero"><!--</section>-->
41+
<div id="cover-text">
42+
<h2>Love Running</h2>
43+
<h3>Dublin Docklands & Phoenix Park</h3>
44+
</div>
45+
</section>
4146
</main>
4247

4348
<!-- Footer -->

0 commit comments

Comments
 (0)