Skip to content

Commit c31cf89

Browse files
committed
adding darker bg to intro, tweaking section spacing
1 parent dd9ce0c commit c31cf89

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed

components/splash/splash-style.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,23 @@
44
.splash {
55
&__section {
66
position:relative;
7-
padding:5em 1em;
87
text-align:center;
98

10-
&:last-child {
11-
padding-top: 0;
9+
&__dark {
10+
background-color:#f3f3f3;
1211
}
1312

14-
@include break {
15-
padding:8em 1.5em;
13+
.container {
14+
padding:5em 1em;
15+
16+
@include break {
17+
padding-left:1.5em;
18+
padding-right:1.5em;
19+
}
1620
}
1721

18-
pre {
19-
text-align:left;
22+
pre {
23+
text-align:left;
2024
}
2125

2226
.icon-link {

components/splash/splash.jsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,28 @@ export default props => {
1717
id="components/splash-viz/splash-viz.jsx"
1818
component={ SplashViz } />
1919

20-
<Container className="splash__section">
21-
<h1>{ page.title }</h1>
22-
<div dangerouslySetInnerHTML={{
23-
__html: page.content
24-
}} />
25-
</Container>
20+
<div className="splash__section splash__section__dark">
21+
<Container>
22+
<h1>{ page.title }</h1>
23+
<div dangerouslySetInnerHTML={{
24+
__html: page.content
25+
}} />
26+
</Container>
27+
</div>
2628

27-
<Container className="splash__section">
28-
<h1>Support the Team</h1>
29+
<div className="splash__section">
30+
<Container>
31+
<h1>Support the Team</h1>
2932

30-
<p>Through contributions, donations, and sponsorship, you allow webpack to thrive. Your donations directly support office hours, continued enhancements, and most importantly, great documentation and learning material!</p>
33+
<p>Through contributions, donations, and sponsorship, you allow webpack to thrive. Your donations directly support office hours, continued enhancements, and most importantly, great documentation and learning material!</p>
3134

32-
<h2>Sponsors</h2>
33-
<Support number={ 40 } type="sponsor" />
35+
<h2>Sponsors</h2>
36+
<Support number={ 40 } type="sponsor" />
3437

35-
<h2>Backers</h2>
36-
<Support number={ 130 } type="backer" />
37-
</Container>
38+
<h2>Backers</h2>
39+
<Support number={ 130 } type="backer" />
40+
</Container>
41+
</div>
3842
</div>
3943
);
4044
};

0 commit comments

Comments
 (0)