Skip to content

Commit d9dab84

Browse files
Working on rearranging events / chapters section.
Loose draft so far. Will keep the default background image for this section instead of featured images and a blueish overlay. Need to find a way to divide the area into events and map / chapters area (probably use card like styling). Remove borders as they make it look like a table - not nice.
1 parent 46a5ed6 commit d9dab84

File tree

7 files changed

+334
-143
lines changed

7 files changed

+334
-143
lines changed

_includes/inline_style_index.html

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,39 @@
99
{% assign image = "static/images/events/default_image_800x800px.jpeg" %}
1010
{% endif %}
1111
{% endif %}
12-
<style>
13-
.upcoming__img-container {
14-
background-image: linear-gradient(to bottom right,
15-
rgba(255, 81, 107, 0.5),
16-
rgba(7, 41, 72, 0.3) 80%,
17-
rgba(0, 0, 0, 0.3) 100%),
18-
url("{{ site.baseurl }}/{{ image }}");
19-
}
20-
</style>
12+
<!--<style>-->
13+
14+
<!--@mixin base-background($background-url) {-->
15+
<!--background-image: linear-gradient(to bottom,-->
16+
<!--rgba(0, 0, 0, 0.9),-->
17+
<!--rgba(7, 41, 72, 0.73) 20%,-->
18+
<!--rgba(255, 81, 107, 0.5) 50%,-->
19+
<!--rgba(7, 41, 72, 0.3) 80%,-->
20+
<!--rgba(0, 0, 0, 0.3) 100%),-->
21+
<!--url("{{ site.baseurl }}/$background-url");-->
22+
<!--}-->
23+
24+
<!--.events-chapters-container {-->
25+
<!--@include base-background(static/images/events/events-chapters_background_480x205px.jpeg);-->
26+
<!--}-->
27+
28+
<!--@media (min-width: 481px){-->
29+
<!--.events-chapters-container {-->
30+
<!--@include base-background(static/images/events/events-chapters_background_960x540px.jpeg);-->
31+
<!--}-->
32+
<!--}-->
33+
34+
<!--@media (min-width: 961px){-->
35+
<!--.events-chapters-container {-->
36+
<!--@include base-background(static/images/events/events-chapters_background_1920x1080px.jpeg");-->
37+
<!--}-->
38+
<!--}-->
39+
40+
<!--@media (min-width: 1921px){-->
41+
<!--.events-chapters-container {-->
42+
<!--@include base-background(static/images/events/events-chapters_background_3840x2160px.jpeg);-->
43+
<!--}-->
44+
<!--}-->
45+
<!--</style>-->
46+
47+

_sass/style.scss

Lines changed: 61 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -259,21 +259,68 @@ a {
259259
color: $nav-button-close-hover;
260260
}
261261

262-
.mission__statement {
263-
font-size: 1.1em;
264-
text-align: center;
265-
font-family: 'Playfair Display', serif;
262+
//.mission__statement {
263+
// font-size: 1.1em;
264+
// text-align: center;
265+
// font-family: 'Playfair Display', serif;
266+
//}
267+
268+
@mixin base-background($background-url) {
269+
background-image: linear-gradient(to bottom,
270+
rgba(0, 0, 0, 0.9),
271+
rgba(7, 41, 72, 0.73) 20%,
272+
rgba(255, 81, 107, 0.5) 50%,
273+
rgba(7, 41, 72, 0.3) 80%,
274+
rgba(0, 0, 0, 0.3) 100%),
275+
url($background-url);
276+
}
277+
278+
.events-chapters-container {
279+
@include base-background("../images/events/events-chapters_background_480x205px.jpeg");
280+
}
281+
282+
@media (min-width: 481px){
283+
.events-chapters-container {
284+
@include base-background("../images/events/events-chapters_background_960x540px.jpeg");
285+
}
286+
}
287+
288+
@media (min-width: 961px){
289+
.events-chapters-container {
290+
@include base-background("../images/events/events-chapters_background_1920x1080px.jpeg");
291+
}
292+
}
293+
294+
@media (min-width: 1921px){
295+
.events-chapters-container {
296+
@include base-background("../images/events/events-chapters_background_3840x2160px.jpeg");
297+
}
298+
}
299+
300+
.events-chapters-container {
301+
background-size: cover;
302+
background-position: center center;
303+
border-top: rgba(129, 129, 129, 0.51) 1px solid;
304+
305+
//border-top: rgba(7, 41, 72, 0.71) 1px solid;
306+
min-height: 50vh;
307+
}
308+
309+
.background {
310+
height: 30vh;
311+
background-color: black;
266312
}
267313

268314
.upcoming {
269-
margin-left: 2%;
270-
margin-right: 2%;
315+
//margin-left: 2%;
316+
//margin-right: 2%;
317+
max-height: 100vh;
271318
}
272319

273320
@media (min-width: 768px) {
274321
.upcoming {
275-
margin-left: 10%;
276-
margin-right: 10%;
322+
//margin-left: 10%;
323+
//margin-right: 10%;
277324
}
278325
}
279326

@@ -310,9 +357,11 @@ a {
310357
margin-bottom: 0;
311358
padding-top: 0.5em;
312359
padding-bottom: 0.5em;
313-
border-top-left-radius: 20px;
314-
border-top-right-radius: 20px;
315-
border-bottom: rgba(250, 235, 215, 0.85) 1px solid;
360+
//border-top-left-radius: 20px;
361+
//border-top-right-radius: 20px;
362+
border-bottom: rgba(129, 129, 129, 0.51) 1px solid;
363+
364+
//border-bottom: rgba(250, 235, 215, 0.85) 1px solid;
316365
}
317366

318367
.upcoming__event-label {
@@ -332,14 +381,7 @@ a {
332381
margin-bottom: 1em;
333382
}
334383

335-
.upcoming__img-container {
336-
background-size: cover;
337-
background-position: center center;
338-
border-radius: 20px;
339-
border-top: $orange 3px solid;
340-
border-bottom: $orange 3px solid;
341-
min-height: 50vh;
342-
}
384+
343385

344386
.upcoming__content {
345387
margin-top: 5.5%;

0 commit comments

Comments
 (0)