site/component---src-pages-index-js-4d472eec4a55ad51ad92.js.map
2020-03-21 20:12:32 +03:00

1 line
11 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/images/index/head.png","webpack:///./src/images/index/head_en.png","webpack:///./node_modules/react-bootstrap/esm/Jumbotron.js","webpack:///./node_modules/react-bootstrap/esm/Button.js","webpack:///./src/pages/index.js"],"names":["Jumbotron","forwardRef","_ref","ref","_classes","_ref$as","as","Component","className","fluid","bsPrefix","props","classes","createElement","defaultProps","displayName","Button","variant","size","active","block","type","prefix","href","SafeAnchor","disabled","injectIntl","data","intl","useIntl","lang","locale","news","head","ru_posts","edges","head_ru","en_posts","head_en","title","formatMessage","id","src","width","alt","style","color","to","marginBottom","textAlign","map","node","frontmatter","date","borderRadius","boxShadow","dangerouslySetInnerHTML","__html","description","html","query"],"mappings":"+JAAe,MAA0B,mDCA1B,MAA0B,sD,+ECQrCA,EAAY,IAAMC,YAAW,SAAUC,EAAMC,GAC/C,IAAIC,EAEAC,EAAUH,EAAKI,GACfC,OAAwB,IAAZF,EAAqB,MAAQA,EACzCG,EAAYN,EAAKM,UACjBC,EAAQP,EAAKO,MACbC,EAAWR,EAAKQ,SAChBC,EAAQ,YAA8BT,EAAM,CAAC,KAAM,YAAa,QAAS,aAGzEU,IAAWR,EAAW,IAD1BM,EAAW,YAAmBA,EAAU,eACW,EAAMN,EAASM,EAAW,UAAYD,EAAOL,GAChG,OAAO,IAAMS,cAAcN,EAAW,YAAS,CAC7CJ,IAAKA,GACJQ,EAAO,CACRH,UAAW,IAAWA,EAAWI,SAGrCZ,EAAUc,aArBS,CACjBL,OAAO,GAqBTT,EAAUe,YAAc,YACT,Q,YChBXC,EAAS,IAAMf,YAAW,SAAUC,EAAMC,GAC5C,IAAIO,EAAWR,EAAKQ,SAChBO,EAAUf,EAAKe,QACfC,EAAOhB,EAAKgB,KACZC,EAASjB,EAAKiB,OACdX,EAAYN,EAAKM,UACjBY,EAAQlB,EAAKkB,MACbC,EAAOnB,EAAKmB,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,aAAeP,EAAKQ,iBAtDjE,IAmEaC,EAAK","file":"component---src-pages-index-js-4d472eec4a55ad51ad92.js","sourcesContent":["export default __webpack_public_path__ + \"static/head-c11bff42b70ab099232fee6a9148b18d.png\";","export default __webpack_public_path__ + \"static/head_en-f1ca1f306ab8db9ea5abe6a2b4daa66d.png\";","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nvar defaultProps = {\n fluid: false\n};\nvar Jumbotron = React.forwardRef(function (_ref, ref) {\n var _classes;\n\n var _ref$as = _ref.as,\n Component = _ref$as === void 0 ? 'div' : _ref$as,\n className = _ref.className,\n fluid = _ref.fluid,\n bsPrefix = _ref.bsPrefix,\n props = _objectWithoutPropertiesLoose(_ref, [\"as\", \"className\", \"fluid\", \"bsPrefix\"]);\n\n bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');\n var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + \"-fluid\"] = fluid, _classes);\n return React.createElement(Component, _extends({\n ref: ref\n }, props, {\n className: classNames(className, classes)\n }));\n});\nJumbotron.defaultProps = defaultProps;\nJumbotron.displayName = 'Jumbotron';\nexport default Jumbotron;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport SafeAnchor from './SafeAnchor';\nvar defaultProps = {\n variant: 'primary',\n active: false,\n disabled: false,\n type: 'button'\n};\nvar Button = React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n variant = _ref.variant,\n size = _ref.size,\n active = _ref.active,\n className = _ref.className,\n block = _ref.block,\n type = _ref.type,\n as = _ref.as,\n props = _objectWithoutPropertiesLoose(_ref, [\"bsPrefix\", \"variant\", \"size\", \"active\", \"className\", \"block\", \"type\", \"as\"]);\n\n var prefix = useBootstrapPrefix(bsPrefix, 'btn');\n var classes = classNames(className, prefix, active && 'active', prefix + \"-\" + variant, block && prefix + \"-block\", size && prefix + \"-\" + size);\n\n if (props.href) {\n return React.createElement(SafeAnchor, _extends({}, props, {\n as: as,\n ref: ref,\n className: classNames(classes, props.disabled && 'disabled')\n }));\n }\n\n if (ref) {\n props.ref = ref;\n }\n\n if (!as) {\n props.type = type;\n }\n\n var Component = as || 'button';\n return React.createElement(Component, _extends({}, props, {\n className: classes\n }));\n});\nButton.displayName = 'Button';\nButton.defaultProps = defaultProps;\nexport default Button;","import React from \"react\"\r\nimport { FormattedMessage, FormattedHTMLMessage, Link, useIntl, injectIntl } from \"gatsby-plugin-intl\"\r\nimport { graphql } from \"gatsby\"\r\nimport Layout from \"../components/layout\"\r\nimport SEO from \"../components/seo\"\r\n\r\nimport head_ru from \"../images/index/head.png\"\r\nimport head_en from \"../images/index/head_en.png\"\r\nimport \"../styles/main.css\"\r\nimport \"../styles/bootstrap.min.css\"\r\nimport {Jumbotron, Button} from \"react-bootstrap\"\r\n\r\nconst IndexPage = ({ data }) => {\r\n const intl = useIntl()\r\n const lang = intl.locale\r\n var news = \"\"\r\n var head = \"\"\r\n if ( lang===\"ru\" ) { news = data.ru_posts.edges; head = head_ru; } \r\n else if ( lang===\"en\" ) { news = data.en_posts.edges; head = head_en; }\r\n\r\n\r\n return(\r\n <Layout>\r\n <SEO lang={lang} title={intl.formatMessage({ id: \"title\" })} />\r\n\r\n {/* --------------------------------- */}\r\n <Jumbotron>\r\n <img src={head} width=\"90%\" className=\"center-block\" alt=\"head\" />\r\n <hr/>\r\n <h3 style = {{color: `rgb(18,64,171)`}}><FormattedMessage id=\"jumbotron.labintro\"/></h3>\r\n <p id=\"lead\"><FormattedMessage id=\"jumbotron.lead\"/></p>\r\n <FormattedHTMLMessage id=\"jumbotron.list\" />\r\n <Button variant=\"success\" id=\"jt\"><Link to=\"/about\"><FormattedMessage id=\"jumbotron.about\" /></Link></Button>\r\n </Jumbotron> \r\n {/* ------------------------------ */}\r\n <div className=\"row\">\r\n <div className=\"col-lg-4\">\r\n <h2><FormattedMessage id=\"more.nuclear_title\" /></h2>\r\n <p> <FormattedMessage id=\"more.nuclear_body\" /> </p>\r\n <Button variant=\"primary\" id=\"more\"><Link to=\"/projects/physics\"><FormattedMessage id=\"more.nuclear_more\" /></Link></Button>\r\n </div>\r\n <div className=\"col-lg-4\">\r\n <h2><FormattedMessage id=\"more.education_title\" /></h2>\r\n <p> <FormattedMessage id=\"more.education_body\" /></p>\r\n <Button variant=\"primary\" id=\"more\"><Link to=\"/projects/education\"><FormattedMessage id=\"more.education_more\" /></Link></Button>\r\n </div>\r\n <div className=\"col-lg-4\">\r\n <h2><FormattedMessage id=\"more.software_title\" /></h2>\r\n <p><FormattedMessage id=\"more.software_body\" /></p> \r\n <Button variant=\"primary\" id=\"more\"><Link to=\"/projects/software\"><FormattedMessage id=\"more.software_more\" /></Link></Button>\r\n </div>\r\n </div>\r\n <hr style={{marginBottom: `50px`}}/>\r\n {/* --------------------------------- */}\r\n <h1 style={{textAlign: `center`}}><FormattedMessage id=\"more.news\"/></h1>\r\n { news.map(({node}) => {\r\n const title = node.frontmatter.title; \r\n const date = node.frontmatter.date; \r\n return (\r\n <div className = \"card\" style={{marginBottom: `15px`, borderRadius: `0px`, boxShadow: `0 2px 2px #A2A2A2`}}>\r\n <div className = \"card-body\">\r\n <h2 className = \"title\">\r\n {title}<span id=\"date\">{date}</span>\r\n </h2>\r\n <p\r\n dangerouslySetInnerHTML = {{\r\n __html: node.frontmatter.description || node.html,\r\n }}\r\n />\r\n </div>\r\n </div>\r\n )\r\n })}\r\n </Layout>\r\n)\r\n}\r\n\r\nexport default injectIntl(IndexPage)\r\n\r\nexport const query = graphql`\r\n query {\r\n ru_posts: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"post\"}, published: {eq: true}, language: {eq: \"ru\"}}},\r\n sort: {fields: [frontmatter___date], order: DESC}, limit: 3 ) \r\n {\r\n edges{\r\n node{\r\n html\r\n frontmatter {\r\n date(formatString: \"DD.MM.YYYY\")\r\n title\r\n language\r\n }\r\n }\r\n }\r\n }\r\n\r\n en_posts: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"post\"}, published: {eq: true}, language: {eq: \"en\"}}},\r\n sort: {fields: [frontmatter___date], order: DESC}, limit: 3 ) \r\n {\r\n edges{\r\n node{\r\n html\r\n frontmatter {\r\n date(formatString: \"DD.MM.YYYY\")\r\n title\r\n language\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n }`\r\n\r\n"],"sourceRoot":""}