Skip to content

Commit 5ba2260

Browse files
committed
change page header implementation to allow it to flex for larger screens
1 parent 9b14c2d commit 5ba2260

File tree

5 files changed

+33
-2
lines changed

5 files changed

+33
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div class="full-width-imgbkg">
2-
<img src="{{site.baseurl}}/assets/images/1kcontributors/header_1kcontributors.png">
1+
<div class="image-header-centered">
2+
<img src="{{site.baseurl}}/assets/images/1kcontributors/hero_1k_graphic.svg" class="project-logo" title="Quarkus Core reaches 1000 Contributors milestone">
33
</div>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.image-header-centered {
2+
background-image: url(/assets/images/1kcontributors/header_1kcontributors.png);
3+
background-position: center center;
4+
background-repeat: no-repeat;
5+
background-color: $black;
6+
margin: 0 -13rem;
7+
display: flex;
8+
justify-content: center;
9+
10+
img {
11+
width: 33%;
12+
padding: 2rem 0;
13+
}
14+
15+
@media screen and (max-width: 1366px) {
16+
margin: 0 -4rem;
17+
18+
img {
19+
width: 50%;
20+
}
21+
}
22+
23+
@media screen and (max-width: 768px) {
24+
margin: 0 -2rem;
25+
26+
img {
27+
width: 60%;
28+
}
29+
}
30+
}

assets/css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ $baseurl: "{{ site.baseurl }}";
6666
@import "includes/language-band.scss";
6767
@import "includes/homepage-userstory-callout";
6868
@import "includes/contributor_list.scss";
69+
@import "includes/image-pageheader.scss";
6970
@import "includes/brand";
7071

-453 KB
Loading
-57.3 KB
Loading

0 commit comments

Comments
 (0)