Skip to content

Commit

Permalink
Reorganize site
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed May 27, 2018
1 parent ebf4146 commit 37263df
Show file tree
Hide file tree
Showing 103 changed files with 104 additions and 762 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
docs
site
test
stories
coverage
.nyc_output
.site
Expand Down
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ before_deploy:
- npm install
- npm run build
- npm run card
- cd ..
- cp .site/index.html .site/404.html
- cp dist/index.html dist/404.html
deploy:
edge:
branch: v1.8.47
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: .site
local_dir: docs/dist
on:
branch: master
356 changes: 0 additions & 356 deletions docs/404.html

This file was deleted.

76 changes: 0 additions & 76 deletions docs/demo/bundle.js

This file was deleted.

247 changes: 0 additions & 247 deletions docs/demo/index.html

This file was deleted.

26 changes: 0 additions & 26 deletions docs/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions docs/webpack.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"system-components": "^2.0.2"
},
"devDependencies": {
"@compositor/x0": "^5.0.0-11",
"@compositor/x0": "^5.0.0",
"ava": "^0.25.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions site/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"private": true,
"scripts": {
"start": "x0 dev pages -op 9000",
"build": "x0 build pages",
"card": "repng src/Card.js -w 1024 -h 512 -d dist -f card.png"
},
"devDependencies": {
"@compositor/kit": "^1.0.35",
"@compositor/x0": "^5.0.1",
"rebass": "^2.0.0-2",
"refunk": "^3.0.1",
"repng": "^3.0.0",
"styled-components": "^3.3.0"
},
"x0": {
"title": "Rebass",
"basename": "/rebass",
"meta": [
{
"name": "twitter:card",
"content": "summary_large_image"
},
{
"name": "twitter:site",
"content": "@jxnblk"
},
{
"name": "twitter:title",
"content": "Rebass"
},
{
"name": "twitter:description",
"content": "React UI component library & design system, built with styled-components and styled-system"
},
{
"name": "twitter:image",
"content": "https://jxnblk.com/rebass/card.png"
}
],
"links": [
{
"rel": "stylesheet",
"href": "https://fonts.googleapis.com/css?family=Roboto+Mono"
}
]
}
}
11 changes: 11 additions & 0 deletions site/pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'
import { Provider as RebassProvider } from 'rebass'
import { Provider as RefunkProvider } from 'refunk'
import pkg from 'rebass/package.json'

export default ({ render }) =>
<RefunkProvider pkg={pkg}>
<RebassProvider>
{render()}
</RebassProvider>
</RefunkProvider>
8 changes: 8 additions & 0 deletions site/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react'

import Hero from '../src/Hero'

export default () =>
<React.Fragment>
<Hero />
</React.Fragment>
2 changes: 1 addition & 1 deletion docs/pages/demo.js → site/pages/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import connect from 'refunk'
import { connect } from 'refunk'
import {
Provider as KitProvider,
Library,
Expand Down
File renamed without changes.
42 changes: 19 additions & 23 deletions docs/src/Hero.js → site/src/Hero.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import connect from 'refunk'
import { connect } from 'refunk'
import styled from 'styled-components'
import { Link } from 'react-router-dom'
import {
Expand All @@ -18,28 +18,24 @@ import {
import Logo from './Logo'
// import Tweet from './Tweet'

const Root = styled(Banner)`
background-attachment: fixed;
`

const PrimaryButton = styled(Button)`
transition: background-color .2s ease-out;
&:hover {
background-color: magenta;
const PrimaryButton = styled(Button)({
transition: 'background-color .2s ease-out',
'&:hover': {
backgroundColor: 'magenta'
}
`
const SecondaryButton = ButtonOutline.extend`
transition: .2s ease-out;
transition-property: color, box-shadow;
&:hover {
color: magenta;
background-color: transparent;
box-shadow: inset 0 0 0 2px magenta;
})

const SecondaryButton = styled(ButtonOutline)({
transition: '.2s ease-out',
transitionProperty: 'color, box-shadow',
'&:hover': {
color: 'magenta',
backgroundColor: 'transparent',
boxShadow: 'inset 0 0 0 2px magenta'
}
`
})

const Title = Heading.extend`
`
const Title = styled(Heading)([])

const Header = connect(props => (
<Banner
Expand All @@ -65,12 +61,12 @@ const Header = connect(props => (
Rebass
</Title>
<Pre mb={2}>v{props.pkg.version}</Pre>
<Lead fontWeight='bold'>
<Lead mb={3} fontWeight='bold'>
{props.pkg.description}
</Lead>
<Flex
mx={-3}
mb={3}
mb={4}
width={1}
flexWrap='wrap'
alignItems='center'>
Expand All @@ -95,7 +91,7 @@ const Header = connect(props => (
mx={3}
my={3}
/>
<Pre mx={3}>npm i rebass@next</Pre>
<Pre color='magenta' mx={3} my={3}>npm i rebass@next</Pre>
</Flex>
<Flex
mt={3}
Expand Down
18 changes: 13 additions & 5 deletions docs/src/Logo.js → site/src/Logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,25 @@ const spin2 = keyframes`
100% { transform: rotate3d(1, 0, 1, 360deg) }
`

const fade1 = keyframes`
0% { stroke: magenta }
33% { stroke: cyan }
66% { stroke: yellow }
100% { stroke: magenta }
`

const Electron1 = styled.circle`
transform-origin: 50% 50%;
animation-name: ${spin1};
animation-duration: 3s;
animation-name: ${spin1}, ${fade1};
animation-duration: 3s, 5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
`

const Electron2 = styled.circle`
transform-origin: 50% 50%;
animation-name: ${spin2};
animation-duration: 3s;
animation-name: ${spin2}, ${fade1};
animation-duration: 3s, 6s;
animation-timing-function: linear;
animation-iteration-count: infinite;
`
Expand Down Expand Up @@ -100,8 +107,9 @@ const Logo = props => {
cx={32}
cy={32}
r={30}
strokeWidth={4}
strokeWidth={1}
vectorEffect='non-scaling-stroke'
opacity={1/2}
/>
{electrons}
</Svg>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 37263df

Please sign in to comment.