<template>
  <div id="app">
    <header v-if="showHeader">
      <span>Nexus Timers</span>
    </header>
    <main>
      <router-view></router-view>
    </main>
  </div>
</template>

<script>
  // The header will be shown if the path match this regex
  const ROUTES_WITH_HEADER = /\/(battlegrounds)?$/

  export default {
    name: 'app',
    computed: {
      showHeader () {
        return ROUTES_WITH_HEADER.test(this.$route.path)
      }
    }
  }
</script>

<style lang="sass" scoped>
  header
    margin: 0
    height: 56px
    padding: 0 16px 0 24px
    @include blizzard-header-gradient
    text-shadow: 0 0 1rem #009cff
    color: #fff
    span
      display: block
      position: relative
      font-size: 20px
      line-height: 1
      letter-spacing: .02em
      font-weight: 400
      box-sizing: border-box
      padding-top: 16px


</style>

<style lang="sass">
  body
    margin: 0

  html
    font-family: Avenir, Helvetica, Arial, sans-serif
    -webkit-font-smoothing: antialiased
    -moz-osx-font-smoothing: grayscale
    color: $blizzard-font-color
    text-shadow: 0 0 1rem #009cff
    background-color: $blizzard-background-color

</style>
