{"version":3,"sources":["webpack:///./src/pages/index.js"],"names":["Partners","css","breakpoints","mobile","IndexPage","data","title","sanitySiteSettings","description","pathname","image","asset","fixed","hero","bg","colors","green02","index","className","frontpageTitle","content","map","item","element","__typename","key","_type","i","allSanityPartner","edges","externalURL","node","linkText","mainImage","allSanityLinkList","style","typescale","links","bold","underlined","arrow"],"mappings":"kQA8IMA,EAAWC,YAAH,mEAKgBC,IAAYC,OAL5B,yBAsICC,UA1HG,SAAC,GAAY,IAAXC,EAAU,EAAVA,KAElB,OACE,YAAC,IAAD,KAEE,YAAC,IAAD,CACEC,MAAOD,EAAKE,mBAAmBD,MAC/BE,YAAaH,EAAKE,mBAAmBC,YACrCC,SAAS,IACTC,MAAOL,EAAKE,mBAAmBG,MAAMC,OAASN,EAAKE,mBAAmBG,MAAMC,MAAMC,MAAQP,EAAKE,mBAAmBG,MAAMC,MAAMC,MAAQ,OAGrIP,EAAKE,mBAAmBM,MACvB,YAAC,IAAD,aACEC,GAAIC,IAAOC,QACXC,MAAO,GACHZ,EAAKE,mBAAmBM,KAAK,GAHnC,CAIEP,MAAO,kBAAIY,UAAU,sBAAsBb,EAAKE,mBAAmBY,mBAIvE,uBAEGd,EAAKE,mBAAmBa,QAAQC,KAAI,SAACC,EAAML,GAE1C,IAAIM,EAEJ,GAAID,GAAQA,EAAKE,WAEf,OAAOF,EAAKE,YACV,IAAK,gBACHD,EAAU,YAAC,IAAD,aACRT,GAAIC,IAAOC,QACXS,IAAKR,EAAQK,EAAKI,MAClBT,MAAOA,GACHK,EAJI,CAKRhB,MAAO,kBAAIY,UAAU,cAAcI,EAAKhB,UAE1C,MACF,IAAK,cACHiB,EAAU,YAAC,IAAD,aAAOE,IAAKR,EAAQK,EAAKI,MAAOC,EAAGV,GAAWK,IACxD,MACF,QACEC,EAAU,iDAA6BD,EAAKE,YAKlD,OAAOD,KAIT,mBAAKL,UAAWlB,GACd,mBAAKkB,UAAU,qBACb,uBAASA,UAAU,aAEjB,mBAAKA,UAAU,WACb,mBAAKA,UAAU,4BAEb,mBAAKA,UAAU,+CACZb,EAAKuB,iBAAiBC,MAAMR,KAAI,SAACC,EAAMK,GAAP,OAC/B,mBAAKF,IAAKE,EAAGT,UAAU,wCACrB,YAAC,IAAD,CACEY,YAAaR,EAAKS,KAAKD,YACvBE,SAAUV,EAAKS,KAAKC,SACpBC,UAAWX,EAAKS,KAAKE,sBAevC,mBAAKf,UAAU,gBACb,uBAASA,UAAU,aACjB,mBAAKA,UAAU,wBACZb,EAAK6B,kBAAkBL,MAAMR,KAAI,SAACC,EAAMK,GAAP,OAChC,mBAAKT,UAAU,+BAA+BO,IAAKE,GACjD,uBAEE,kBACET,UAAU,kBACViB,MAAOC,IAAU,YAChBd,EAAKS,KAAKzB,OAGb,sBACCgB,EAAKS,KAAKM,MAAMhB,KAAI,SAAAC,GAAI,OACvB,kBAAIG,IAAKH,EAAKU,SAAUd,UAAU,QAChC,YAAC,IAAD,CACEoB,MAAI,EACJC,YAAU,EACVC,OAAK,EACLV,YAAaR,EAAKQ,YAClBE,SAAUV,EAAKU,SACfC,UAAWX,EAAKW","file":"component---src-pages-index-js-78518ab3b728892f50da.js","sourcesContent":["import * as React from \"react\"\nimport { graphql } from \"gatsby\";\nimport { css } from '@emotion/css';\n\nimport Container from '../components/layout/container'\n\nimport SEO from '../components/seo'\nimport Section from '../components/editorial/section'\nimport Quote from \"../components/editorial/quote\";\nimport LinkComponent from \"../components/editorial/link\";\n\nimport { typescale } from \"../styling/typescale\";\n\n// styles\nimport \"./../styling/libraries.scss\"\nimport { colors } from \"../styling/colors\";\nimport { breakpoints } from \"../styling/breakpoints\";\n\n// data\nexport const query = graphql`\n query MyQuery {\n allSanityLinkList {\n edges {\n node {\n id\n title\n links {\n linkText\n externalURL\n }\n }\n }\n }\n allSanityPartner {\n edges {\n node {\n id\n linkText\n externalURL\n mainImage {\n asset {\n fixed {\n src\n }\n }\n }\n }\n }\n }\n sanitySiteSettings {\n title\n description\n url\n internal {\n content\n description\n ignoreType\n mediaType\n }\n image {\n asset {\n fixed {\n src\n height\n width\n }\n }\n }\n frontpageTitle\n hero {\n _key\n _type\n title\n _rawRichText\n links {\n linkText\n page {\n title\n slug {\n current\n }\n }\n }\n mainImage {\n asset {\n fixed {\n src\n }\n }\n }\n }\n content {\n ... on SanityQuote {\n _key\n _type\n author\n title_1\n title\n quote\n story {\n slug {\n current\n }\n }\n image {\n alt\n asset {\n fixed(width: 530, height: 312) {\n src\n }\n }\n }\n }\n ... on SanitySection {\n _key\n _type\n title\n video\n _rawRichText\n links {\n linkText\n page {\n title\n slug {\n current\n }\n }\n }\n mainImage {\n alt\n asset {\n fixed {\n src\n }\n }\n }\n }\n }\n }\n }\n`\n\nconst Partners = css`\n text-align: center;\n \n .logo {\n max-width: 200px;\n @media only screen and (${breakpoints.mobile}) {\n margin: 0 auto;\n }\n }\n`\n\n// markup\nconst IndexPage = ({data}) => {\n\n return (\n \n\n \n\n {data.sanitySiteSettings.hero &&\n
{data.sanitySiteSettings.frontpageTitle}}\n />\n }\n\n
\n\n {data.sanitySiteSettings.content.map((item, index) => {\n\n let element;\n\n if (item && item.__typename) {\n\n switch(item.__typename) {\n case 'SanitySection':\n element =
{item.title}}\n />\n break;\n case 'SanityQuote':\n element = \n break;\n default:\n element =
Udefinert innholdstype {item.__typename}
\n break;\n }\n }\n\n return element;\n\n })}\n\n
\n
\n
\n\n
\n
\n\n
\n {data.allSanityPartner.edges.map((item, i) => \n
\n \n
\n )}\n
\n \n
\n
\n\n\n
\n\n
\n
\n\n
\n
\n
\n {data.allSanityLinkList.edges.map((item, i) => \n
\n
\n \n

\n {item.node.title}\n

\n\n
    \n {item.node.links.map(item => \n
  • \n \n
  • \n )}\n
\n
\n
\n )}\n
\n\n
\n\n
\n\n
\n\n \n )\n}\n\nexport default IndexPage\n"],"sourceRoot":""}