mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Add link to /collection to ascribe branding on navbar
This commit is contained in:
parent
2ce0b2417d
commit
7e438dcaf5
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
import { Link } from 'react-router';
|
||||||
|
|
||||||
import Nav from 'react-bootstrap/lib/Nav';
|
import Nav from 'react-bootstrap/lib/Nav';
|
||||||
import Navbar from 'react-bootstrap/lib/Navbar';
|
import Navbar from 'react-bootstrap/lib/Navbar';
|
||||||
import CollapsibleNav from 'react-bootstrap/lib/CollapsibleNav';
|
import CollapsibleNav from 'react-bootstrap/lib/CollapsibleNav';
|
||||||
@ -71,12 +73,16 @@ let Header = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (whitelabel.subdomain && whitelabel.subdomain !== 'www' && whitelabel.logo){
|
if (whitelabel.subdomain && whitelabel.subdomain !== 'www' && whitelabel.logo){
|
||||||
return (<img className="img-brand" src={whitelabel.logo}/>);
|
return (
|
||||||
|
<Link to="/collection">
|
||||||
|
<img className="img-brand" src={whitelabel.logo} alt="Whitelabel brand"/>
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<span className="icon-ascribe-logo"></span>
|
<Link className="icon-ascribe-logo" to="/collection"/>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -91,12 +91,25 @@ hr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-brand,
|
.navbar-brand {
|
||||||
.navbar-brand:hover {
|
|
||||||
font-size: 23px;
|
font-size: 23px;
|
||||||
padding: 12px 15px;
|
padding: 12px 15px;
|
||||||
color: $ascribe--nav-fg-prim-color;
|
|
||||||
|
.icon-ascribe-logo {
|
||||||
|
color: $ascribe--nav-fg-prim-color;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: $ascribe--nav-fg-sec-color;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-brand {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-brand .navbar-brand {
|
.img-brand .navbar-brand {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user