{"version":3,"sources":["components/Images/ChineseVillage.jpg","components/Images/productCurvyLines.png","components/Images/CharacterA.png","components/Images/SceneA1.png","components/Images/SceneA2.png","components/Images/CharacterB2.png","components/Images/CharacterB3.png","components/Images/CharacterB4.png","components/Images/WeaponA.png","components/NavMenu.js","components/Footer.js","components/Layout.js","components/Home/IntroBoard.js","components/Home/IntroDescription.js","components/Home/ProjectBoard.js","components/Home/Home.js","components/FetchData.js","components/Counter.js","App.js","registerServiceWorker.js","index.js"],"names":["module","exports","NavMenu","props","toggleNavbar","bind","state","collapsed","this","setState","Navbar","className","style","marginBotton","backgroundColor","Container","NavbarBrand","tag","Link","to","color","fontFamily","NavbarToggler","onClick","Collapse","isOpen","navbar","NavItem","NavLink","Component","displayName","name","Footer","Card","height","CardBody","Row","Col","CardTitle","CardSubtitle","CardText","Layout","overflow","children","IntroBoard","position","textAlign","display","src","backgroundImg","width","zIndex","marginTop","fontSize","IntroDescription","patternImage","ProjectBoard","marginLeft","marginRight","CharacterA","SceneA1","SceneA2","WeaponA","CharacterB2","CharacterB3","CharacterB4","Home","FetchData","forecasts","loading","populateWeatherData","contents","renderForecastsTable","id","fetch","response","json","data","aria-labelledby","map","forecast","key","date","temperatureC","temperatureF","summary","Counter","currentCount","incrementCounter","aria-live","App","exact","path","component","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","controller","console","log","catch","error","baseUrl","document","getElementsByTagName","getAttribute","rootElement","getElementById","ReactDOM","render","basename","URL","process","origin","addEventListener","status","headers","get","indexOf","ready","unregister","reload","checkValidServiceWorker","registerServiceWorker"],"mappings":"kHAAAA,EAAOC,QAAU,IAA0B,4C,mBCA3CD,EAAOC,QAAU,IAA0B,+C,mBCA3CD,EAAOC,QAAU,IAA0B,wC,mBCA3CD,EAAOC,QAAU,IAA0B,qC,mBCA3CD,EAAOC,QAAU,IAA0B,qC,mBCA3CD,EAAOC,QAAU,IAA0B,yC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V,SAAkCO,GAEhC3B,MAAM2B,GACHI,MAAK,SAAA9B,GAGkB,MAApBA,EAASsD,SACuD,IAAhEtD,EAASuD,QAAQC,IAAI,gBAAgBC,QAAQ,cAG7C9B,UAAUC,cAAc8B,MAAM5B,MAAK,SAAAC,GACjCA,EAAa4B,aAAa7B,MAAK,WAC7BT,OAAOC,SAASsC,eAKpBnC,GAAgBC,MAGnBa,OAAM,WACLF,QAAQC,IACN,oEA5DAuB,CAAwBnC,GAGxBD,GAAgBC,OCvBxBoC,K","file":"static/js/main.e4086f8d.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/ChineseVillage.f1e5a30d.jpg\";","module.exports = __webpack_public_path__ + \"static/media/productCurvyLines.3a1df6c1.png\";","module.exports = __webpack_public_path__ + \"static/media/CharacterA.4e8d1d9c.png\";","module.exports = __webpack_public_path__ + \"static/media/SceneA1.a483f096.png\";","module.exports = __webpack_public_path__ + \"static/media/SceneA2.d59e639f.png\";","module.exports = __webpack_public_path__ + \"static/media/CharacterB2.df1f6621.png\";","module.exports = __webpack_public_path__ + \"static/media/CharacterB3.8e952501.png\";","module.exports = __webpack_public_path__ + \"static/media/CharacterB4.164a182a.png\";","module.exports = __webpack_public_path__ + \"static/media/WeaponA.3e970d33.png\";","import React, { Component } from 'react';\r\nimport { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap';\r\nimport { Link } from 'react-router-dom';\r\nimport './NavMenu.css';\r\n\r\nexport class NavMenu extends Component {\r\n static displayName = NavMenu.name;\r\n\r\n constructor (props) {\r\n super(props);\r\n\r\n this.toggleNavbar = this.toggleNavbar.bind(this);\r\n this.state = {\r\n collapsed: true\r\n };\r\n }\r\n\r\n toggleNavbar () {\r\n this.setState({\r\n collapsed: !this.state.collapsed\r\n });\r\n }\r\n\r\n render () {\r\n return (\r\n
\r\n \r\n \r\n HalfRift Inc\r\n \r\n \r\n
    \r\n \r\n Home\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\nimport {\r\n Card, CardImg, CardText, CardBody,\r\n CardTitle, CardSubtitle, Button, Container,\r\n Row, Col\r\n} from 'reactstrap';\r\n\r\nexport default function Footer(props) {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n HalfRift Inc\r\n question@halfrift.awsapps.com\r\n \r\n \r\n \r\n \r\n Copyright © HalfRift All Rights Reserved.\r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n}\r\n","import React, { Component } from 'react';\r\nimport { Container } from 'reactstrap';\r\nimport { NavMenu } from './NavMenu';\r\nimport Footer from './Footer';\r\n\r\nexport class Layout extends Component {\r\n static displayName = Layout.name;\r\n\r\n render () {\r\n return (\r\n
\r\n \r\n {this.props.children}\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\nimport backgroundImg from '../Images/ChineseVillage.jpg';\r\nimport { Container } from 'reactstrap';\r\n\r\nfunction IntroBoard(props) {\r\n\r\n return (\r\n \r\n \r\n \r\n HalfRift Game\r\n \r\n \r\n Game Studio under HalfRift Inc\r\n \r\n \r\n );\r\n \r\n}\r\n\r\nexport default IntroBoard;\r\n","import React, { Component } from 'react';\r\nimport patternImage from '../Images/productCurvyLines.png';\r\nimport {\r\n Container, Row, Col, Card, CardImg, CardText, CardBody,\r\n CardTitle, CardSubtitle\r\n} from 'reactstrap';\r\n\r\nfunction IntroDescription(props) {\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Game Development\r\n Just try to make fun games\r\n The studio is founded by people who have their own full-time work while supporting studio projects to realize their childhood dream.\r\n Ever had a moment thinking 'what if ...' while playing a game, now it is time to make them come true.\r\n \r\n \r\n \r\n \r\n \r\n \r\n Community\r\n Community contribution and support\r\n Thanks for the growing indie game dev community and powerful toolsets, it makes indie game development more accessible than ever.\r\n While taking advantages of those new goods, we are constantly participating and contributing back to the community,\r\n supporting other developers while receiving help at the meanwhile\r\n \r\n \r\n \r\n \r\n \r\n \r\n Game Aesthetics\r\n Small but aesthetic\r\n As a start-up game studio, even though we are not able to afford tripple A size game development, that doesn't mean we can't deliver tripple A game aethetics.\r\n We believe that no matter how big the game is, the most important part is to polish every single part of the game and deliver most immersive experience as possible.\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n\r\n}\r\n\r\nexport default IntroDescription;\r\n","import React, { Component } from 'react';\r\nimport CharacterA from '../Images/CharacterA.png';\r\nimport SceneA1 from '../Images/SceneA1.png';\r\nimport SceneA2 from '../Images/SceneA2.png';\r\nimport CharacterB2 from '../Images/CharacterB2.png';\r\nimport CharacterB3 from '../Images/CharacterB3.png';\r\nimport CharacterB4 from '../Images/CharacterB4.png';\r\nimport WeaponA from '../Images/WeaponA.png';\r\n\r\nexport default function ProjectBoard(props) {\r\n return (\r\n \r\n
\r\n

Current Project

\r\n \r\n ShatteredSteorra\r\n \r\n \r\n Hack and slash anime style Single player ARPG game WIP. Plan to release on Steam PC late 2022. Future plan includes migration to mobile platform. \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import React, { Component } from 'react';\r\nimport { Container, Row } from 'reactstrap';\r\nimport IntroBoard from './IntroBoard';\r\nimport IntroDescription from './IntroDescription';\r\nimport ProjectBoard from './ProjectBoard';\r\n\r\nexport class Home extends Component {\r\n static displayName = Home.name;\r\n\r\n render () {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\n\r\nexport class FetchData extends Component {\r\n static displayName = FetchData.name;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { forecasts: [], loading: true };\r\n }\r\n\r\n componentDidMount() {\r\n this.populateWeatherData();\r\n }\r\n\r\n static renderForecastsTable(forecasts) {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {forecasts.map(forecast =>\r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
DateTemp. (C)Temp. (F)Summary
{forecast.date}{forecast.temperatureC}{forecast.temperatureF}{forecast.summary}
\r\n );\r\n }\r\n\r\n render() {\r\n let contents = this.state.loading\r\n ?

Loading...

\r\n : FetchData.renderForecastsTable(this.state.forecasts);\r\n\r\n return (\r\n
\r\n

Weather forecast

\r\n

This component demonstrates fetching data from the server.

\r\n {contents}\r\n
\r\n );\r\n }\r\n\r\n async populateWeatherData() {\r\n const response = await fetch('weatherforecast');\r\n const data = await response.json();\r\n this.setState({ forecasts: data, loading: false });\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\n\r\nexport class Counter extends Component {\r\n static displayName = Counter.name;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { currentCount: 0 };\r\n this.incrementCounter = this.incrementCounter.bind(this);\r\n }\r\n\r\n incrementCounter() {\r\n this.setState({\r\n currentCount: this.state.currentCount + 1\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n

Counter

\r\n\r\n

This is a simple example of a React component.

\r\n\r\n

Current count: {this.state.currentCount}

\r\n\r\n \r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\nimport { Route } from 'react-router';\r\nimport { Layout } from './components/Layout';\r\nimport { Home } from './components/Home/Home';\r\nimport { FetchData } from './components/FetchData';\r\nimport { Counter } from './components/Counter';\r\n\r\nimport './custom.css'\r\n\r\nclass App extends Component {\r\n static displayName = App.name;\r\n\r\n render () {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default App;","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport default function register () {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Lets check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl);\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW (swUrl) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker (swUrl) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister () {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import 'bootstrap/dist/css/bootstrap.css';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { BrowserRouter } from 'react-router-dom';\r\nimport App from './App';\r\nimport registerServiceWorker from './registerServiceWorker';\r\n\r\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\r\nconst rootElement = document.getElementById('root');\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n rootElement);\r\n\r\nregisterServiceWorker();\r\n\r\n"],"sourceRoot":""}