mirror of
https://github.com/exane/not-gwent-online
synced 2025-09-25 22:59:10 +00:00
few simple changes
This commit is contained in:
@@ -1,5 +1,35 @@
|
||||
var cards = require("../../../../../../assets/data/cards");
|
||||
var deck = require("../../../../../../assets/data/deck");
|
||||
|
||||
module.exports = {
|
||||
|
||||
template: require('../views/deck-builder.html')
|
||||
template: require('../views/deck-builder.html'),
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
cards: [],
|
||||
deck: []
|
||||
}
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
this.cards = $.map(cards, function(n) {
|
||||
if(n.faction == 'Northern Realm' && n.type != 3) return n;
|
||||
});
|
||||
|
||||
$.map(deck, (n, i) => {
|
||||
if(i == 'northern_realm') {
|
||||
for(var m in n) {
|
||||
//console.log(this.cards[m].type);
|
||||
this.deck.push(this.cards[m]);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
filters: {
|
||||
leader: function(deck) {
|
||||
//return deck.type == 3 ? deck : 'ne';
|
||||
}
|
||||
}
|
||||
};
|
@@ -1 +1,33 @@
|
||||
deckbuilder
|
||||
<div class="heading">Nord Deck</div>
|
||||
|
||||
<div class="all-cards-wrap">
|
||||
<div class="all-cards">
|
||||
|
||||
<div class="clear-space"></div>
|
||||
|
||||
<div class="card-wrap" v-repeat="card: cards">
|
||||
<div class="bla ani"></div>
|
||||
<div class="card-img card" style="background-image: url(http://80.240.132.120/gwent/assets/cards/{{ card.img }}.png)"></div>
|
||||
<div class="shadow"></div>
|
||||
<div class="overlay-card"></div>
|
||||
</div>
|
||||
|
||||
<div class="clear-space"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--div class="line"></div-->
|
||||
|
||||
<p>{{ leader.name }}</p>
|
||||
|
||||
<style>
|
||||
.container-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.test {
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
@@ -1,187 +1 @@
|
||||
<style>
|
||||
.card {
|
||||
float: left;
|
||||
border-radius: 12px;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.bla {
|
||||
border-radius: 14px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.card-wrap:hover .bla {
|
||||
box-shadow: 0 0 2px 0 orange;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.shadow {
|
||||
border-radius: 35%;
|
||||
box-shadow: 0 0 15px 14px #ffa500;
|
||||
content: "";
|
||||
height: calc(100% - 50px);
|
||||
left: 15px;
|
||||
position: absolute;
|
||||
width: calc(100% - 22px);
|
||||
z-index: 1;
|
||||
top: 30px;
|
||||
transition: all 0.3s ease-in-out 0s;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.card-wrap:hover .shadow {
|
||||
-webkit-animation: Shadow 4s ease-in-out infinite;
|
||||
-moz-animation: Shadow 4s ease-in-out infinite;
|
||||
animation: Shadow 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.ani {
|
||||
background: linear-gradient(2deg, #000, #000, #000, #000);;
|
||||
transition: all .05s ease-in-out 0s;
|
||||
}
|
||||
|
||||
.card-wrap .ani {
|
||||
background: linear-gradient(2deg, #ffa500, #ffd68b, #ffa500, #ffa500);
|
||||
background-size: 800% 800%;
|
||||
|
||||
-webkit-animation: AnimationName 3s ease infinite;
|
||||
-moz-animation: AnimationName 3s ease infinite;
|
||||
animation: AnimationName 3s ease infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes Shadow {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
25% {
|
||||
opacity: .5;
|
||||
}
|
||||
50%{
|
||||
opacity: 1;
|
||||
}
|
||||
75% {
|
||||
opacity: .5;
|
||||
}
|
||||
100%{ opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes Shadow {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
25% {
|
||||
opacity: .5;
|
||||
}
|
||||
50%{
|
||||
opacity: 1;
|
||||
}
|
||||
75% {
|
||||
opacity: .5;
|
||||
}
|
||||
100%{ opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes Shadow {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
25% {
|
||||
opacity: .5;
|
||||
}
|
||||
50%{
|
||||
opacity: 1;
|
||||
}
|
||||
75% {
|
||||
opacity: .5;
|
||||
}
|
||||
100%{ opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.overlay-card {
|
||||
background: linear-gradient(2deg, rgba(255,255,255,.03), rgba(255,255,255,.2), rgba(255,255,255,.05));
|
||||
background-size: 800% 800%;
|
||||
position: absolute;
|
||||
z-index: 20;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: calc(100% - 10px);
|
||||
height: calc(100% - 5px);
|
||||
border-radius: 12px;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card-wrap:hover .overlay-card {
|
||||
opacity: 1;
|
||||
-webkit-animation: AnimationName 10s ease infinite;
|
||||
-moz-animation: AnimationName 10s ease infinite;
|
||||
animation: AnimationName 10s ease infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes AnimationName {
|
||||
0%{background-position:51% 0%}
|
||||
50%{background-position:50% 100%}
|
||||
100%{background-position:51% 0%}
|
||||
}
|
||||
@-moz-keyframes AnimationName {
|
||||
0%{background-position:51% 0%}
|
||||
50%{background-position:50% 100%}
|
||||
100%{background-position:51% 0%}
|
||||
}
|
||||
@keyframes AnimationName {
|
||||
0%{background-position:51% 0%}
|
||||
50%{background-position:50% 100%}
|
||||
100%{background-position:51% 0%}
|
||||
}
|
||||
|
||||
.card-wrap {
|
||||
float: left;
|
||||
width: 160px;
|
||||
height: 294px;
|
||||
position: relative;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.card-wrap:hover {
|
||||
z-index: 100;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="card-wrap">
|
||||
<div class="bla ani"></div>
|
||||
<img src="http://80.240.132.120/gwent/assets/cards/ballista1.png" class="card" width="150" height="auto">
|
||||
<div class="shadow"></div>
|
||||
<div class="overlay-card"></div>
|
||||
</div>
|
||||
|
||||
<div class="card-wrap">
|
||||
<div class="bla ani"></div>
|
||||
<img src="http://80.240.132.120/gwent/assets/cards/archer.png" class="card" width="150" height="auto">
|
||||
<div class="shadow"></div>
|
||||
<div class="overlay-card"></div>
|
||||
</div>
|
||||
|
||||
<div class="card-wrap">
|
||||
<div class="bla ani"></div>
|
||||
<img src="http://80.240.132.120/gwent/assets/cards/eilhart.png" class="card" width="150" height="auto">
|
||||
<div class="shadow"></div>
|
||||
<div class="overlay-card"></div>
|
||||
</div>
|
||||
|
||||
<div class="card-wrap">
|
||||
<div class="bla ani"></div>
|
||||
<img src="http://80.240.132.120/gwent/assets/cards/geralt.png" class="card" width="150" height="auto">
|
||||
<div class="shadow"></div>
|
||||
<div class="overlay-card"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user