{"version":3,"sources":["components/Link.js","components/LinkGroup.js","partials/ProjectLinks.js","partials/Content.js","partials/Heading.js","App.js","serviceWorker.js","index.js"],"names":["StyledLink","styled","div","Link","href","text","StyledLinkGroup","LinkGroup","group","map","link","index","key","links","ProjectLinks","Array","isArray","StyledContent","Content","StyledHeading","h1","Heading","StyledApp","App","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","console","log","onUpdate","onSuccess","catch","error","ReactDOM","render","document","getElementById","URL","process","origin","addEventListener","fetch","response","contentType","headers","get","status","indexOf","ready","unregister","reload","checkValidServiceWorker"],"mappings":"qVAGA,IAAMA,EAAaC,IAAOC,IAAV,KAQHC,EAAO,SAAC,GAAD,IAAEC,EAAF,EAAEA,KAAMC,EAAR,EAAQA,KAAR,OAClB,kBAACL,EAAD,KACE,uBAAGI,KAAMA,GAAOC,K,6ICTpB,IAAMC,EAAkBL,IAAOC,IAAV,KAQRK,EAAY,SAAC,GAAD,IAAEC,EAAF,EAAEA,MAAF,OACvB,kBAACF,EAAD,KACGE,EAAMC,KAAI,SAACC,EAAMC,GAAP,OAAiB,kBAAC,EAAD,eAAMC,IAAG,qBAAgBD,IAAaD,SCFhEG,EAAQ,CACZ,CACE,CAAER,KAAM,+BAA6BD,KAAM,oCAC3C,CAAEC,KAAM,YAAaD,KAXL,qfAalB,CAAEC,KAAM,kBAAmBD,KAAM,gCAGtBU,EAAe,kBAC1BD,EAAMJ,KAAI,SAACD,EAAOG,GAAR,OACRI,MAAMC,QAAQR,GACV,kBAAC,EAAD,CAAWI,IAAG,qBAAgBD,GAASH,MAAOA,IAC9C,kBAAC,EAAD,eAAMI,IAAG,gBAAWD,IAAaH,Q,0LCpBzC,IAAMS,EAAgBhB,IAAOC,IAAV,KAYNgB,EAAU,kBACrB,kBAACD,EAAD,KACE,4CACA,kBAAC,EAAD,Q,uHCfJ,IAAME,EAAgBlB,IAAOmB,GAA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AK,SAAAC,GACjCA,EAAa6B,aAAa9B,MAAK,WAC7BV,OAAOC,SAASwC,eAKpBrC,EAAgBC,EAAOC,MAG1BgB,OAAM,WACLJ,QAAQC,IACN,oEArFAuB,CAAwBrC,EAAOC,GAI/BC,UAAUC,cAAc+B,MAAM7B,MAAK,WACjCQ,QAAQC,IACN,iHAMJf,EAAgBC,EAAOC,OC3C/BE,K","file":"static/js/main.0105014f.chunk.js","sourcesContent":["import React from 'react';\nimport styled from \"styled-components\";\n\nconst StyledLink = styled.div`\n transition: transform .2s;\n \n &:hover {\n transform: scale(1.2);\n }\n`\n\nexport const Link = ({href, text}) => (\n \n {text}\n \n)","import React from \"react\";\nimport styled from \"styled-components\";\nimport {Link} from \"./Link\";\n\nconst StyledLinkGroup = styled.div`\n display: inline-flex;\n \n & > div {\n margin: 8px 40px;\n }\n`\n\nexport const LinkGroup = ({group}) => (\n \n {group.map((link, index) => )}\n \n)","import React from \"react\";\nimport {LinkGroup} from \"components/LinkGroup\";\nimport {Link} from \"components/Link\";\n\nconst varExampleHref = `\nhttps://tio.run/##lZJPT8JAEMXv/RQTTpqQIBdNvJFCIsYgEdSj2bYDbtju1P1Tw6evs6WtGlLBHtrDznvze/taClNVj89rGMy0QwN78gY2oiQjHYL2eY\nLmFgYAoxEsjdQOrOPPFhyBe0fwFk00XyyD5o3Hoe9h/cqROShA6sI7fkMpjBSJQrg4@F62Rmy6Psc0Jl2icTVMg9aqGFFoXuJwi2YIcgMFWSt5W/QyeYKUfB\n153G8@4fGt5gm26kgbXRS93j2cQzixoIixhO2mM0ILmhzghxcKroaANUoIsSGl6DPkSClDSBSluyhY1S3FYTkf1p0creptKJyv1t@Zz7jM5t46SbjNxrrDOW\nF3wGmHSqE8HlGFmv9B1WRrFYlId797jhrX@M9@2XWuU4M5/gBM9jCu1dNZ3FXVo55iq24Ha/VsMYVTD6vvfV507CFWSsagLUhnIV34sVLKc6EzIA1KaoTrqr\nr5Ag\n`\n\nconst links = [\n [\n { text: \"Programmeringsspråket VAR\", href: \"https://github.com/machalvan/VAR\" },\n { text: \"(Exempel)\", href: varExampleHref },\n ],\n { text: \"Adventskalender\", href: \"https://advent.netlify.com/\" },\n]\n\nexport const ProjectLinks = () => (\n links.map((group, index) => (\n Array.isArray(group)\n ? \n : \n ))\n)","import React from 'react';\nimport styled from 'styled-components'\nimport {ProjectLinks} from \"./ProjectLinks\";\n\nconst StyledContent = styled.div`\n margin-top: 120px;\n \n & > h2 {\n margin-bottom: 50px;\n }\n\n & > div {\n margin-bottom: 30px;\n }\n`\n\nexport const Content = () => (\n \n

Mina projekt

\n \n
\n)","import React from 'react';\nimport styled from \"styled-components\";\nimport {LinkGroup} from \"components/LinkGroup\";\n\nconst StyledHeading = styled.h1`\n font-weight: lighter;\n font-style: italic;\n`\n\nconst links = [\n { text: \"Github\", href: \"https://github.com/machalvan/\" },\n { text: \"LinkedIn\", href: \"https://www.linkedin.com/in/hanssonmarcus/\" },\n]\n\nexport const Heading = () => (\n <>\n Marcus Hansson\n \n \n)","import React from 'react';\nimport styled from 'styled-components'\nimport {Content} from \"partials/Content\";\nimport {Heading} from \"partials/Heading\";\n\nconst StyledApp = styled.div`\n text-align: center;\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n \n a {\n color: white;\n }\n`\n\nconst App = () => {\n return (\n \n \n \n \n );\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\nserviceWorker.register();\n"],"sourceRoot":""}