Skip to content

Commit 57760fc

Browse files
committed
🛠 modify landing page
1 parent 4e4360e commit 57760fc

File tree

4 files changed

+44
-13
lines changed

4 files changed

+44
-13
lines changed

packages/react-scripts/template/src/App.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ class App extends Component {
1212
<div className="App">
1313
<div className="App-header">
1414
<img src={logo} className="App-logo" alt="logo"/>
15-
<h2 className="App-title"> ☢ Customizable create-react-app ☢ </h2>
15+
<h2 className="App-title"> ☢ custom-react-scripts ☢ </h2>
16+
<div className="App-subtitle"> allow custom config for create-react-app without ejecting</div>
1617
</div>
1718

1819
<div className={styles.description}>
19-
<p> If you want to enable certain features just modify the <b>.env</b> file in the root directory of this
20+
21+
<div className={styles.command}>
22+
<code>create-react-app my-app --scripts-version custom-react-scripts</code>
23+
</div>
24+
25+
<p> If you want to enable/disable certain features just modify the <b>.env</b> file in the root directory of
26+
the
2027
project.
2128
</p>
2229

@@ -60,7 +67,7 @@ class App extends Component {
6067
<ul className="configs babel-configs">
6168
<li>
6269
<code>REACT_APP_WEBPACK_DASHBOARD=true</code>
63-
<span>- Enable webpack-dashboard ⚠️ (this will turn off the original create-react-app message logs)</span>
70+
<span>- Enable webpack-dashboard ⚠️ <span className={styles.experimental}>(experimental)</span> </span>
6471
</li>
6572
</ul>
6673

@@ -76,6 +83,11 @@ class App extends Component {
7683
</li>
7784
</ul>
7885

86+
<br/>
87+
<br/>
88+
<a target="_blank" className={styles.readmeLink} href="https://github.com/kitze/create-react-app/tree/master/packages/react-scripts">
89+
Link to full README.md
90+
</a>
7991
</div>
8092
</div>
8193
)

packages/react-scripts/template/src/App.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
&-title {
33
justify-content: center;
44
}
5+
6+
&-subtitle {
7+
font-weight: 100;
8+
}
9+
510
}

packages/react-scripts/template/src/App.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.App {
1818
&-header {
1919
background-color: #222;
20-
height: 150px;
20+
height: 180px;
2121
padding: 20px;
2222
color: white;
2323
text-align: center;
@@ -32,13 +32,14 @@
3232
li {
3333
margin: 15px 0px;
3434
}
35-
code {
36-
border-radius: 3px;
37-
padding: 2px 10px;
38-
font-size: 17px;
39-
margin-right: 10px;
40-
background-color: rgba(222, 222, 222, 0.34);
41-
border: 1px solid #cccccc;
42-
color: #868686;
43-
}
35+
}
36+
37+
code {
38+
border-radius: 3px;
39+
padding: 2px 10px;
40+
font-size: 17px;
41+
margin-right: 10px;
42+
background-color: rgba(222, 222, 222, 0.34);
43+
border: 1px solid #cccccc;
44+
color: #868686;
4445
}

packages/react-scripts/template/src/Modules.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@
1818
line-height: 20px;
1919
font-weight: 100;
2020
color: #e68484;
21+
}
22+
23+
.command {
24+
margin: 40px 0px 50px 0;
25+
}
26+
27+
.readmeLink {
28+
font-size: 18px;
29+
}
30+
31+
.experimental {
32+
font-size: 12px;
33+
font-weight: 100;
2134
}

0 commit comments

Comments
 (0)