Timers and other features for Heroes of the Storm
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

77 Zeilen
1.7 KiB

  1. <template>
  2. <div class="battleground" v-if="battleground">
  3. <div class="battleground-content">
  4. <div>Welcome to {{ battleground.name }}</div>
  5. <div id="objectives" class="objectives">
  6. <div class="row" v-for="objectiveRow in battleground.objectives">
  7. <template v-for="objective in objectiveRow">
  8. <Objective :objective="objective"></Objective>
  9. </template>
  10. </div>
  11. </div>
  12. <router-link to="/battlegrounds">Back to selector</router-link>
  13. </div>
  14. </div>
  15. </template>
  16. <style lang="sass" scoped>
  17. $border-style: 1px solid #66CCFF
  18. .battleground
  19. background-image: url(/static/backgrounds/alterac-pass.jpg)
  20. background-size: contain
  21. &-content
  22. backdrop-filter: blur(6px)
  23. height: 100vh
  24. .objectives
  25. display: flex
  26. flex-direction: column
  27. height: 100%
  28. .row
  29. display: flex
  30. justify-content: space-between
  31. flex-grow: 1
  32. &:first-child
  33. border-top: $border-style
  34. border-bottom: $border-style
  35. .objective
  36. &:first-child
  37. border-left: $border-style
  38. border-right: $border-style
  39. </style>
  40. <script>
  41. import BATTLEGROUNDS from '@/gameInfos/battlegrounds'
  42. import Timer from '@/components/Timer'
  43. import Objective from '@/components/Objective'
  44. export default {
  45. name: 'Battleground',
  46. data () {
  47. return {
  48. }
  49. },
  50. computed: {
  51. battlegroundId () {
  52. return this.$route.params.battlegroundId
  53. },
  54. battleground () {
  55. return BATTLEGROUNDS[this.battlegroundId]
  56. }
  57. },
  58. watch: {
  59. $route (to) {
  60. this.battlegroundId = to.params.battlegroundId
  61. }
  62. },
  63. components: {
  64. Timer,
  65. Objective
  66. }
  67. }
  68. </script>