0
0
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:
Scott Tolksdorf
2016-05-14 18:17:04 -04:00
parent 5f55a59042
commit 92e110ba15
8 changed files with 99 additions and 9 deletions

View 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;

View 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;
}
}
}

View 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;

View File

@@ -0,0 +1,4 @@
@import 'naturalcrit/styles/core.less';
.spellsort{
}