mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 12:41:11 +00:00
Added gather skeleton
This commit is contained in:
parent
2087638588
commit
425ce23ce7
4 changed files with 57 additions and 6 deletions
|
@ -237,6 +237,30 @@ var MessageBar = React.createClass({
|
|||
}
|
||||
});
|
||||
|
||||
var Gather = React.createClass({
|
||||
joinGather: function (e) {
|
||||
e.preventDefault();
|
||||
alert("Joined gather!");
|
||||
},
|
||||
render: function () {
|
||||
return (
|
||||
<div className="panel panel-default">
|
||||
<div className="panel-heading">
|
||||
Current Gather
|
||||
</div>
|
||||
<div className="panel-body">
|
||||
</div>
|
||||
<div className="panel-footer">
|
||||
<button
|
||||
onClick={this.joinGather}
|
||||
className="btn btn-primary"
|
||||
ref="joinbutton">Join Gather</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
var socket;
|
||||
|
||||
function initialiseComponents () {
|
||||
|
@ -254,6 +278,7 @@ function initialiseComponents () {
|
|||
|
||||
React.render(<UserMenu count={0} users={[]} />, document.getElementById('side-menu'));
|
||||
React.render(<Chatroom history={[]}/>, document.getElementById('chatroom'));
|
||||
React.render(<Gather history={[]}/>, document.getElementById('gathers'));
|
||||
};
|
||||
|
||||
initialiseComponents();
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
|
||||
#gathers {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#chatroom {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,11 +5,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<h3 class="page-header">Current Gather</h3>
|
||||
</div>
|
||||
<div class="col-lg-6" id="chatroom">
|
||||
</div>
|
||||
<div class="col-lg-6" id="gathers"></div>
|
||||
<div class="col-lg-6" id="chatroom"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue