@hocgin/gin-logo
Version:
@hocgin/gin-logo
66 lines (55 loc) • 3.58 kB
JavaScript
import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
import React from 'react';
import styles from "./index.css";
var HeartFilled = function HeartFilled(props) {
return /*#__PURE__*/React.createElement("div", {
className: props.className
}, /*#__PURE__*/React.createElement("svg", {
role: "img",
viewBox: "0 0 1205 1024",
xmlns: "http://www.w3.org/2000/svg"
}, /*#__PURE__*/React.createElement("path", {
fill: "currentColor",
d: "M602.435622 1023.943683C598.795944 1023.943683 595.131449 1022.95075 591.903993 1020.929079 47.519856 679.58468 5.380932 420.335577 2.465054 371.820963 0.82582 358.316528 0 345.270684 0 333.126883 0 149.439827 148.111451 0 330.140841 0 439.560038 0 541.067068 54.667767 602.306026 144.623896 663.56015 54.669143 765.093376 0 874.486378 0 1056.541963 0 1204.639627 149.439827 1204.639627 333.126883 1204.639627 344.838258 1203.955807 356.834703 1202.549572 369.803423 1200.340946 419.61257 1160.861473 675.83054 613.01826 1020.901537 609.792181 1022.938357 606.127689 1023.943683 602.435622 1023.943683ZM327.191473 242.513144 327.191473 236.782124C327.191473 211.325797 311.27445 189.453118 288.817787 180.695944 219.824883 195.615991 165.502589 249.936508 150.579953 318.928447 159.321083 341.343772 181.136255 357.308937 206.664661 357.308937L210.040872 357.308937C222.388624 302.009319 268.071576 257.714282 327.191473 242.513144L327.191473 242.513144Z"
})));
};
var Index = /*#__PURE__*/function (_React$Component) {
_inherits(Index, _React$Component);
var _super = _createSuper(Index);
function Index() {
_classCallCheck(this, Index);
return _super.apply(this, arguments);
}
_createClass(Index, [{
key: "render",
value: function render() {
var _this$props = this.props,
children = _this$props.children,
href = _this$props.href,
text = _this$props.text;
return /*#__PURE__*/React.createElement("div", {
className: styles.logo
}, /*#__PURE__*/React.createElement(HeartFilled, {
className: styles.heart
}), ' ', /*#__PURE__*/React.createElement("a", {
className: styles.text,
href: href,
target: "_blank",
rel: "noopener noreferrer"
}, text));
}
}]);
return Index;
}(React.Component);
Index.defaultProps = {
href: 'https://hocg.in',
text: 'HOCGIN'
};
export default Index;