-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(docs): mv to index.js files * feat(docs): use routes for doc pages * feat(ComponentExamples): recognize old index filenames * refactor(docs): update breadcrumb docs * feat(PageNotFound): add unsplash page not found * feat(Sidebar): use Link with active class * docs(ComponentProps): add required column * docs(ComponentExamples): add missing examples message * feat(Sidebar): add logo and github link
- Loading branch information
1 parent
84f2ac2
commit e30a3c1
Showing
70 changed files
with
370 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'semantic-ui-css/semantic.css' | ||
import 'highlight.js/styles/github.css' | ||
import React, { Component, PropTypes } from 'react' | ||
|
||
import Sidebar from 'docs/app/Components/Sidebar/Sidebar' | ||
import style from 'docs/app/Style' | ||
import { Grid } from 'stardust' | ||
|
||
export default class Root extends Component { | ||
static propTypes = { | ||
children: PropTypes.node, | ||
} | ||
|
||
render() { | ||
return ( | ||
<div style={style.container}> | ||
<Sidebar style={style.menu} /> | ||
<div style={style.main}> | ||
<Grid className='padded'> | ||
<Grid.Column> | ||
{this.props.children} | ||
</Grid.Column> | ||
</Grid> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import _ from 'lodash' | ||
import React, { Component } from 'react' | ||
import { Button, Header, Loader } from 'stardust' | ||
|
||
const containerStyle = { | ||
position: 'absolute', | ||
top: 0, | ||
bottom: 0, | ||
left: 0, | ||
right: 0, | ||
height: '100vh', | ||
zIndex: 3000, | ||
} | ||
|
||
const textStyle = { | ||
position: 'absolute', | ||
padding: '1em', | ||
top: 0, | ||
left: 0, | ||
right: 0, | ||
backgroundImage: 'linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2 ))', | ||
zIndex: 4000, | ||
} | ||
|
||
const imageStyle = { | ||
position: 'absolute', | ||
backgroundSize: 'cover', | ||
width: '100%', | ||
height: '100%', | ||
zIndex: 2000, | ||
} | ||
|
||
// we use slightly random sized image sizes to ensure we get a new image from unsplash.it | ||
const getImageUrl = () => `url(//unsplash.it/${_.random(1500, 1600)}/${_.random(1100, 1200)}})` | ||
|
||
class PageNotFound extends Component { | ||
state = { backgroundImage: getImageUrl() } | ||
|
||
getNewImage = () => this.setState({ backgroundImage: getImageUrl() }) | ||
|
||
render() { | ||
const { backgroundImage } = this.state | ||
return ( | ||
<div style={containerStyle}> | ||
<div style={textStyle}> | ||
<Header inverted> | ||
Couldn't find that, but check this out: | ||
</Header> | ||
<Button className='mini inverted basic' onClick={this.getNewImage}> | ||
See Another | ||
</Button> | ||
</div> | ||
<div style={{ ...imageStyle, backgroundImage }} /> | ||
<Loader active /> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default PageNotFound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...pp/Examples/addons/Radio/RadioExamples.js → docs/app/Examples/addons/Radio/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.