Skip to content

Commit 88ffe95

Browse files
committed
feat(about): add hero styles
* Adjust about markup
1 parent b5175f1 commit 88ffe95

File tree

4 files changed

+69
-8
lines changed

4 files changed

+69
-8
lines changed

about.hbs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{{!< default}}
22
<header class='page-about__hero'>
3-
{{#get 'pages' filter="title:'About::Hero - Body'" limit='1'}}
4-
{{#foreach pages}}
5-
{{content}}
6-
{{/foreach}}
7-
{{/get}}
8-
<section class='kg-button-card__group'>
9-
{{#get 'pages' filter='tag:hash-about-hero-cta' limit='2'}}
3+
<div class='page-about__hero__inner'>
4+
{{#get 'pages' filter="title:'About::Hero - Body'" limit='1'}}
105
{{#foreach pages}}
116
{{content}}
127
{{/foreach}}
138
{{/get}}
14-
</section>
9+
<section class='kg-button-card__group'>
10+
{{#get 'pages' filter='tag:hash-about-hero-cta' limit='2'}}
11+
{{#foreach pages}}
12+
{{content}}
13+
{{/foreach}}
14+
{{/get}}
15+
</section>
16+
</div>
1517
</header>
1618
{{> 'get-involved' }}
612 KB
Loading

src/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@import './pages/home.css';
2525
@import './pages/conferences.css';
2626
@import './pages/open-source.css';
27+
@import './pages/about.css';
2728

2829
@import './modern.css';
2930

src/css/pages/about.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
.page-about {
2+
main {
3+
padding-top: 0;
4+
}
5+
6+
.page-about__hero {
7+
align-items: center;
8+
background-image: url('/assets/images/about__hero--background.jpg');
9+
background-repeat: no-repeat;
10+
background-size: cover;
11+
color: white;
12+
display: flex;
13+
justify-content: center;
14+
}
15+
16+
.page-about__hero__inner {
17+
max-width: 1135px;
18+
padding: 96px 40px;
19+
20+
h2,
21+
p {
22+
margin-bottom: 32px;
23+
}
24+
25+
h1 {
26+
margin-bottom: 16px;
27+
text-transform: uppercase;
28+
}
29+
30+
h2 {
31+
font-size: 2rem;
32+
}
33+
}
34+
35+
@media (min-width: 834px) {
36+
.page-about__hero {
37+
min-height: 834px;
38+
}
39+
40+
.page-about__hero__inner {
41+
padding: 0 56px;
42+
43+
h2 {
44+
font-size: 2rem;
45+
}
46+
}
47+
}
48+
49+
@media (min-width: 1440px) {
50+
.page-about__hero {
51+
min-height: 980px;
52+
}
53+
54+
.page-about__hero__inner {
55+
padding: 0;
56+
}
57+
}
58+
}

0 commit comments

Comments
 (0)