Skip to content

Commit a752465

Browse files
committed
Merge branch 'chrisdothtml-feature/root-intro' into develop
2 parents eaa2958 + b788c09 commit a752465

File tree

3 files changed

+47
-20
lines changed

3 files changed

+47
-20
lines changed

components/splash/splash-style.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
&__viz {
55
position:relative;
66
display:flex;
7-
height:100vh;
8-
min-height:600px;
9-
max-height:900px;
7+
height:500px;
108
}
119

1210
&__modules,

components/splash/splash.jsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,12 @@ export default props => {
2020
</Container>
2121
</section>
2222
<section className="splash__viz">
23-
<div className="splash__modules">
24-
25-
</div>
26-
2723
<div className="splash__icon">
2824
<Cube className="splash__cube" depth={ 150 } />
2925
</div>
3026

31-
<div className="splash__output">
32-
33-
</div>
34-
3527
<span className="splash__headline">
36-
webpack transforms your&nbsp;
37-
<Link to="/concepts/modules">modules</Link>
38-
&nbsp;into production-ready&nbsp;
39-
<Link to="/concepts/output">bundles</Link>
40-
&nbsp;and assets
28+
Who said front-end code can't be modular?
4129
</span>
4230
</section>
4331

content/index.md

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
1-
---
2-
title: Splash Content
3-
---
1+
**index.js**
42

5-
Still debating what to do with this section.
3+
```js
4+
const foo = require('./foo.js')
5+
6+
foo.bar()
7+
```
8+
9+
**foo.js**
10+
11+
```js
12+
module.exports = {
13+
bar: function () {
14+
//
15+
}
16+
}
17+
```
18+
19+
## Bundle your [modules](/concepts/modules) with webpack.
20+
21+
**webpack.config.js**
22+
23+
```js
24+
module.exports = {
25+
entry: './index.js',
26+
output: {
27+
path: 'bundle.js'
28+
}
29+
}
30+
```
31+
32+
**page.html**
33+
34+
```html
35+
<html>
36+
<head>
37+
...
38+
</head>
39+
<body>
40+
...
41+
<script src="/bundle.js"></script>
42+
</body>
43+
</html>
44+
```
45+
46+
## It's really that simple. [Get started](/get-started) now!

0 commit comments

Comments
 (0)