ソースを参照

🚧: init new backgrounds

master
Adrien 3年前
コミット
f3e7c92c7d
7個のファイルの変更26行の追加17行の削除
  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. バイナリ
      static/backgrounds/alterac-pass.jpg
  6. バイナリ
      static/backgrounds/battlefieldofeternity.jpg
  7. バイナリ
      static/backgrounds/blackheartsbay.jpg

+ 1
- 2
src/App.vue ファイルの表示

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


main
margin-top: 20px

</style> </style>


<style lang="sass"> <style lang="sass">


+ 22
- 10
src/components/Battleground.vue ファイルの表示

@@ -1,26 +1,35 @@
<template> <template>
<div class="battleground" v-if="battleground"> <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> </div>
<router-link to="/battlegrounds">Back to selector</router-link>
</div> </div>
<router-link to="/battlegrounds">Back to selector</router-link>

</div> </div>
</template> </template>


<style lang="sass" scoped> <style lang="sass" scoped>
$border-style: 1px solid #66CCFF $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 .objectives
display: flex display: flex
flex-direction: column flex-direction: column
height: 70vh
height: 100%

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


+ 1
- 4
src/components/TheBattlegroundSelector.vue ファイルの表示

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


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

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


+ 2
- 1
src/styles/main.sass ファイルの表示

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


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


バイナリ
static/backgrounds/alterac-pass.jpg ファイルの表示

変更前 変更後
幅: 6000  |  高さ: 3375  |  サイズ: 909 KiB

バイナリ
static/backgrounds/battlefieldofeternity.jpg ファイルの表示

変更前 変更後
幅: 1920  |  高さ: 1080  |  サイズ: 103 KiB

バイナリ
static/backgrounds/blackheartsbay.jpg ファイルの表示

変更前 変更後
幅: 3300  |  高さ: 1856  |  サイズ: 762 KiB

読み込み中…
キャンセル
保存