Skip to content

Commit 3702547

Browse files
committed
Remove MDL; /pages -> /routes; /public/index.ejs -> /index.ejs
...refactor website layout, update core/router.js and utils/routes-loader.js (route.page -> route.component), replace package.json files with index.js; update copyright messages in source files; remove FastClick, babel-polyfill, classnames and react-mdl dependencies. Closes #14, closes #4
1 parent 811a17d commit 3702547

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+316
-422
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Node.js and NPM
55
node_modules
66
npm-debug.log
7+
tools/node_modules
8+
tools/npm-debug.log
79
*.tgz
810

911
# Misc

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-app",
3-
"version": "1.0.2",
3+
"version": "1.1.1",
44
"description": "Boilerplate and tooling for JavaScript application development with React",
55
"repository": "kriasoft/react-app",
66
"author": "Kriasoft <[email protected]> (https://www.kriasoft.com)",

template/.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ public/index.html
88
# Node.js and NPM
99
node_modules
1010
npm-debug.log
11-
12-
# Firebase
13-
firebase-debug.log

template/components/Button/Button.js

-70
This file was deleted.

template/components/Button/README.md

-27
This file was deleted.

template/components/Button/package.json

-6
This file was deleted.

template/components/Footer/Footer.js

-66
This file was deleted.

template/components/Footer/package.json

-6
This file was deleted.

template/components/Layout/Header.css

+27-16
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
11
/**
2-
* React Static Boilerplate
3-
* https://github.com/kriasoft/react-static-boilerplate
4-
*
5-
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
6-
*
7-
* This source code is licensed under the MIT license found in the
8-
* LICENSE.txt file in the root directory of this source tree.
9-
*/
2+
* React App SDK (https://github.com/kriasoft/react-app)
3+
*
4+
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
5+
*
6+
* This source code is licensed under the MIT license found in the
7+
* LICENSE.txt file in the root directory of this source tree.
8+
*/
109

11-
.row {
12-
padding: 40px;
10+
.header {
11+
background-color: #3f51b5;
12+
background-image: linear-gradient(-225deg,#3db0ef,#5e5bb7);
13+
}
14+
15+
.container {
16+
margin: 0 auto;
17+
max-width: 1000px;
1318
}
1419

1520
.title {
21+
display: block;
22+
padding: 2em 0 1.75em;
1623
color: #fff;
24+
text-align: center;
1725
text-decoration: none;
26+
font-weight: 100;
27+
font-size: 48px;
28+
font-family: Roboto, sans-serif;
1829
}
1930

20-
@media screen and (max-width: 1024px) {
31+
.title strong {
32+
font-weight: 300;
33+
}
2134

22-
.header {
23-
display: flex;
24-
}
35+
@media screen and (max-width: 1024px) {
2536

26-
.row {
27-
padding: 0 16px;
37+
.title {
38+
font-size: 36px;
2839
}
2940

3041
}

template/components/Layout/Header.js

+12-26
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* React Static Boilerplate
3-
* https://github.com/kriasoft/react-static-boilerplate
2+
* React App SDK (https://github.com/kriasoft/react-app)
43
*
54
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
65
*
@@ -13,30 +12,17 @@ import Navigation from './Navigation';
1312
import Link from '../Link';
1413
import s from './Header.css';
1514

16-
class Header extends React.Component {
17-
18-
componentDidMount() {
19-
window.componentHandler.upgradeElement(this.root);
20-
}
21-
22-
componentWillUnmount() {
23-
window.componentHandler.downgradeElements(this.root);
24-
}
25-
26-
render() {
27-
return (
28-
<header className={`mdl-layout__header ${s.header}`} ref={node => (this.root = node)}>
29-
<div className={`mdl-layout__header-row ${s.row}`}>
30-
<Link className={`mdl-layout-title ${s.title}`} to="/">
31-
React Static Boilerplate
32-
</Link>
33-
<div className="mdl-layout-spacer"></div>
34-
<Navigation />
35-
</div>
36-
</header>
37-
);
38-
}
39-
15+
function Header() {
16+
return (
17+
<header className={s.header}>
18+
<div className={s.container}>
19+
<Link className={s.title} to="/">
20+
React App <strong>Starter Kit</strong>
21+
</Link>
22+
<Navigation />
23+
</div>
24+
</header>
25+
);
4026
}
4127

4228
export default Header;

template/components/Layout/Layout.css

+39-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,50 @@
11
/**
2-
* React Static Boilerplate
3-
* https://github.com/kriasoft/react-static-boilerplate
2+
* React App SDK (https://github.com/kriasoft/react-app)
43
*
54
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
65
*
76
* This source code is licensed under the MIT license found in the
87
* LICENSE.txt file in the root directory of this source tree.
98
*/
109

10+
html {
11+
font-family: Roboto, Helvetica, Arial, sans-serif;
12+
13+
/* Prevent iOS and IE text size adjust after device orientation change,
14+
* without disabling user zoom. */
15+
-ms-text-size-adjust: 100%;
16+
-webkit-text-size-adjust: 100%;
17+
}
18+
19+
body {
20+
margin: 0;
21+
background-color: rgb(253, 253, 253);
22+
color: #222;
23+
font-size: 1em;
24+
line-height: 1.4;
25+
}
26+
27+
a {
28+
/* Remove the gray background color from active links in IE 10. */
29+
background-color: transparent;
30+
}
31+
32+
a:active,
33+
a:hover {
34+
/* Improve readability of focused elements when they are also in an
35+
* active/hover state. */
36+
outline: 0;
37+
}
38+
39+
h1 {
40+
margin: 0.67em 0;
41+
font-size: 2em;
42+
}
43+
44+
.root {
45+
46+
}
47+
1148
.content {
1249
margin: 0 auto;
1350
max-width: 1000px;

0 commit comments

Comments
 (0)