mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-17 01:12:20 +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;
|
var socket;
|
||||||
|
|
||||||
function initialiseComponents () {
|
function initialiseComponents () {
|
||||||
|
@ -254,6 +278,7 @@ function initialiseComponents () {
|
||||||
|
|
||||||
React.render(<UserMenu count={0} users={[]} />, document.getElementById('side-menu'));
|
React.render(<UserMenu count={0} users={[]} />, document.getElementById('side-menu'));
|
||||||
React.render(<Chatroom history={[]}/>, document.getElementById('chatroom'));
|
React.render(<Chatroom history={[]}/>, document.getElementById('chatroom'));
|
||||||
|
React.render(<Gather history={[]}/>, document.getElementById('gathers'));
|
||||||
};
|
};
|
||||||
|
|
||||||
initialiseComponents();
|
initialiseComponents();
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
#gathers {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
#chatroom {
|
#chatroom {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,11 +5,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6" id="gathers"></div>
|
||||||
<h3 class="page-header">Current Gather</h3>
|
<div class="col-lg-6" id="chatroom"></div>
|
||||||
</div>
|
|
||||||
<div class="col-lg-6" id="chatroom">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue