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.
 
 
 
 
 

79 lines
1.9 KiB

  1. <!--
  2. Copyright © 2021 Adrien Agez <adrien.agez@pm.me>
  3. This file is part of Nexus Timers.
  4. Nexus Timers is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Nexus Timers is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with Nexus Timers. If not, see <https://www.gnu.org/licenses/>.
  14. -->
  15. <template>
  16. <div id="app">
  17. <header v-if="showHeader">
  18. <span>Nexus Timers</span>
  19. </header>
  20. <main>
  21. <router-view></router-view>
  22. </main>
  23. </div>
  24. </template>
  25. <script>
  26. // The header will be shown if the path match this regex
  27. const ROUTES_WITH_HEADER = /\/(battlegrounds)?$/
  28. export default {
  29. name: 'app',
  30. computed: {
  31. showHeader () {
  32. return ROUTES_WITH_HEADER.test(this.$route.path)
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="sass" scoped>
  38. header
  39. margin: 0
  40. height: 56px
  41. padding: 0 16px 0 24px
  42. @include blizzard-header-gradient
  43. text-shadow: 0 0 1rem #009cff
  44. color: #fff
  45. span
  46. display: block
  47. position: relative
  48. font-size: 20px
  49. line-height: 1
  50. letter-spacing: .02em
  51. font-weight: 400
  52. box-sizing: border-box
  53. padding-top: 16px
  54. </style>
  55. <style lang="sass">
  56. body
  57. margin: 0
  58. html
  59. font-family: Avenir, Helvetica, Arial, sans-serif
  60. -webkit-font-smoothing: antialiased
  61. -moz-osx-font-smoothing: grayscale
  62. color: $blizzard-font-color
  63. text-shadow: 0 0 1rem #009cff
  64. background-color: $blizzard-background-color
  65. </style>