2016-11-17 20:00:20 +01:00
|
|
|
import Telescope from 'meteor/nova:lib';
|
2016-03-30 09:24:52 +09:00
|
|
|
import React from 'react';
|
2016-06-14 10:17:11 +09:00
|
|
|
import { IndexLink } from 'react-router';
|
2016-03-30 09:24:52 +09:00
|
|
|
|
2016-03-17 18:08:03 +09:00
|
|
|
const Logo = ({logoUrl, siteTitle}) => {
|
|
|
|
if (logoUrl) {
|
2016-02-16 15:08:30 +09:00
|
|
|
return (
|
|
|
|
<h1 className="logo-image ">
|
2016-06-14 10:17:11 +09:00
|
|
|
<IndexLink to={{pathname: "/"}}>
|
2016-03-17 18:08:03 +09:00
|
|
|
<img src={logoUrl} alt={siteTitle} style={{maxWidth: "100px", maxHeight: "100px"}} />
|
2016-06-14 10:17:11 +09:00
|
|
|
</IndexLink>
|
2016-02-16 15:08:30 +09:00
|
|
|
</h1>
|
|
|
|
)
|
|
|
|
} else {
|
|
|
|
return (
|
2016-06-14 10:01:44 +09:00
|
|
|
<h1 className="logo-text">
|
2016-06-14 10:17:11 +09:00
|
|
|
<IndexLink to={{pathname: "/"}}>{siteTitle}</IndexLink>
|
2016-06-14 10:01:44 +09:00
|
|
|
</h1>
|
2016-02-16 15:08:30 +09:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-22 16:42:24 +09:00
|
|
|
Logo.displayName = "Logo";
|
|
|
|
|
2016-11-17 20:00:20 +01:00
|
|
|
Telescope.registerComponent('Logo', Logo);
|