Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed Dec 15, 2017
1 parent e280db4 commit 10f72e1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 56 deletions.
11 changes: 11 additions & 0 deletions LICENSE.md
@@ -0,0 +1,11 @@

# The MIT License (MIT)

Copyright (c) 2017 Compositor, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

54 changes: 1 addition & 53 deletions docs/App.js
Expand Up @@ -16,7 +16,6 @@ import Title from './Title'
import Video from './Video'
import Btn from './Btn'
import BtnOutline from './BtnOutline'
import Tweet from './Tweet'

const App = connect(props => <React.Fragment>
<head>
Expand Down Expand Up @@ -46,7 +45,6 @@ const App = connect(props => <React.Fragment>
href='https://github.com/c8r/x0'>
GitHub
</NavLink>
<Tweet />
</Flex>
</nav>
<header>
Expand All @@ -65,26 +63,8 @@ const App = connect(props => <React.Fragment>
/>
</Box>
<Box py={3}>
<Pre f={1} color='cyan'>npm install @compositor/x0</Pre>
<Pre f={1}>npm install @compositor/x0</Pre>
</Box>
<section id='features'>
<Box py={4}>
<Text f={4} mb={2} fontWeight='600'>Features</Text>
<Flex wrap mx={-2}>
{props.features.map(feat => (
<Box
key={feat}
w={[ 1, 1/2, 1/2 ]}
px={2}
py={1}>
<Text fontWeight='600'>
{feat}
</Text>
</Box>
))}
</Flex>
</Box>
</section>
<section id='get-started'>
<Box py={4}>
<Text f={4} fontWeight='600'>Get Started</Text>
Expand All @@ -103,42 +83,10 @@ const App = connect(props => <React.Fragment>
</Container>
</React.Fragment>)

App.defaultProps = {
count: 32,
features: [
'Isolated development environment',
'Static site generator',
'Hot reloading',
'Works with virtually any React component',
'No confusing APIs',
'No boilerplate generators',
'Supports routing with react-router',
'Works with CSS-in-JS libraries like styled-components',
'Support for async data fetching',
]
}

App.getInitialProps = async (props) => {
return {
hello: 'hi',
}
}

const scripts = `
window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));
`

export default App
2 changes: 1 addition & 1 deletion docs/Style.js
Expand Up @@ -15,7 +15,7 @@ const base = `
line-height: 1.5;
min-height: 100vh;
color: #000;
background-color: #f6f6f6;
background-color: #fff;
-webkit-font-smoothing: antialiased;
}
`
Expand Down
16 changes: 16 additions & 0 deletions docs/index.html
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<meta charset='utf-8'>

<head><title>Compositor x0</title><meta name="description"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@getcompositor"/><meta name="twitter:title" content="Compositor x0"/><meta name="twitter:description"/><meta name="twitter:image" content="https://compositor.io/logo/dist/compositor-black.png"/><style>
*{box-sizing:border-box}
:root {
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.5;
min-height: 100vh;
color: #000;
background-color: #fff;
-webkit-font-smoothing: antialiased;
}
</style></head><div class="nanov6vxax"><nav><div class="nanosx9e3b"><a href="https://compositor.io" class="nanoxi0jei"><div class="nano1u2e98s"><svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 -12 24 24" style="display:block;margin:0" width="32" height="32"><rect x="-12" y="-12" width="24" height="24" fill="white"></rect><rect x="-4" y="-8" width="8" height="16" fill="black"></rect></svg><div class="nano1pdbqw0">Compositor</div><style>.nano1pdbqw0{font-size:10px}.nano1pdbqw0{font-weight:600}.nano1pdbqw0{text-transform:uppercase;letter-spacing:.2em}</style></div><style>.nano1u2e98s{margin-left:-8px}.nano1u2e98s{display:flex}.nano1u2e98s{align-items:center}</style></a><style>.nanoxi0jei{display:block;color:inherit;text-decoration:none}</style><div class="nano1grpzsw"></div><style>.nano1grpzsw{margin-left:auto;margin-right:auto}</style><a href="https://github.com/c8r/x0" class="nanooiywwh">GitHub</a><style>.nanooiywwh{text-decoration:none;display:inline-block;font-weight:bold;text-transform:uppercase;letter-spacing:0.2em;padding:8px;color:inherit}.nanooiywwh{font-size:10px}.nanooiywwh{margin-right:8px}</style></div><style>.nanosx9e3b{display:flex}.nanosx9e3b{align-items:center}.nanosx9e3b{flex-wrap:wrap}</style></nav><header><div class="nano1l7e2jv"><h1 m="0" class="nano150ti37">x0</h1><style>.nano150ti37{font-size:64px;font-weight:600;line-height:1.25}.nano150ti37{margin:0px}</style><div class="nano1uksl6t">Zero-config React development environment and static site generator</div><style>.nano1uksl6t{font-size:20px}.nano1uksl6t{font-weight:600}.nano1uksl6t{margin-bottom:16px}</style><div class="nano1nucgho">v3.0.0</div><style>.nano1nucgho{font-size:12px}.nano1nucgho{font-family:"Roboto Mono", Menlo, monospace}</style></div><style>.nano1l7e2jv{padding-bottom:32px;padding-top:64px}</style></header><main><div class="nano1bykfi2"><video loop="" autoplay="" src="demo.mp4" class="nano5m3rv9"></video><style>.nano5m3rv9{display:block;width:100%;height:auto;margin:0}</style></div><div class="nanoq0vyd3"><pre class="nanorwxul5">npm install @compositor/x0</pre><style>.nanorwxul5{font-family:"Roboto Mono", Menlo, monospace;margin:0;padding:0}.nanorwxul5{font-size:14px}</style></div><style>.nanoq0vyd3{padding-top:32px;padding-bottom:32px}</style><section id="get-started"><div class="nanoq4qa9y"><div class="nano198h2e9">Get Started</div><style>.nano198h2e9{font-size:24px}.nano198h2e9{font-weight:600}</style><div class="nano1m6nlin">Read the docs and get started on GitHub or sign up for updates.</div><style>.nano1m6nlin{margin-bottom:32px}</style><a href="https://github.com/c8r/x0" class="nanop5q5kx">Documentation</a><style>.nanop5q5kx{display:inline-block;text-decoration:none;font-size:12px;font-weight:bold;text-transform:uppercase;letter-spacing:.2em;padding-top:12px;padding-bottom:12px;padding-left:24px;padding-right:24px;color:white;background-color:black;border:0;border-radius:8px}.nanop5q5kx{margin-right:16px}</style></div><style>.nanoq4qa9y{padding-top:64px;padding-bottom:64px}</style></section><footer><div class="nano1dfuwer"><div class="nano1g5hjxy">© 2017 Compositor, Inc.</div><style>.nano1g5hjxy{font-size:12px}</style></div><style>.nano1dfuwer{padding-bottom:32px;padding-top:64px}.nano1dfuwer{display:flex}</style></footer></main></div><style>.nanov6vxax{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px}@media screen and (min-width: 40em){.nanov6vxax{padding-left:32px;padding-right:32px}}.nanov6vxax{max-width:768px}</style>


3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -8,8 +8,7 @@
},
"scripts": {
"start": "./bin/cli.js dev docs/App.js -op 8888",
"build": "./bin/cli.js build docs/App.js --static -d docs --cssLibrary='fela'",
"client": "./bin/cli.js build docs/App.js -d docs",
"build": "./bin/cli.js build docs/App.js --static -d docs",
"test": "nyc ava",
"cover": "nyc report --reporter=html --reporter=lcov"
},
Expand Down

0 comments on commit 10f72e1

Please sign in to comment.