diff --git a/client/homebrew/homebrew.less b/client/homebrew/homebrew.less
index f454f1b..e5039e5 100644
--- a/client/homebrew/homebrew.less
+++ b/client/homebrew/homebrew.less
@@ -1,18 +1,16 @@
+
@import 'naturalCrit/styles/reset.less';
//@import 'naturalCrit/styles/elements.less';
@import 'naturalCrit/styles/animations.less';
@import 'naturalCrit/styles/colors.less';
@import 'naturalCrit/styles/tooltip.less';
-
html,body, #reactContainer{
- min-height: 100%;
- font-family : 'Open Sans', sans-serif;
+ min-height : 100%;
+ font-family : 'Open Sans', sans-serif;
}
-
.homebrew{
- background-color: @steel;
- height : 100%;
-
+ height : 100%;
+ background-color : @steel;
.paneSplit{
width : 100%;
height: 100vh;
@@ -29,7 +27,6 @@ html,body, #reactContainer{
min-height: 100%;
//margin-top: 25px;
}
-
.leftPane{
width : 40%;
}
@@ -40,6 +37,5 @@ html,body, #reactContainer{
overflow: hidden;
}
-
}
}
\ No newline at end of file
diff --git a/client/splatsheet/codeEditor/codeEditor.jsx b/client/splatsheet/codeEditor/codeEditor.jsx
new file mode 100644
index 0000000..78a293e
--- /dev/null
+++ b/client/splatsheet/codeEditor/codeEditor.jsx
@@ -0,0 +1,14 @@
+var React = require('react');
+var _ = require('lodash');
+var cx = require('classnames');
+
+var SheetEditor = React.createClass({
+
+ render : function(){
+ return
+ SheetEditor Ready!
+
+ }
+});
+
+module.exports = SheetEditor;
diff --git a/client/splatsheet/codeEditor/codeEditor.less b/client/splatsheet/codeEditor/codeEditor.less
new file mode 100644
index 0000000..6bb4bdf
--- /dev/null
+++ b/client/splatsheet/codeEditor/codeEditor.less
@@ -0,0 +1,3 @@
+.COM{
+
+}
\ No newline at end of file
diff --git a/client/splatsheet/sheetEditor/sheetEditor.jsx b/client/splatsheet/sheetEditor/sheetEditor.jsx
new file mode 100644
index 0000000..8b90454
--- /dev/null
+++ b/client/splatsheet/sheetEditor/sheetEditor.jsx
@@ -0,0 +1,27 @@
+var React = require('react');
+var _ = require('lodash');
+var cx = require('classnames');
+
+var SheetEditor = React.createClass({
+ getDefaultProps: function() {
+ return {
+ code : '',
+ onChange : function(){}
+ };
+ },
+
+ handleCodeChange : function(e){
+ this.props.onChange(e.target.value);
+ },
+
+ render : function(){
+ return
+ SheetEditor Ready!
+
+
+
+
+ }
+});
+
+module.exports = SheetEditor;
diff --git a/client/splatsheet/sheetEditor/sheetEditor.less b/client/splatsheet/sheetEditor/sheetEditor.less
new file mode 100644
index 0000000..91a425c
--- /dev/null
+++ b/client/splatsheet/sheetEditor/sheetEditor.less
@@ -0,0 +1,8 @@
+.sheetEditor{
+
+ textarea{
+ margin-top: 50px;
+ height : 500px
+ }
+
+}
\ No newline at end of file
diff --git a/client/splatsheet/sheetRenderer/sheetRenderer.jsx b/client/splatsheet/sheetRenderer/sheetRenderer.jsx
new file mode 100644
index 0000000..f281716
--- /dev/null
+++ b/client/splatsheet/sheetRenderer/sheetRenderer.jsx
@@ -0,0 +1,49 @@
+var React = require('react');
+var _ = require('lodash');
+var cx = require('classnames');
+
+var babel = require('babel-core')
+
+var SheetRenderer = React.createClass({
+ getDefaultProps: function() {
+ return {
+ code : '',
+ characterData : {},
+ onChange : function(){},
+ };
+ },
+
+ componentWillReceiveProps: function(nextProps) {
+
+ },
+
+
+ renderSheet : function(){
+// var render = jsx.transform(this.props.code);
+
+
+
+
+
+// return eval(render);
+
+ },
+
+ render : function(){
+
+ console.log(babel);
+
+
+ return
+
+
+
+ {this.renderSheet()}
+
+
+
+
+ }
+});
+
+module.exports = SheetRenderer;
diff --git a/client/splatsheet/sheetRenderer/sheetRenderer.less b/client/splatsheet/sheetRenderer/sheetRenderer.less
new file mode 100644
index 0000000..6bb4bdf
--- /dev/null
+++ b/client/splatsheet/sheetRenderer/sheetRenderer.less
@@ -0,0 +1,3 @@
+.COM{
+
+}
\ No newline at end of file
diff --git a/client/splatsheet/splatsheet.jsx b/client/splatsheet/splatsheet.jsx
new file mode 100644
index 0000000..1e814e3
--- /dev/null
+++ b/client/splatsheet/splatsheet.jsx
@@ -0,0 +1,49 @@
+var React = require('react');
+var _ = require('lodash');
+var cx = require('classnames');
+
+var StatusBar = require('./statusBar/statusBar.jsx');
+var SheetEditor = require('./sheetEditor/sheetEditor.jsx');
+var SheetRenderer = require('./sheetRenderer/sheetRenderer.jsx');
+
+var SplatSheet = React.createClass({
+
+ getInitialState: function() {
+ return {
+ sheetCode: 'yo test
',
+ characterData : {}
+ };
+ },
+
+
+ handleCodeChange : function(text){
+ this.setState({
+ sheetCode : text,
+ });
+ },
+
+ handeCharacterChange : function(data){
+
+ },
+
+
+ render : function(){
+ return
+ }
+});
+
+module.exports = SplatSheet;
diff --git a/client/splatsheet/splatsheet.less b/client/splatsheet/splatsheet.less
new file mode 100644
index 0000000..c399262
--- /dev/null
+++ b/client/splatsheet/splatsheet.less
@@ -0,0 +1,36 @@
+
+@import 'naturalCrit/styles/reset.less';
+//@import 'naturalCrit/styles/elements.less';
+@import 'naturalCrit/styles/animations.less';
+@import 'naturalCrit/styles/colors.less';
+@import 'naturalCrit/styles/tooltip.less';
+html,body, #reactContainer{
+ min-height : 100%;
+ font-family : 'Open Sans', sans-serif;
+}
+.splatsheet{
+ height : 100%;
+ background-color : @steel;
+ .paneSplit{
+ position : relative;
+ box-sizing : border-box;
+ height : 100vh;
+ width : 100%;
+ padding-top : 25px;
+ .leftPane, .rightPane{
+ position : relative;
+ display : inline-block;
+ vertical-align : top;
+ height : 100%;
+ min-height : 100%;
+ }
+ .leftPane{
+ width : 40%;
+ }
+ .rightPane{
+ overflow-y : scroll;
+ height : 100%;
+ width : 60%;
+ }
+ }
+}
\ No newline at end of file
diff --git a/client/splatsheet/statusbar/statusbar.jsx b/client/splatsheet/statusbar/statusbar.jsx
new file mode 100644
index 0000000..1e9db72
--- /dev/null
+++ b/client/splatsheet/statusbar/statusbar.jsx
@@ -0,0 +1,30 @@
+var React = require('react');
+var _ = require('lodash');
+var cx = require('classnames');
+
+var Logo = require('naturalCrit/logo/logo.jsx');
+
+var Statusbar = React.createClass({
+ getDefaultProps: function() {
+ return {
+ };
+ },
+
+ render : function(){
+ return
+ }
+});
+
+module.exports = Statusbar;
diff --git a/client/splatsheet/statusbar/statusbar.less b/client/splatsheet/statusbar/statusbar.less
new file mode 100644
index 0000000..bfe2f3d
--- /dev/null
+++ b/client/splatsheet/statusbar/statusbar.less
@@ -0,0 +1,135 @@
+
+.statusbar{
+ position : fixed;
+ z-index : 1000;
+ height : 25px;
+ width : 100%;
+ background-color : black;
+ font-size : 24px;
+ color : white;
+ line-height : 1.0em;
+ border-bottom : 1px solid @grey;
+ .logo{
+ display : inline-block;
+ vertical-align : middle;
+ margin-top : -5px;
+ margin-right : 20px;
+ svg{
+ margin-top : -6px;
+ }
+ }
+ .left{
+ display : inline-block;
+ vertical-align : top;
+ }
+ .right{
+ float : right;
+ }
+ .toolName{
+ display : block;
+ vertical-align : middle;
+ font-family : CodeBold;
+ font-size : 16px;
+ color : white;
+ line-height : 30px;
+ text-decoration : none;
+ small{
+ font-family : CodeBold;
+ }
+ }
+ .controls{
+ font-size : 12px;
+ >*{
+ display : inline-block;
+ height : 100%;
+ padding : 0px 10px;
+ border-left : 1px solid @grey;
+ }
+ .savingStatus{
+ width : 56px;
+ color : @grey;
+ text-align : center;
+ }
+ .newButton{
+ .animate(background-color);
+ color : white;
+ text-decoration : none;
+ &:hover{
+ background-color : fade(@green, 70%);
+ }
+ }
+ .chromeField{
+ background-color: @orange;
+ color : white;
+ text-decoration : none;
+ i{
+ margin-right: 10px;
+ }
+ }
+ .changelogButton{
+ .animate(background-color);
+ color : white;
+ text-decoration : none;
+ &:hover{
+ background-color : fade(@purple, 70%);
+ }
+ }
+ .deleteButton{
+ .animate(background-color);
+ color : white;
+ text-decoration : none;
+ cursor: pointer;
+ &:hover{
+ background-color : fade(@red, 70%);
+ }
+ }
+ .shareField{
+ .animate(background-color);
+ cursor : pointer;
+ color : white;
+ text-decoration : none;
+ &:hover{
+ background-color : fade(@teal, 70%);
+ }
+ span{
+ margin-right : 5px;
+ }
+ input{
+ width : 100px;
+ font-size : 12px;
+ }
+ }
+ .printField{
+ .animate(background-color);
+ cursor : pointer;
+ color : white;
+ text-decoration : none;
+ &:hover{
+ background-color : fade(@orange, 70%);
+ }
+ span{
+ margin-right : 5px;
+ }
+ input{
+ width : 100px;
+ font-size : 12px;
+ }
+ }
+ .sourceField{
+ .animate(background-color);
+ cursor : pointer;
+ color : white;
+ text-decoration : none;
+ &:hover{
+ background-color : fade(@teal, 70%);
+ }
+ span{
+ margin-right : 5px;
+ }
+ input{
+ width : 100px;
+ font-size : 12px;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/gulpfile.js b/gulpfile.js
index ded4eaf..e29f403 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -5,7 +5,14 @@ var gulp = require("gulp");
var gulp = vitreumTasks(gulp, {
- entryPoints: ["./client/naturalCrit", "./client/homebrew", "./client/admin"],
+ entryPoints: [
+ "./client/naturalCrit",
+
+ "./client/splatsheet",
+ "./client/homebrew",
+
+ "./client/admin"
+ ],
DEV: true,
diff --git a/server.js b/server.js
index a63998e..ad3f404 100644
--- a/server.js
+++ b/server.js
@@ -64,9 +64,11 @@ app.get('/admin', function(req, res){
app = require('./server/homebrew.api.js')(app);
+app = require('./server/splatsheet.api.js')(app);
+//Render the homepage
app.get('*', function (req, res) {
vitreumRender({
page: './build/naturalCrit/bundle.dot',
diff --git a/server/pdfConvert.js b/server/pdfConvert.js
deleted file mode 100644
index 7af4170..0000000
--- a/server/pdfConvert.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var pdf = require('html-pdf');
-var Markdown = require('marked');
-
-var PHBStyle = ''
-
-
-var content = Markdown('# oh hey \n welcome! isnt this neat \n \\page ##### test');
-
-
-var html = "" + PHBStyle + ""+ content +"
"
-
-//var h = 279.4 - 20*2.8;
-var h = 279.4 - 56;
-
-
-
-//var w = 215.9 - 56*1.7
-
-var w = 215.9 - 43;
-
-
-var config = {
- "height": (279.4 - 56) + "mm",
- "width": (215.9 - 43) + "mm",
- "border": "0",
-}
-
-pdf.create(html, config).toFile('./temp.pdf', function(err, res){
- console.log(err);
- console.log(res.filename);
-});
\ No newline at end of file
diff --git a/server/pdfs/businesscard.pdf b/server/pdfs/businesscard.pdf
deleted file mode 100644
index 3f2105d..0000000
Binary files a/server/pdfs/businesscard.pdf and /dev/null differ
diff --git a/server/splatsheet.api.js b/server/splatsheet.api.js
new file mode 100644
index 0000000..c19e788
--- /dev/null
+++ b/server/splatsheet.api.js
@@ -0,0 +1,27 @@
+var _ = require('lodash');
+var Moment = require('moment');
+var vitreumRender = require('vitreum/render');
+
+
+
+
+module.exports = function(app){
+
+ app.get('/splatsheet', function(req, res){
+ vitreumRender({
+ page: './build/splatsheet/bundle.dot',
+ globals:{},
+ prerenderWith : './client/splatsheet/splatsheet.jsx',
+ initialProps: {
+ url: req.originalUrl,
+ },
+ clearRequireCache : true,
+ }, function (err, page) {
+ return res.send(page)
+ });
+ });
+
+
+
+ return app;
+}
\ No newline at end of file
diff --git a/server/temp.pdf b/server/temp.pdf
deleted file mode 100644
index c51792a..0000000
Binary files a/server/temp.pdf and /dev/null differ