Skip to content

Commit 6e2e287

Browse files
Full screen image size calculated differently (home page).
Added some images which could be used for header background in about page. Removed classes and data- attributes no longer needed from header images. Added background-img class to all header images and set min height to 250px on landscape (to prevent title overlapping the brand name).
1 parent f0771bf commit 6e2e287

File tree

7 files changed

+21
-3
lines changed

7 files changed

+21
-3
lines changed

_pages/01_about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
../static/images/events_page/events_page_top_1650x1100px.jpg 1650w"
1717
media="(orientation: portrait)"
1818
sizes="100vw">
19-
<img class=""
19+
<img class="about__background-img"
2020
src="../static/images/events_page/events_page_top_960x300px.jpg"
2121
alt="Events">
2222
</picture>

_pages/03_events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
../static/images/events_page/events_page_top_1650x1100px.jpg 1650w"
1616
media="(orientation: portrait)"
1717
sizes="100vw">
18-
<img class=""
18+
<img class="events-page__background-img"
1919
src="../static/images/events_page/events_page_top_960x300px.jpg"
2020
alt="Events">
2121
</picture>

_pages/04_contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
../static/images/contact/contact_top_1650x1100px.jpg 1650w"
1616
media="(orientation: portrait)"
1717
sizes="100vw">
18-
<img class=""
18+
<img class="contact__background-img"
1919
src="../static/images/contact/contact_top_960x300px.jpg"
2020
alt="Contact Us">
2121
</picture>

_sass/about.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
}
1010
}
1111

12+
.about__background-img {
13+
@extend .page__background-img;
14+
}
15+
1216
.about__page-title-container {
1317
@extend .page__title-container;
1418
}

_sass/contact.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
}
1010
}
1111

12+
.contact__background-img {
13+
@extend .page__background-img;
14+
}
15+
1216
.contact__page-title-container {
1317
@extend .page__title-container;
1418
}

_sass/events.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
border-top-right-radius: 5px;
4949
}
5050

51+
.events-page__background-img {
52+
@extend .page__background-img;
53+
}
54+
5155
.events-page__event-col {
5256
@extend .post__event-col;
5357
border-bottom-left-radius: 5px;

_sass/style.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ a {
5151
}
5252
}
5353

54+
@media (orientation: landscape){
55+
.page__background-img {
56+
min-height: 250px;
57+
}
58+
}
59+
5460
.page__title-container {
5561
z-index: 2;
5662
position: absolute;

0 commit comments

Comments
 (0)