Timers and other features for Heroes of the Storm
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

61 lignes
1.2 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. +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. main
  41. margin-top: 20px
  42. </style>
  43. <style lang="sass">
  44. body
  45. margin: 0
  46. html
  47. font-family: Avenir, Helvetica, Arial, sans-serif
  48. -webkit-font-smoothing: antialiased
  49. -moz-osx-font-smoothing: grayscale
  50. color: $blizzard-font-color
  51. text-shadow: 0 0 1rem #009cff
  52. background-color: $blizzard-background-color
  53. </style>