Skip to content

Commit eb3dd91

Browse files
authored
Merge pull request creativecommons#407 from creativecommons/update_hero
Update image and columns for the hero section.
2 parents 9107e55 + e6a3bc0 commit eb3dd91

File tree

2 files changed

+31
-15
lines changed

2 files changed

+31
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
<section class="container hero">
2-
<div class="hero-title column is-9 is-paddingless">
3-
<h1>
4-
{{ this.title }}
5-
</h1>
6-
</div>
7-
<div class="columns">
8-
<div class="column is-one-third">
9-
<p class="hero-description">
10-
{{ this.description }}
11-
</p>
12-
{{ this.links }}
1+
<section class="hero">
2+
<div class="container">
3+
<div class="hero-title column is-12 is-paddingless">
4+
<h1>
5+
{{ this.title }}
6+
</h1>
137
</div>
14-
<div class="column">
15-
<img src="./github.svg" />
8+
<div class="columns">
9+
<div class="column is-5">
10+
<p class="hero-description">
11+
{{ this.description }}
12+
</p>
13+
{{ this.links }}
14+
</div>
1615
</div>
1716
</div>
17+
<div class="level-right hero-image">
18+
<img class="image" src="./github.svg" />
19+
</div>
1820
</section>

webpack/sass/main.scss

+15-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ code {
6363
}
6464

6565
.hero-links {
66-
@extend .margin-top-normal;
66+
@extend .margin-vertical-normal;
6767
@extend .padding-horizontal-big;
6868

6969
.button {
@@ -76,6 +76,20 @@ code {
7676
}
7777
}
7878
}
79+
80+
.hero-image {
81+
@include from($fullhd) {
82+
margin-top: -20rem;
83+
.image {
84+
width: 50%;
85+
}
86+
}
87+
@include until($fullhd) {
88+
.image {
89+
width: 100%;
90+
}
91+
}
92+
}
7993
}
8094

8195
// Get-involved section - Home page

0 commit comments

Comments
 (0)