Ver código fonte

🚧: init new backgrounds

master
Adrien 4 anos atrás
pai
commit
f3e7c92c7d
7 arquivos alterados com 26 adições e 17 exclusões
  1. +1
    -2
      src/App.vue
  2. +22
    -10
      src/components/Battleground.vue
  3. +1
    -4
      src/components/TheBattlegroundSelector.vue
  4. +2
    -1
      src/styles/main.sass
  5. BIN
      static/backgrounds/alterac-pass.jpg
  6. BIN
      static/backgrounds/battlefieldofeternity.jpg
  7. BIN
      static/backgrounds/blackheartsbay.jpg

+ 1
- 2
src/App.vue Ver arquivo

@@ -41,8 +41,7 @@
box-sizing: border-box
padding-top: 16px

main
margin-top: 20px

</style>

<style lang="sass">


+ 22
- 10
src/components/Battleground.vue Ver arquivo

@@ -1,26 +1,35 @@
<template>
<div class="battleground" v-if="battleground">
<div>Welcome to {{ battleground.name }}</div>
<div class="battleground-content">
<div>Welcome to {{ battleground.name }}</div>

<div id="objectives" class="objectives">
<div class="row" v-for="objectiveRow in battleground.objectives">
<template v-for="objective in objectiveRow">
<Objective :objective="objective"></Objective>
</template>
<div id="objectives" class="objectives">
<div class="row" v-for="objectiveRow in battleground.objectives">
<template v-for="objective in objectiveRow">
<Objective :objective="objective"></Objective>
</template>
</div>
</div>
<router-link to="/battlegrounds">Back to selector</router-link>
</div>
<router-link to="/battlegrounds">Back to selector</router-link>

</div>
</template>

<style lang="sass" scoped>
$border-style: 1px solid #66CCFF

.battleground
background-image: url(/static/backgrounds/alterac-pass.jpg)
background-size: contain
&-content
backdrop-filter: blur(4px)
height: 100vh

.objectives
display: flex
flex-direction: column
height: 70vh
height: 100%

.row
display: flex
justify-content: space-between
@@ -46,8 +55,11 @@
}
},
computed: {
battlegroundId () {
return this.$route.params.battlegroundId
},
battleground () {
return BATTLEGROUNDS[this.$route.params.battlegroundId]
return BATTLEGROUNDS[this.battlegroundId]
}
},
watch: {


+ 1
- 4
src/components/TheBattlegroundSelector.vue Ver arquivo

@@ -24,7 +24,7 @@
}
</script>

<style lang="sass">
<style lang="sass" scoped>
.map-selector
&__map-list
list-style-type: none
@@ -34,9 +34,6 @@
padding: 10px 0 10px 10px
border-top: solid #5659aa 1px
border-left: none
</style>

<style lang="sass" scoped>
a
text-decoration: none
color: inherit


+ 2
- 1
src/styles/main.sass Ver arquivo

@@ -7,7 +7,8 @@
// ## Colors ##
// ############
$blizzard-background-color: #0A020F
$blizzard-font-color: #66CCFF
$blizzard-background-color-transparent: #0A020FCC
$blizzard-font-color: #fff

=blizzard-header-gradient
background: #0d39a0 /* Old browsers */


BIN
static/backgrounds/alterac-pass.jpg Ver arquivo

Antes Depois
Largura: 6000  |  Altura: 3375  |  Tamanho: 909 KiB

BIN
static/backgrounds/battlefieldofeternity.jpg Ver arquivo

Antes Depois
Largura: 1920  |  Altura: 1080  |  Tamanho: 103 KiB

BIN
static/backgrounds/blackheartsbay.jpg Ver arquivo

Antes Depois
Largura: 3300  |  Altura: 1856  |  Tamanho: 762 KiB

Carregando…
Cancelar
Salvar