Timers and other features for Heroes of the Storm
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

65 righe
1.4 KiB

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