add black header bar

This commit is contained in:
Danny van Kooten 2016-11-25 13:16:42 +01:00
parent b72a3610bf
commit b2c64d6de9
3 changed files with 38 additions and 8 deletions

View File

@ -5,6 +5,9 @@ This is a general draft document for thoughts and todo's. This has no structure.
### What's cooking? ### What's cooking?
- Async tracking snippet.
- Add license file.
- Get DB creds from env.
- JS client for consuming API endpoints. - JS client for consuming API endpoints.
- Envelope API responses. - Envelope API responses.
- Error handling. - Error handling.

View File

@ -18,13 +18,17 @@ class Dashboard extends Component {
} }
render() { render() {
return (<div class="container"> return (
<header class="header cf"> <div>
<h1 class="pull-left">Ana <small>&middot; open web analytics</small></h1> <header class="header-bar cf">
<div class="container">
<h1 class="pull-left title">Ana <small class="subtitle">open web analytics</small></h1>
<div class="pull-right"> <div class="pull-right">
<LogoutButton onSuccess={this.props.onLogout} /> <LogoutButton onSuccess={this.props.onLogout} />
</div> </div>
</header> </div>
</header>
<div class="container">
<Realtime /> <Realtime />
<div class="clear"> <div class="clear">
<DatePicker period={this.state.period} onChoose={(p) => { this.setState({ period: p })}} /> <DatePicker period={this.state.period} onChoose={(p) => { this.setState({ period: p })}} />
@ -48,10 +52,10 @@ class Dashboard extends Component {
<div class="col-2"> <div class="col-2">
<Table period={this.state.period} endpoint="browsers" title="Browsers" headers={["#", "Browser", "Count", "%"]} /> <Table period={this.state.period} endpoint="browsers" title="Browsers" headers={["#", "Browser", "Count", "%"]} />
</div> </div>
</div> </div>
</div>) </div>
} </div>
)}
} }
export default Dashboard export default Dashboard

View File

@ -3,7 +3,7 @@
@import "grid"; @import "grid";
body { body {
font-family: Arial, Verdana, sans-serif; font-family: Raleway, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px; font-size: 15px;
color: #444; color: #444;
background: #f5f5f5; background: #f5f5f5;
@ -35,6 +35,12 @@ table {
a { a {
color: #09f; color: #09f;
text-decoration: none;
&:hover,
&:focus {
text-decoration: underline;
}
} }
label { label {
@ -66,6 +72,23 @@ input[type="submit"] {
margin: 20px 0; margin: 20px 0;
} }
.header-bar {
background: black;
color: white;
margin-bottom: 40px;
padding: 12px 0;
line-height: 32px;
font-weight: bold;
h1, h2, h3, a { color: white; }
.subtitle{
color: #BBB;
margin-left: 10px;
font-size: 20px;
}
}
.block { .block {
width: auto; width: auto;
background: white; background: white;