mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Add header
This commit is contained in:
parent
8ee9bda37b
commit
951892a85c
@ -1,3 +1,7 @@
|
|||||||
|
#main {
|
||||||
|
padding-top: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
.ascribe-table-header-column {
|
.ascribe-table-header-column {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
@ -11,9 +11,9 @@ let AscribeApp = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Header />
|
<Header />
|
||||||
<navigation>
|
<nav>
|
||||||
<Link to="pieces">pieces</Link>
|
<Link to="pieces">pieces</Link>
|
||||||
</navigation>
|
</nav>
|
||||||
<RouteHandler />
|
<RouteHandler />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -21,7 +21,34 @@ let Header = React.createClass({
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>hello {this.state.currentUser.username}</div>
|
<nav className="navbar navbar-default navbar-fixed-top">
|
||||||
|
<div className="container">
|
||||||
|
<div className="navbar-header">
|
||||||
|
<button type="button" className="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||||
|
<span className="sr-only">Toggle navigation</span>
|
||||||
|
<span className="icon-bar"></span>
|
||||||
|
<span className="icon-bar"></span>
|
||||||
|
<span className="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a className="navbar-brand" href="#">ascribe</a>
|
||||||
|
</div>
|
||||||
|
<div id="navbar" className="navbar-collapse collapse">
|
||||||
|
<ul className="nav navbar-nav navbar-right">
|
||||||
|
<li className="dropdown">
|
||||||
|
<a href="#" className="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{this.state.currentUser.username} <span className="caret"></span></a>
|
||||||
|
<ul className="dropdown-menu" role="menu">
|
||||||
|
<li><a href="/art/faq/">Account Settings</a></li>
|
||||||
|
<li className="divider"></li>
|
||||||
|
<li><a href="/art/faq/">FAQ</a></li>
|
||||||
|
<li><a href="/art/terms/">Terms of Service</a></li>
|
||||||
|
<li className="divider"></li>
|
||||||
|
<li><a href="/api/users/logout/">Log out</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user