Timers and other features for Heroes of the Storm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

60 lines
1.1 KiB

  1. <template>
  2. <div id="app">
  3. <header v-if="showHeader">
  4. <span>Nexus Timers</span>
  5. </header>
  6. <main>
  7. <router-view></router-view>
  8. </main>
  9. </div>
  10. </template>
  11. <script>
  12. // The header will be shown if the path match this regex
  13. const ROUTES_WITH_HEADER = /\/(battlegrounds)?$/
  14. export default {
  15. name: 'app',
  16. computed: {
  17. showHeader () {
  18. return ROUTES_WITH_HEADER.test(this.$route.path)
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="sass" scoped>
  24. header
  25. margin: 0
  26. height: 56px
  27. padding: 0 16px 0 24px
  28. @include blizzard-header-gradient
  29. text-shadow: 0 0 1rem #009cff
  30. color: #fff
  31. span
  32. display: block
  33. position: relative
  34. font-size: 20px
  35. line-height: 1
  36. letter-spacing: .02em
  37. font-weight: 400
  38. box-sizing: border-box
  39. padding-top: 16px
  40. </style>
  41. <style lang="sass">
  42. body
  43. margin: 0
  44. html
  45. font-family: Avenir, Helvetica, Arial, sans-serif
  46. -webkit-font-smoothing: antialiased
  47. -moz-osx-font-smoothing: grayscale
  48. color: $blizzard-font-color
  49. text-shadow: 0 0 1rem #009cff
  50. background-color: $blizzard-background-color
  51. </style>