mon-entreprise/source/containers/Layout.js

28 lines
564 B
JavaScript
Raw Normal View History

import React, { Component } from 'react'
import './Layout.css'
import './reset.css'
2016-12-16 16:28:42 +00:00
import {Link} from 'react-router'
export default class Layout extends Component {
render() {
return (<div>
2016-12-16 16:28:42 +00:00
<div id="header">
2017-01-26 16:16:15 +00:00
<div id="warning">
Attention ! Tout le contenu de ce site est hautement expérimental.
</div>
2016-12-16 16:28:42 +00:00
{
this.props.location.pathname != '/' &&
<Link to="/">
<img id="site-logo" src={require('../images/logo.png')} />
2016-12-16 16:28:42 +00:00
</Link>
}
</div>
2017-01-26 16:16:15 +00:00
<div id="content">
{this.props.children}
</div>
2017-01-26 16:16:15 +00:00
</div>
)
}
}