mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 15:12:43 +00:00
Creating the initial frameowkr for a new tool
This commit is contained in:
21
client/spellsort/navbar/navbar.jsx
Normal file
21
client/spellsort/navbar/navbar.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
var React = require('react');
|
||||
var _ = require('lodash');
|
||||
|
||||
var Nav = require('naturalcrit/nav/nav.jsx');
|
||||
|
||||
var Navbar = React.createClass({
|
||||
render : function(){
|
||||
return <Nav.base>
|
||||
<Nav.section>
|
||||
<Nav.logo />
|
||||
<Nav.item href='/spellsort' className='spellsortLogo'>
|
||||
<div>Spellsort</div>
|
||||
</Nav.item>
|
||||
<Nav.item>v0.0.0</Nav.item>
|
||||
</Nav.section>
|
||||
{this.props.children}
|
||||
</Nav.base>
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = Navbar;
|
||||
16
client/spellsort/navbar/navbar.less
Normal file
16
client/spellsort/navbar/navbar.less
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
.spellsort nav{
|
||||
.spellsortLogo{
|
||||
.animate(color);
|
||||
font-family : CodeBold;
|
||||
font-size : 12px;
|
||||
color : white;
|
||||
div{
|
||||
margin-top : 2px;
|
||||
margin-bottom : -2px;
|
||||
}
|
||||
&:hover{
|
||||
color : @teal;
|
||||
}
|
||||
}
|
||||
}
|
||||
33
client/spellsort/spellsort.jsx
Normal file
33
client/spellsort/spellsort.jsx
Normal file
@@ -0,0 +1,33 @@
|
||||
var React = require('react');
|
||||
var _ = require('lodash');
|
||||
var cx = require('classnames');
|
||||
|
||||
var Nav = require('naturalcrit/nav/nav.jsx');
|
||||
var Navbar = require('./navbar/navbar.jsx');
|
||||
|
||||
var SplitPane = require('naturalcrit/splitPane/splitPane.jsx');
|
||||
|
||||
var SpellSort = React.createClass({
|
||||
|
||||
handleSplitMove : function(){
|
||||
|
||||
},
|
||||
|
||||
render : function(){
|
||||
return <div className='spellsort page'>
|
||||
<Navbar>
|
||||
|
||||
</Navbar>
|
||||
<div className='content'>
|
||||
<SplitPane onDragFinish={this.handleSplitMove} ref='pane'>
|
||||
|
||||
<div>pane 1</div>
|
||||
<div>pane 2</div>
|
||||
|
||||
</SplitPane>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = SpellSort;
|
||||
4
client/spellsort/spellsort.less
Normal file
4
client/spellsort/spellsort.less
Normal file
@@ -0,0 +1,4 @@
|
||||
@import 'naturalcrit/styles/core.less';
|
||||
.spellsort{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user