import Inferno from 'inferno'

import {ga, Analytics} from './lib/analytics'
import Header from './header'
import Scene from './scene'
import Drone from './lib/drone'
import webfont from './lib/webfont'
import styles from './styles'

(() => {
  webfont({
    families: ['Cinzel Decorative:400'],
    text: 'Langri-Sha'
  })

  const container = document.createElement('div')
  container.className = styles.container
  document.body.appendChild(container)

  try {
    Inferno.render((
      <div>
        <Header />
        <Scene />
        <Analytics id={'UA-86127521-1'} />
        <Drone />
      </div>
    ), container)
  } catch (err) {
    ga('send', 'exception', {
      exDescription: err.message,
      exFatal: false
    })

    console.error(err)
  }
})()

import Inferno from 'inferno'

import {ga, Analytics} from './lib/analytics'
import Header from './header'
import Scene from './scene'
import Drone from './lib/drone'
import webfont from './lib/webfont'
import styles from './styles'

(() => {
  webfont({
    families: ['Cinzel Decorative:400'],
    text: 'Langri-Sha'
  })

  const container = document.createElement('div')
  container.className = styles.container
  document.body.appendChild(container)

  try {
    Inferno.render((
      <div>
        <Header />
        <Scene />
        <Analytics id={'UA-86127521-1'} />
        <Drone />
      </div>
    ), container)
  } catch (err) {
    ga('send', 'exception', {
      exDescription: err.message,
      exFatal: false
    })

    console.error(err)
  }
})()

if (module.hot) {
    module.hot.accept()
}

enable hmr runtime