-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The individual components are defined in this commit. The Canvas and ShapeBar components are positioned for the sake of getting the hang of CSS in JSX.
- Loading branch information
1 parent
e18906a
commit 97a719b
Showing
5 changed files
with
82 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
var ReactDOM = require('react-dom'); | ||
var electron = require('electron'); | ||
|
||
// const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael'); | ||
|
||
export default class Canvas extends Component { | ||
render() { | ||
return ( | ||
<div style={{position: 'absolute', backgroundColor: 'blue', width: '100%', height: '90%', margin: 0, padding: 0, top: '10%'}}> | ||
<div></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,24 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
var ReactDOM = require('react-dom'); | ||
var electron = require('electron'); | ||
|
||
// const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael'); | ||
|
||
export default class App extends Component { | ||
props: { | ||
children: HTMLElement; | ||
}; | ||
|
||
constructor(props) { | ||
super(props); | ||
}; | ||
|
||
|
||
render() { | ||
return ( | ||
<div style={{position: 'absolute', backgroundColor: 'green', width: '100%', height: '100%', margin: 0, padding: 0}}> | ||
<div></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,24 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
var ReactDOM = require('react-dom'); | ||
var electron = require('electron'); | ||
|
||
// const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael'); | ||
|
||
export default class App extends Component { | ||
props: { | ||
children: HTMLElement; | ||
}; | ||
|
||
constructor(props) { | ||
super(props); | ||
}; | ||
|
||
|
||
render() { | ||
return ( | ||
<div style={{position: 'absolute', backgroundColor: 'green', width: '100%', height: '100%', margin: 0, padding: 0}}> | ||
<div></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,15 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
var ReactDOM = require('react-dom'); | ||
var electron = require('electron'); | ||
|
||
// const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael'); | ||
|
||
export default class Canvas extends Component { | ||
render() { | ||
return ( | ||
<div style={{position: 'absolute', backgroundColor: 'red', width: '100%', height: '10%', margin: 0, padding: 0}}> | ||
<div></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