Skip to content

Commit aa8c547

Browse files
committed
docs(readme): initial readme
1 parent 8a06d3e commit aa8c547

File tree

32 files changed

+40574
-9
lines changed

32 files changed

+40574
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.smooth
12
node_modules/
23
dist/
34
lib/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Smooth.js
1+
packages/smooth-core/README.md

examples/emotion/package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "smooth dev",
5+
"build": "smooth build",
6+
"start": "smooth start"
7+
},
8+
"dependencies": {
9+
"@emotion/core": "^10.0.6",
10+
"react": "^16.7.0",
11+
"react-dom": "^16.7.0",
12+
"smooth-core": "^0.1.1-alpha.8"
13+
}
14+
}

examples/emotion/src/pages/index$.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/** @jsx jsx */
2+
import { jsx, css } from '@emotion/core'
3+
4+
export default () => (
5+
<div
6+
css={css`
7+
font: 15px Helvetica, Arial, sans-serif;
8+
background: #eee;
9+
padding: 100px;
10+
text-align: center;
11+
transition: 100ms ease-in background;
12+
13+
&:hover {
14+
background: #ccc;
15+
}
16+
`}
17+
>
18+
<p>Hello World</p>
19+
</div>
20+
)

examples/emotion/yarn.lock

Lines changed: 5613 additions & 0 deletions
Large diffs are not rendered by default.

examples/hello-world/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "smooth dev",
5+
"build": "smooth build",
6+
"start": "smooth start"
7+
},
8+
"dependencies": {
9+
"react": "^16.7.0",
10+
"react-dom": "^16.7.0",
11+
"smooth-core": "^0.1.1-alpha.8"
12+
}
13+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react'
2+
3+
export default () => <div>About</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
import { Link } from 'smooth-core/router'
3+
4+
export default () => (
5+
<div>
6+
Hello World.
7+
<Link to="/about">About</Link>
8+
</div>
9+
)

examples/hello-world/yarn.lock

Lines changed: 5613 additions & 0 deletions
Large diffs are not rendered by default.

examples/simple/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "smooth dev",
5+
"build": "smooth build",
6+
"start": "smooth start"
7+
},
8+
"dependencies": {
9+
"react": "^16.7.0",
10+
"react-dom": "^16.7.0",
11+
"smooth-core": "^0.1.1-alpha.8"
12+
}
13+
}

examples/simple/src/pages/index$.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => 'Hello world'

examples/simple/yarn.lock

Lines changed: 5613 additions & 0 deletions
Large diffs are not rendered by default.

examples/with-app-layout/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "smooth dev",
5+
"build": "smooth build",
6+
"start": "smooth start"
7+
},
8+
"dependencies": {
9+
"react": "^16.7.0",
10+
"react-dom": "^16.7.0",
11+
"smooth-core": "^0.1.1-alpha.8"
12+
}
13+
}

examples/with-app-layout/src/_app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react'
2+
3+
export default ({ Component, ...props }) => (
4+
<div className="layout">
5+
<Component {...props} />
6+
</div>
7+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => 'Hello world'

0 commit comments

Comments
 (0)