{"version":3,"sources":["webpack:///./src/components/Button.js","webpack:///./src/pages/blogg/index.js","webpack:///./src/components/BlogRoll.js"],"names":["useStyles","createUseStyles","theme","button","appearance","backgroundColor","border","borderColor","palette","borderRadius","radius1","color","padding","spacing","width","font","lineHeight","cursor","outline","Button","_ref","className","children","classes","React","createElement","type","defaultProps","root","maxWidth","margin","BlogIndexPage","path","Layout","header","BlogRoll","title","blogRoll","display","flexFlow","justifyContent","alignItems","props","textAlign","roll","flexWrap","blogBox","flex","boxShadow","radius3","link","textDecoration","postTitle","fontWeight","date","fontSize","description","moreButton","marginTop","position","bottom","BlogRollComponent","data","limit","featured","edges","allMarkdownRemark","filter","edge","node","frontmatter","featuredpost","map","key","Link","to","fields","slug","Date","toLocaleDateString","year","month","day","slice","StaticQuery","query","render"],"mappings":"6FAAA,qCAIMA,EAAYC,2BAAgB,SAAAC,GAAK,MAAK,CACxCC,OAAQ,CACJC,WAAY,OACZC,gBAAiB,QACjBC,OAAQ,YACRC,YAAaL,EAAMM,QAAQ,eAC3BC,aAAcP,EAAMO,aAAaC,QACjCC,MAAOT,EAAMM,QAAQ,eACrBI,QAAYV,EAAMW,QAAQ,GAAE,IAAIX,EAAMW,QAAQ,IAC9CC,MAAO,cACPC,KAAM,UACNC,WAAYd,EAAMa,KAAKC,WACvB,UAAW,CACPC,OAAQ,WAEZ,UAAW,CACPC,QAAS,aAKfC,EAAS,SAAHC,GAA+B,IAA1BC,EAASD,EAATC,UAAWC,EAAQF,EAARE,SAClBC,EAAUvB,IAChB,OACIwB,IAAAC,cAAA,UAAQJ,UAAcE,EAAQpB,OAAM,IAAIkB,EAAaK,KAAK,UACrDJ,IAKbH,EAAOQ,aAAe,CAClBN,UAAW,KACXC,SAAU,MAYCH,O,kCChDf,oEAMMnB,EAAYC,2BAAgB,SAAAC,GAAK,MAAK,CACxC0B,KAAM,CACFd,MAAO,MACPe,SAAU,QACVC,OAAW5B,EAAMW,QAAQ,IAAK,aAoBvBkB,UAhBO,SAAHX,G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AAxB,GAAI,OACRtC,IAAAC,cAACoC,EAAiB,CACdC,KAAMA,EACN1B,MAAOA,EACP2B,MAAOA,EACPC,SAAUA,QAM1B7B,EAASR,aAAe,CACpBoC,MAAO,GACPC,UAAU,GASC7B","file":"component---src-pages-blogg-index-js-9909cc6bfc3d1660fbba.js","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {createUseStyles} from \"react-jss\";\n\nconst useStyles = createUseStyles(theme => ({\n button: {\n appearance: \"none\",\n backgroundColor: \"white\",\n border: \"1px solid\",\n borderColor: theme.palette[\"primary-500\"],\n borderRadius: theme.borderRadius.radius1,\n color: theme.palette[\"primary-500\"],\n padding: `${theme.spacing[4]} ${theme.spacing[16]}`,\n width: \"fit-content\",\n font: \"inherit\",\n lineHeight: theme.font.lineHeight,\n \"&:hover\": {\n cursor: \"pointer\"\n },\n \"&:focus\": {\n outline: \"none\"\n }\n }\n}));\n\nconst Button = ({className, children}) => {\n const classes = useStyles();\n return (\n \n );\n};\n\nButton.defaultProps = {\n className: null,\n children: null\n}\n\nButton.propTypes = {\n className: PropTypes.string,\n children: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.element,\n PropTypes.arrayOf(PropTypes.element)\n ])\n};\n\nexport default Button;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {createUseStyles} from \"react-jss\";\nimport Layout from \"../../components/Layout\";\nimport BlogRoll from \"../../components/BlogRoll\";\n\nconst useStyles = createUseStyles(theme => ({\n root: {\n width: \"90%\",\n maxWidth: \"720px\",\n margin: `${theme.spacing[\"64\"]} auto`,\n }\n}));\n\nconst BlogIndexPage = ({path}) => {\n const classes = useStyles();\n return (\n \n
\n

Siste nyheter

\n \n
\n
\n );\n};\n\nBlogIndexPage.propTypes = {\n path: PropTypes.string.isRequired\n}\n\nexport default BlogIndexPage;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {Link, graphql, StaticQuery} from \"gatsby\";\nimport {createUseStyles} from \"react-jss\";\nimport Button from \"./Button\";\n\nconst useStyles = createUseStyles(theme => ({\n blogRoll: {\n display: \"flex\",\n flexFlow: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n maxWidth: props => props.maxWidth\n },\n title: {\n width: \"100%\",\n textAlign: \"left\",\n color: theme.palette[\"neutral-800\"]\n },\n roll: {\n width: `calc(100% + ${theme.spacing[\"16\"]})`,\n display: \"flex\",\n flexWrap: \"wrap\",\n justifyContent: \"flex-start\",\n margin: `0 -${theme.spacing[\"8\"]}`\n },\n blogBox: {\n flex: \"0 0 auto\",\n padding: theme.spacing[\"32\"],\n maxWidth: \"calc(50% - 16px)\",\n backgroundColor: \"white\",\n border: `1px solid ${theme.palette[\"neutral-050\"]}`,\n boxShadow:\n \"0 3px 5px hsla(0, 0%, 0%, 0.1), 0 5px 15px hsla(0, 0%, 0%, 0.05)\",\n borderRadius: theme.borderRadius.radius3,\n display: \"flex\",\n flexFlow: \"column\",\n justifyContent: \"space-between\",\n margin: theme.spacing[\"8\"],\n \"@media (max-width: 720px)\": {\n maxWidth: \"calc(100% - 16px)\"\n }\n },\n link: {\n textDecoration: \"none\"\n },\n postTitle: {\n margin: \"0\",\n color: theme.palette[\"primary-500\"],\n fontWeight: \"700\"\n },\n date: {\n color: theme.palette[\"neutral-400\"],\n fontSize: theme.fontSize[\"14\"]\n },\n description: {\n margin: \"0\",\n color: theme.palette[\"neutral-600\"]\n },\n moreButton: {\n marginTop: theme.spacing[\"16\"],\n appearance: \"none\",\n position: \"relative\",\n bottom: \"0\"\n }\n}));\n\nconst BlogRollComponent = props => {\n const {data, limit, title, featured} = props;\n const classes = useStyles(props);\n const {edges} = data.allMarkdownRemark;\n\n const formatDate = date => {\n const d = new Date(date);\n return d.toLocaleDateString(\"nb-NO\", {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\"\n });\n };\n\n\n return (\n
\n

{title}

\n
\n {edges\n .filter(edge =>\n featured ? edge.node.frontmatter.featuredpost : true\n )\n .map(edge => (\n \n
\n \n

\n {edge.node.frontmatter.title}\n

\n \n

\n {formatDate(edge.node.frontmatter.date)}\n

\n

\n {edge.node.frontmatter.description}\n

\n
\n \n \n \n
\n ))\n .slice(0, limit)}\n
\n \n );\n};\n\n\nBlogRollComponent.propTypes = {\n data: PropTypes.objectOf(PropTypes.objectOf(PropTypes.array)).isRequired,\n limit: PropTypes.number.isRequired,\n title: PropTypes.string.isRequired,\n featured: PropTypes.bool.isRequired\n};\n\nconst BlogRoll = ({limit, title, featured}) => (\n (\n \n )}\n />\n);\n\nBlogRoll.defaultProps = {\n limit: 99,\n featured: false\n};\n\nBlogRoll.propTypes = {\n limit: PropTypes.number,\n title: PropTypes.string.isRequired,\n featured: PropTypes.bool\n};\n\nexport default BlogRoll;\n"],"sourceRoot":""}