feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion

This commit is contained in:
Sabe Jones
2020-12-10 16:53:37 -06:00
parent 74ebcf919e
commit 53f19c4da3
282 changed files with 681 additions and 198 deletions

View File

@@ -518,7 +518,10 @@
</p>
</div>
</div>
<div class="npc-justin-textbox"></div>
<div
class="npc-justin-textbox"
:style="{'background-image': imageURL}"
></div>
</div>
</div>
<div
@@ -755,7 +758,6 @@
top: -3.1rem;
width: 48px;
height: 48px;
background-image: url('~@/assets/images/justin_textbox.png');
}
.featured-label {
@@ -1189,7 +1191,10 @@ export default {
};
},
computed: {
...mapState({ user: 'user.data' }),
...mapState({
user: 'user.data',
currentEvent: 'worldState.data.currentEvent',
}),
editing () {
return this.$store.state.avatarEditorOptions.editingUser;
},
@@ -1240,6 +1245,12 @@ export default {
});
return ownedBackgrounds;
},
imageURL () {
if (!this.currentEvent || !this.currentEvent.season) {
return 'url(/static/npc/normal/npc_justin.png)';
}
return `url(/static/npc/${this.currentEvent.season}/npc_justin.png)`;
},
},
watch: {
editing () {