{"version":3,"sources":["components/Menu.js","components/Header.js","components/Project.js","components/ThemeButton.js","App.js","serviceWorker.js","index.js"],"names":["Menu","props","className","href","target","rel","role","fill","viewBox","xmlns","data-darkreader-inline-fill","d","Header","config","name","contact","Project","data","description","url","language","ThemeButton","theme","toggleTheme","version","width","height","class","onClick","DEFAULT_THEME","App","state","bind","setTheme","localStorage","getItem","this","setState","Object","keys","themes","map","key","value","document","documentElement","style","setProperty","setItem","newTheme","bio","tags","projects","tag","i","Component","Boolean","window","location","hostname","match","ReactDOM","render","getElementById","navigator","serviceWorker","ready","then","registration","unregister"],"mappings":"y0GAwDeA,MAvDf,SAAcC,GAEV,OACQ,yBAAKC,UAAU,QACX,uBAAGC,KAAK,uCAAuCC,OAAO,SAASC,IAAI,uBAC/D,yBACAH,UAAU,WACVI,KAAK,MACLC,KAAK,UACLC,QAAQ,YACRC,MAAM,6BACNC,8BAA4B,IAE5B,0BACIC,EAAE,+sBAIV,uBACIR,KAAK,4CACLC,OAAO,SACPC,IAAI,uBAEJ,yBACAH,UAAU,WACVO,MAAM,6BACND,QAAQ,eAER,2BACI,0BAAMG,EAAE,+BACR,0BACAA,EAAE,2VAKV,uBAAGR,KAAK,cACJC,OAAO,SACPC,IAAI,uBACJ,yBACAH,UAAU,WACVO,MAAM,6BACND,QAAQ,YACRD,KAAK,QACLG,8BAA4B,IAE5B,0BACIC,EAAE,mhDCjCXC,MAZf,SAAgBX,GAAQ,IAAD,EAEQA,EAAMY,OAAzBC,EAFW,EAEXA,KAAMC,EAFK,EAELA,QACd,OACI,yBAAKb,UAAU,UACX,wBAAIA,UAAU,QAASY,GACvB,wBAAIZ,UAAU,WAAWa,GACzB,kBAAC,EAAD,QCIGC,MAZf,SAAiBf,GAAQ,IAAD,EAE0BA,EAAMgB,KAA5CH,EAFY,EAEZA,KAAMI,EAFM,EAENA,YAAaC,EAFP,EAEOA,IAAKC,EAFZ,EAEYA,SAChC,OACI,yBAAKlB,UAAU,WACX,yBAAKA,UAAU,eA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U,aACb,yBAAKA,UAAU,WACb,kBAAC,EAAD,CAAaoB,MAAOA,EAAOC,YAAaa,KAAKb,cAC7C,kBAAC,EAAD,CAAQV,OAAQA,IAChB,yBAAKX,UAAU,OAAOgD,GACtB,yBAAKhD,UAAU,gBAEXiD,EAAKV,KAAI,SAACY,EAAKC,GACb,OAAQ,yBAAKpD,UAAU,MAAMwC,IAAMY,GAAKD,OAI9C,wCAEID,EAASX,KAAI,SAAC9B,EAAG2C,GACf,OAAQ,kBAAC,EAAD,CAASrC,KAAMN,EAAG+B,IAAMY,c,GA3DlCC,aCAEC,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCZNC,IAASC,OAAO,kBAAC,EAAD,MAASlB,SAASmB,eAAe,SD2H3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GACjCA,EAAaC,kB","file":"static/js/main.dbcd0969.chunk.js","sourcesContent":["import React from 'react';\nfunction Menu(props) {\n\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n}\n\nexport default Menu;\n","import React from 'react';\nimport Menu from './Menu.js';\n\nfunction Header(props) {\n\n const { name, contact } = props.config;\n return (\n
\n

{ name }

\n

{contact }

\n \n
\n );\n}\n\nexport default Header;","import React from 'react';\n\nfunction Project(props) {\n\n const { name, description, url, language } = props.data;\n return (\n
\n
{ language }
\n
{ name }
\n
{ description }
\n
\n );\n}\n\nexport default Project;","import React from 'react';\nimport '../App.scss';\n\nfunction ThemeButton(props) {\n const { theme, toggleTheme } = props;\n\n return (\n theme === 'light' ?\n \n \n :\n \n \n \n );\n}\n\nexport default ThemeButton;","import React, { Component } from 'react';\nimport Header from './components/Header.js';\nimport Project from './components/Project.js';\nimport ThemeButton from './components/ThemeButton.js';\nimport './App.scss';\n\n// Import config and themes\nimport config from './config.json';\nimport themes from './themes.json';\n\nconst DEFAULT_THEME = 'light';\n\nclass App extends Component {\n constructor(props) {\n super(props);\n this.state = {\n theme: DEFAULT_THEME\n }\n\n this.toggleTheme = this.toggleTheme.bind(this);\n this.setTheme = this.setTheme.bind(this);\n }\n\n componentDidMount() {\n const theme = localStorage.getItem('theme');\n if (theme && (theme === 'dark' || theme === 'light')) {\n this.setTheme(theme);\n } else {\n this.setTheme(DEFAULT_THEME);\n }\n }\n\n setTheme(theme) {\n this.setState({theme: theme});\n \n Object.keys(themes[theme]).map(key => {\n const value = themes[theme][key];\n document.documentElement.style.setProperty(key, value);\n localStorage.setItem('theme', theme)\n return null;\n });\n }\n\n toggleTheme() {\n const oldTheme = this.state.theme;\n const newTheme = oldTheme === 'dark' ? 'light' : 'dark';\n \n this.setTheme(newTheme);\n }\n\n render() {\n const { bio, tags, projects } = config;\n const { theme } = this.state;\n \n return (\n
\n
\n
\n \n
\n
{bio}
\n
\n {\n tags.map((tag, i) => {\n return (
{ tag }
);\n })\n }\n
\n

Projects

\n {\n projects.map((d, i) => {\n return ();\n })\n }\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 './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}