add link to the logo

This commit is contained in:
Ahmed-Ayman 2018-12-11 13:22:08 +02:00
parent fcbfe7bc50
commit 2bb636cb79

View File

@ -1,16 +1,18 @@
import React from 'react'; import React from 'react';
import '../stylesheets/style.scss' import '../stylesheets/style.scss'
import {Link} from 'react-router-dom';
class Header extends React.Component { class Header extends React.Component {
render() { render() {
const Logo = () => { const Logo = () => {
return ( return (
<section className="logo-container"> <section className="logo-container">
<Link to="/">
<img className="site-logo" src={require('../assets/images/logo.png')} alt="logo 858 "/> <img className="site-logo" src={require('../assets/images/logo.png')} alt="logo 858 "/>
<br/> <br/>
<img className="site-logo" src={require('../assets/images/byline.ar.png')} alt="logo 858 "/> <img className="site-logo" src={require('../assets/images/byline.ar.png')} alt="logo 858 "/>
<h1>An archive of resistance</h1> <h1>An archive of resistance</h1>
</Link>
</section> </section>
); );
} }