Vinlottispage UI redesign #56
@@ -2,7 +2,7 @@
|
||||
<div class="app-container">
|
||||
<banner :routes="routes"/>
|
||||
<router-view />
|
||||
<WineFooter />
|
||||
<Footer />
|
||||
<UpdateToast
|
||||
v-if="showToast"
|
||||
:text="toastText"
|
||||
@@ -15,12 +15,12 @@
|
||||
<script>
|
||||
import ServiceWorkerMixin from "@/mixins/ServiceWorkerMixin";
|
||||
import banner from "@/ui/Banner";
|
||||
import WineFooter from "@/ui/WineFooter";
|
||||
import Footer from "@/ui/Footer";
|
||||
import UpdateToast from "@/ui/UpdateToast";
|
||||
|
||||
export default {
|
||||
name: "vinlottis",
|
||||
components: { banner, UpdateToast, WineFooter },
|
||||
components: { banner, UpdateToast, Footer },
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<h4 class="el-spacing">Flasker vunnet:</h4>
|
||||
|
||||
<div v-for="win in winner.highscore" :key="win">
|
||||
<div v-for="win in winner.highscore" :key="win._id">
|
||||
<router-link :to="winDateUrl(win.date)" class="days-ago">
|
||||
{{ humanReadableDate(win.date) }} - {{ daysAgo(win.date) }} dager siden
|
||||
</router-link>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
|
||||
</router-link>
|
||||
</section>
|
||||
<ol class="winner-list-container">
|
||||
<li v-for="(person, index) in highscore" :key="person" class="single-winner">
|
||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
||||
<li v-for="(person, index) in highscore" :key="person._id" class="single-winner">
|
||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
||||
<span class="placement">{{index + 1}}.</span>
|
||||
<i class="icon icon--medal"></i>
|
||||
<p class="winner-name">{{ person.name }}</p>
|
||||
|
||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
Fixed Fixed
|
||||
@@ -2,7 +2,7 @@
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
<section class="outer-bought">
|
||||
<h3>Loddstatistikk</h3>
|
||||
|
||||
<div class="total-ballots">
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
<div class="total-raffles">
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
Totalt
|
||||
<span class="total">{{ total }}</span>
|
||||
kjøpte og
|
||||
@@ -17,7 +17,7 @@
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
color.name +
|
||||
'-container ' +
|
||||
color.name +
|
||||
'-ballot ballot-element-local'
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
'-raffle raffle-element-local'
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
"
|
||||
:key="color.name"
|
||||
>
|
||||
@@ -49,7 +49,7 @@ export default {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
redPercentage: 0,
|
||||
yellowPercentage: 0,
|
||||
greenPercentage: 0,
|
||||
bluePercentage: 0,
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
bluePercentage: 0
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
}
|
||||
}
|
||||
|
||||
.total-ballots {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
.total-raffles {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ export default {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
grid-gap: 50px;
|
||||
|
||||
.ballot-element-local {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
.raffle-element-local {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@@ -195,19 +195,19 @@ export default {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
&.green-ballot {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
&.green-raffle {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
background-color: $light-green;
|
||||
}
|
||||
|
||||
&.blue-ballot {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
&.blue-raffle {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
background-color: $light-blue;
|
||||
}
|
||||
|
||||
&.yellow-ballot {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
&.yellow-raffle {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
background-color: $light-yellow;
|
||||
}
|
||||
|
||||
&.red-ballot {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
&.red-raffle {
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
||||
background-color: $light-red;
|
||||
}
|
||||
}
|
||||
|
||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Fixed Fixed
|
||||
Same as above. Try not to use entire objects as keys.
Same as above. Try not to use entire objects as keys.
Fixed
Fixed