UNPKG

3.06 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = undefined;
7
8var _react = require('react');
9
10var _react2 = _interopRequireDefault(_react);
11
12var _layout = require('@icedesign/layout');
13
14var _layout2 = _interopRequireDefault(_layout);
15
16var _Logo = require('./Logo');
17
18var _Logo2 = _interopRequireDefault(_Logo);
19
20function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
22function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
23
24function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
26function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
27
28function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /* eslint react/prefer-stateless-function:0 */
29
30
31var Footer = function (_PureComponent) {
32 _inherits(Footer, _PureComponent);
33
34 function Footer() {
35 _classCallCheck(this, Footer);
36
37 return _possibleConstructorReturn(this, _PureComponent.apply(this, arguments));
38 }
39
40 Footer.prototype.render = function render() {
41 return _react2.default.createElement(
42 _layout2.default.Footer,
43 {
44 className: 'ice-design-layout-footer',
45 style: {
46 lineHeight: '36px'
47 }
48 },
49 _react2.default.createElement(
50 'div',
51 { className: 'ice-design-layout-footer-body' },
52 _react2.default.createElement(
53 'div',
54 { style: { filter: 'grayscale(100%)', opacity: 0.3 } },
55 _react2.default.createElement(_Logo2.default, null)
56 ),
57 _react2.default.createElement(
58 'div',
59 { className: 'copyright' },
60 '\xA9 2018 Theme designed by',
61 ' ',
62 _react2.default.createElement(
63 'a',
64 {
65 href: 'https://github.com/alibaba/ice',
66 target: '_blank',
67 className: 'copyright-link',
68 rel: 'noopener noreferrer'
69 },
70 'ICE'
71 )
72 )
73 )
74 );
75 };
76
77 return Footer;
78}(_react.PureComponent);
79
80exports.default = Footer;
81module.exports = exports['default'];
\No newline at end of file