mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Add active routes as css classes
This commit is contained in:
parent
c99c3492fb
commit
03803ca61a
@ -20,6 +20,7 @@ let WalletApp = React.createClass({
|
||||
render() {
|
||||
let subdomain = window.location.host.split('.')[0];
|
||||
let ROUTES = getRoutes(null, subdomain);
|
||||
let activeRoutes = this.getRoutes().map(elem => 'route--' + elem.name);
|
||||
|
||||
let header = null;
|
||||
if ((this.isActive('landing') || this.isActive('login') || this.isActive('signup'))
|
||||
@ -31,7 +32,7 @@ let WalletApp = React.createClass({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={classNames('container', 'ascribe-wallet-app', 'client--' + subdomain, {'page--landing': this.isActive('landing')})}>
|
||||
<div className={classNames('container', 'ascribe-wallet-app', 'client--' + subdomain, activeRoutes)}>
|
||||
{header}
|
||||
<RouteHandler />
|
||||
<GlobalNotification />
|
||||
|
@ -1,12 +1,15 @@
|
||||
.client--ikonotv.page--landing {
|
||||
.client--ikonotv.route--landing {
|
||||
background-color: #c40050;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
padding: 5em 1em;
|
||||
}
|
||||
|
||||
.client--ikonotv .ascribe-login-wrapper {
|
||||
|
||||
.client--ikonotv.page--landing .ascribe-footer {
|
||||
}
|
||||
|
||||
.client--ikonotv.route--landing .ascribe-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user