-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7344b5b
commit dd7ec56
Showing
66 changed files
with
5,641 additions
and
141 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
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/components/about-me.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
|
||
const AboutMe = React.createClass({ | ||
render: function() { | ||
return ( | ||
<article> | ||
<h1>About Me</h1> | ||
<p> | ||
My name is Lola | ||
</p> | ||
</article> | ||
); | ||
} | ||
}); | ||
|
||
export default AboutMe; |
19 changes: 19 additions & 0 deletions
19
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/components/home.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
const Home = React.createClass({ | ||
render: function() { | ||
return ( | ||
<article> | ||
<h1>This is the home page</h1> | ||
<p> | ||
Some description text. | ||
</p> | ||
<p> | ||
Next time I will be more creative. | ||
</p> | ||
</article> | ||
); | ||
} | ||
}); | ||
|
||
export default Home; |
38 changes: 38 additions & 0 deletions
38
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/components/main.layout.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router'; | ||
|
||
const MainLayout = React.createClass({ | ||
render: function() { | ||
return ( | ||
<div className="app"> | ||
<nav className="navbar navbar-light bg-faded" id="CollapsingNavbar"> | ||
<button className="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#CollapsingNavbar"> | ||
☰ | ||
</button> | ||
<div className="collapse navbar-toggleable-xs"> | ||
<Link to="1JfWHNDQeR71Uf8EtyRqCNJ1Ked5t1pukk/" className="navbar-brand" >Zereact</Link> | ||
<ul className="nav navbar-nav"> | ||
<li className="nav-item active"> | ||
<Link to="1JfWHNDQeR71Uf8EtyRqCNJ1Ked5t1pukk/" className="nav-link" >Home <span className="sr-only">(current)</span></Link> | ||
</li> | ||
<li className="nav-item"> | ||
<Link to="tutorial" className="nav-link">Tutorial</Link> | ||
</li> | ||
<li className="nav-item"> | ||
<Link to="about-me" className="nav-link">About me</Link> | ||
</li> | ||
<li className="nav-item"> | ||
<Link to="messages" className="nav-link">Leave a message</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
<main className="container"> | ||
{this.props.children} | ||
</main> | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
export default MainLayout; |
48 changes: 48 additions & 0 deletions
48
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/components/messages.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react'; | ||
|
||
// import ZeroFrame module | ||
import ZeroFrame from '../zeroframe/zeroframe'; | ||
|
||
|
||
const Messages = React.createClass({ | ||
getInitialState: function() { | ||
return { | ||
auth: false, | ||
messages: [] | ||
} | ||
}, | ||
|
||
componentDidMount: function() { | ||
var _this = this; | ||
ZeroFrame.cmd("siteInfo", {}, function(info) { | ||
console.log(info); | ||
}); | ||
}, | ||
|
||
render: function() { | ||
var form; | ||
if (this.state.auth) { | ||
form = <form> | ||
<fieldset className="form-group"> | ||
<label htmlFor="message">Your message</label> | ||
<textarea type="text" className="form-control" id="message"> | ||
</textarea> | ||
</fieldset> | ||
<button type="submit" className="btn btn-primary">Submit</button> | ||
</form> | ||
} else { | ||
form = <p>Too bad you need to be auth to post a message.</p> | ||
} | ||
return ( | ||
<article> | ||
<h1>Leave me a message</h1> | ||
<p> | ||
Tell me what you think of it ! | ||
</p> | ||
{ form } | ||
</article> | ||
); | ||
} | ||
}); | ||
|
||
export default Messages; |
16 changes: 16 additions & 0 deletions
16
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/components/tutorial.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
|
||
const Tutorial = React.createClass({ | ||
render: function() { | ||
return ( | ||
<article> | ||
<h1>Tutorial</h1> | ||
<p> | ||
README.md | ||
</p> | ||
</article> | ||
); | ||
} | ||
}); | ||
|
||
export default Tutorial; |
8 changes: 8 additions & 0 deletions
8
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/crash/crash.css
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,8 @@ | ||
html { | ||
background-color: #eee | ||
} | ||
|
||
.dark-mode { | ||
background-color: rgb(33, 37, 43); | ||
color: lightgrey; | ||
} |
22 changes: 22 additions & 0 deletions
22
core/data/1LANDERvVWbShpNWpsrbBvfqSK1PabXtwv/js/crash/index.html
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,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" href="../pagebase.css" /> | ||
<link rel="stylesheet" href="../../ext/font-awesome-4.4.0/css/font-awesome.min.css" /> | ||
<link rel="stylesheet" href="crash.css" /> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="page-wrapper"> | ||
<h1>Something went wrong.</h1> | ||
<h2>A problem has occured while displaying this page.</h2> | ||
</div> | ||
<script src="../../ext/Dexie.min.js"></script> | ||
<script src="../../js/util/database.js"></script> | ||
<script src="../../js/util/settings.js"></script> | ||
<script src="../../js/util/theme.js"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.