Skip to content

Commit

Permalink
better useful header
Browse files Browse the repository at this point in the history
  • Loading branch information
polarity committed Jun 5, 2019
1 parent 576f6fb commit d62f03a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/components/header/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { h, render, Component } from 'preact'
import style from './style'
import {shell} from 'electron'

export default class Header extends Component {
handleClick (link) {
shell.openExternal(link)
}

render () {
return (<div id='Header' class={style.header}>
<div class={style.inactive}>Login</div>
<div class={style.inactive}>Chat</div>
<div class={style.inactive}>Projects</div>
<div onClick={this.handleClick.bind(this, 'https://discord.gg/0g2ZPafIN3eWParf')} title='Bitwig Discord' class={style.inactive}>Discord</div>
<div onClick={this.handleClick.bind(this, 'https://sso.bitwig.com/login')} class={style.inactive}>Bitwig Account</div>
<div class={style.active}>Presets</div>
</div>
)
Expand Down
5 changes: 4 additions & 1 deletion src/components/header/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
padding: 5% 3%;
}
.header .inactive {
text-decoration: line-through;
cursor: pointer;
}
.header .inactive:hover {
text-decoration: underline;
}
.header .active {
background-color: #2d2d2d;
Expand Down

0 comments on commit d62f03a

Please sign in to comment.