site/component---src-pages-projects-education-js-fc41d41deb3aafafc7a5.js.map
2020-03-21 20:12:32 +03:00

1 line
6.2 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/pages/projects/education.js"],"names":["injectIntl","data","intl","useIntl","lang","locale","posts","ru_projects","edges","en_projects","title","formatMessage","id","className","to","style","marginTop","marginBottom","map","node","link","frontmatter","shortTitle","courseName","name","dangerouslySetInnerHTML","__html","html","backgroundColor","padding","textAlign","margin","query"],"mappings":"6FAAA,0GAiEeA,gCA3DM,SAAC,GAAc,IAAZC,EAAW,EAAXA,KACdC,EAAOC,oBACPC,EAAOF,EAAKG,OACdC,EAAQ,GAGZ,MAFY,OAAPF,EAAgBE,EAAQL,EAAKM,YAAYC,MAC7B,OAAPJ,IAAgBE,EAAQL,EAAKQ,YAAYD,OAE/C,kBAAC,IAAD,KACA,kBAAC,IAAD,CAAKJ,KAAMA,EAAMM,MAAOR,EAAKS,cAAc,CAAEC,GAAI,YAE7C,wBAAIC,UAAU,gBACV,wBAAIA,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,YAAYC,GAAG,qBAAoB,kBAAC,mBAAD,CAAkBF,GAAG,uBAC9G,wBAAIC,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,kBAAkBC,GAAG,uBAAsB,kBAAC,mBAAD,CAAkBF,GAAG,yBACtH,wBAAIC,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,YAAYC,GAAG,kBAAiB,kBAAC,mBAAD,CAAkBF,GAAG,oBAC3G,wBAAIC,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,YAAYC,GAAG,sBAAqB,kBAAC,mBAAD,CAAkBF,GAAG,yBAGnH,wBAAIG,MAAS,CAACC,UAAU,SAAU,kBAAC,mBAAD,CAAkBJ,GAAG,qBACvD,uBAAGG,MAAO,CAACE,aAAa,QAAS,kBAAC,mBAAD,CAAkBL,GAAG,2BAEtD,4BACCN,EAAMY,KAAI,YAAa,IAAXC,EAAU,EAAVA,KACHC,EAAOD,EAAKE,YAAYC,WACxBV,EAAKO,EAAKE,YAAYT,GAC5B,OACI,4BAAI,kBAAC,OAAD,CAAME,GAAE,uBAAyBF,GAAOQ,QAKnDd,EAAMY,KAAI,YAAa,IAAXC,EAAU,EAAVA,KACHT,EAAQS,EAAKE,YAAYX,MACzBE,EAAKO,EAAKE,YAAYT,GACtBW,EAAaJ,EAAKE,YAAYE,WACpC,OACI,yBAAKV,UAAU,MAAMD,GAAIA,GACzB,yBAAKC,UAAU,aACf,6BACI,wBAAIW,KAAMZ,GAAKF,GACf,uBACAe,wBAA2B,CACvBC,OAAQP,EAAKQ,QAGjB,yBAAKd,UAAU,OAAOE,MAAO,CAACa,gBAAgB,YAC9C,yBAAKf,UAAU,YAAYE,MAAO,CAACc,QAAQ,SACnC,uBAAGd,MAAO,CAACe,UAAU,SAAWC,OAAO,QACnC,kBAAC,mBAAD,CAAkBnB,GAAG,sBAAqB,kBAAC,OAAD,CAAME,GAAE,UAAYS,GAAc,kBAAC,mBAAD,CAAkBX,GAAG,mCAc9H,IAAMoB,EAAK","file":"component---src-pages-projects-education-js-fc41d41deb3aafafc7a5.js","sourcesContent":["import React from \"react\"\r\nimport { graphql } from \"gatsby\"\r\nimport { FormattedMessage, Link, useIntl, injectIntl } from \"gatsby-plugin-intl\"\r\nimport Layout from \"../../components/layout\"\r\nimport SEO from \"../../components/seo\"\r\n\r\nconst SoftwarePage = ({ data }) => {\r\n const intl = useIntl()\r\n const lang = intl.locale\r\n var posts = \"\"\r\n if ( lang===\"ru\" ) { posts = data.ru_projects.edges; } \r\n else if ( lang===\"en\" ) { posts = data.en_projects.edges; }\r\n return(\r\n <Layout>\r\n <SEO lang={lang} title={intl.formatMessage({ id: \"title\" })} />\r\n\r\n <ul className=\"nav nav-tabs\"> \r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link \" to=\"/projects/physics\"><FormattedMessage id=\"physics.bc_title\"/></Link></li>\r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link active\" to=\"/projects/education\"><FormattedMessage id=\"education.bc_title\"/></Link></li>\r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link \" to=\"/projects/math\"><FormattedMessage id=\"math.bc_title\"/></Link></li>\r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link \" to=\"/projects/software\"><FormattedMessage id=\"software.bc_title\"/></Link></li> \r\n </ul>\r\n\r\n <h1 style = {{marginTop: `20px`}}><FormattedMessage id=\"education.title\"/></h1>\r\n <p style={{marginBottom: `5px`}}><FormattedMessage id=\"education.description\"/></p>\r\n\r\n <ul>\r\n {posts.map(({node}) => {\r\n const link = node.frontmatter.shortTitle;\r\n const id = node.frontmatter.id;\r\n return(\r\n <li><Link to={`/projects/education#${id}`}>{link}</Link></li>\r\n )\r\n })}\r\n </ul>\r\n\r\n {posts.map(({node}) => {\r\n const title = node.frontmatter.title;\r\n const id = node.frontmatter.id;\r\n const courseName = node.frontmatter.courseName;\r\n return(\r\n <div className=\"row\" id={id}>\r\n <div className=\"col-lg-12\">\r\n <hr/>\r\n <h2 name={id}>{title}</h2>\r\n <p\r\n dangerouslySetInnerHTML = {{\r\n __html: node.html,\r\n }}\r\n />\r\n <div className=\"card\" style={{backgroundColor: `#F5F5F5`}}>\r\n <div className=\"card-body\" style={{padding: `10px`}}>\r\n <p style={{textAlign: `center`, margin: `5px`}}>\r\n <FormattedMessage id=\"education.course1\"/><Link to={`/pages/${courseName}`}><FormattedMessage id=\"education.course2\"/></Link>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n )\r\n })}\r\n </Layout>\r\n )\r\n}\r\n\r\nexport default injectIntl(SoftwarePage)\r\n\r\nexport const query = graphql`\r\n query{\r\n ru_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"project_education\"}, published: {eq: true}, language: {eq: \"ru\"}}},\r\n sort: {fields: [frontmatter___order], order: ASC}){\r\n edges{\r\n node{\r\n html\r\n frontmatter{\r\n shortTitle\r\n title\r\n id\r\n courseName\r\n }\r\n }\r\n }}\r\n\r\n en_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"project_education\"}, published: {eq: true}, language: {eq: \"en\"}}},\r\n sort: {fields: [frontmatter___order], order: ASC}){\r\n edges{\r\n node{\r\n html\r\n frontmatter{\r\n shortTitle\r\n title\r\n id\r\n courseName\r\n }\r\n }\r\n }}\r\n }\r\n`"],"sourceRoot":""}