aix-ui-library
Version:
React component library + Other shared UI resources for AI X Lab
92 lines (71 loc) • 4.94 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _templateObject = _taggedTemplateLiteral(['\n\n .footerContainer {\n bottom: 0;\n width: 100%;\n background-color: #F5F7FA;\n padding: 1%;\n text-align: center;\n color: #98A0A8;\n min-height: 50px;\n line-height: 50px;\n }\n\n .footerLinks {\n color: #98A0A8;\n display: inline-block;\n margin: auto 5px;\n vertical-align: middle;\n }\n\n .footerLinks:hover {\n text-decoration: none;\n }\n\n .FooterTextDivider {\n display: inline-block;\n vertical-align: middle;\n margin: 0px;\n }\n\n @media screen and (min-width: 700px) {\n\n .footerContainer {\n text-align: left;\n }\n\n }\n\n'], ['\n\n .footerContainer {\n bottom: 0;\n width: 100%;\n background-color: #F5F7FA;\n padding: 1%;\n text-align: center;\n color: #98A0A8;\n min-height: 50px;\n line-height: 50px;\n }\n\n .footerLinks {\n color: #98A0A8;\n display: inline-block;\n margin: auto 5px;\n vertical-align: middle;\n }\n\n .footerLinks:hover {\n text-decoration: none;\n }\n\n .FooterTextDivider {\n display: inline-block;\n vertical-align: middle;\n margin: 0px;\n }\n\n @media screen and (min-width: 700px) {\n\n .footerContainer {\n text-align: left;\n }\n\n }\n\n']);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _styledComponents = require('styled-components');
var _styledComponents2 = _interopRequireDefault(_styledComponents);
var _reactBootstrap = require('react-bootstrap');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _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; }
function _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) : subClass.__proto__ = superClass; }
/*
* Props:
* className: css style class
*/
var Footer = function (_React$Component) {
_inherits(Footer, _React$Component);
function Footer(props) {
_classCallCheck(this, Footer);
return _possibleConstructorReturn(this, (Footer.__proto__ || Object.getPrototypeOf(Footer)).call(this, props));
}
_createClass(Footer, [{
key: 'render',
value: function render() {
return _react2.default.createElement(
'div',
{ className: this.props.className },
_react2.default.createElement(
'div',
{ className: 'footerContainer' },
_react2.default.createElement(
'div',
null,
_react2.default.createElement(
'a',
{ className: 'footerLinks', href: '#' },
'Terms of Use'
),
_react2.default.createElement(
'p',
{ className: 'FooterTextDivider' },
'\xA0|\xA0'
),
_react2.default.createElement(
'a',
{ className: 'footerLinks', href: '#' },
'Privacy'
),
_react2.default.createElement(
'p',
{ className: 'FooterTextDivider' },
'\xA0|\xA0'
),
_react2.default.createElement(
'a',
{ className: 'footerLinks', href: '#' },
'Dataset'
)
)
)
);
}
}]);
return Footer;
}(_react2.default.Component);
exports.default = (0, _styledComponents2.default)(Footer)(_templateObject);