Added Props support to images, improved logo

This commit is contained in:
2018-08-14 21:26:59 +10:00
parent 348b3590b0
commit e85292ef33
4 changed files with 42 additions and 7 deletions

View File

@ -28,6 +28,7 @@ import { NavLink } from 'react-router-dom'
import PageBoundary from './../../page/PageBoundary';
import Language from './../../language/Language';
import HamburgerMenu from './../menu/HamburgerMenu';
import Image from './../../image/Image';
const NavbarLink = function(props) {
return (
@ -51,10 +52,13 @@ class Navbar extends React.Component {
{/* Logo */}
<NavLink to="/" className="c-navbar__logo-container" activeClassName="is-active">
<img
<Image
src={ require('./../../images/logo.svg') }
className="c-navbar__logo"
alt={ Language.get("site.name") }
title={ Language.get("site.name") }
width="780"
height="200"
/>
</NavLink>