Vinlottispage UI redesign #56
@@ -19,39 +19,19 @@
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="container">
|
<section class="container">
|
||||||
<!-- <span> Scroll for å annen gøy statistikk</span> -->
|
<p class="scroll-info"> | Scroll for å se annen gøy statistikk</p>
|
||||||
|
|
||||||
|
<Highscore class="highscore"/>
|
||||||
|
<TotalBought class="total-bought" />
|
||||||
<section class="header-and-notification">
|
|
||||||
<h1 @click="startCountdown">Vinlotteri</h1>
|
|
||||||
<img
|
|
||||||
src="/public/assets/images/notification.svg"
|
|
||||||
alt="Notification-bell"
|
|
||||||
@click="requestNotificationAccess"
|
|
||||||
class="notification-request-button"
|
|
||||||
role="button"
|
|
||||||
v-if="notificationAllowed"
|
|
||||||
/>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="to-lottery-container">
|
|
||||||
<a href="#/lottery" class="to-lottery">Vil du til lotteriet?<span class="vin-link">Trykk her</span></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<section class="chart-container">
|
<section class="chart-container">
|
||||||
<PurchaseGraph class="purchase" />
|
<PurchaseGraph class="purchase" />
|
||||||
<WinGraph class="win" />
|
<WinGraph class="win" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<TotalBought class="total-bought" />
|
|
||||||
<Vipps class="vipps-icon" />
|
|
||||||
<Highscore class="highscore"/>
|
|
||||||
<Wines class="wines-container" />
|
<Wines class="wines-container" />
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
<Countdown :hardEnable="hardStart" @countdown="changeEnabled" />
|
<Countdown :hardEnable="hardStart" @countdown="changeEnabled" />
|
||||||
</div>
|
</div>
|
||||||
@@ -200,125 +180,45 @@ h1 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.header-and-notification{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vipps-icon{
|
|
||||||
margin: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
margin: .5em;
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
grid-template-columns: repeat(12, 1fr);
|
||||||
grid-template-rows: auto-flow min-content;
|
|
||||||
grid-template-areas: "top-top top-top top-top"
|
|
||||||
"top-bot top-bot top-bot"
|
|
||||||
"middle-top middle-top middle-top"
|
|
||||||
"middle-bot-left middle-bot-left middle-bot-right"
|
|
||||||
"bot-left bot-right bot-right";
|
|
||||||
|
|
||||||
.header-and-notification {
|
.scroll-info {
|
||||||
grid-area: top-top;
|
grid-column: 3 / -3;
|
||||||
}
|
|
||||||
|
|
||||||
.to-lottery-container{
|
|
||||||
grid-area: top-bot;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
grid-area: middle-top;
|
grid-column: 3 / -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-bought {
|
.total-bought {
|
||||||
grid-area: middle-bot-left;
|
grid-column: 3 / -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highscore {
|
.highscore {
|
||||||
border-top: 1px solid rgb(237, 237, 237);
|
grid-column: 3 / -3;
|
||||||
grid-area: bot-left;
|
|
||||||
align-self: baseline;
|
align-self: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wines-container {
|
.wines-container {
|
||||||
border-top: 1px solid rgb(237, 237, 237);
|
grid-column: 3 / -3;
|
||||||
padding-left: 1em;
|
|
||||||
border-left: 1px solid rgb(237, 237, 237);
|
|
||||||
grid-area: bot-right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vipps-icon {
|
|
||||||
padding-left: 1em;
|
|
||||||
align-self: center;
|
|
||||||
grid-area: middle-bot-right;
|
|
||||||
border-left: 1px solid rgb(237, 237, 237);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include desktop {
|
// @include desktop {
|
||||||
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
||||||
grid-template-rows: auto-flow min-content;
|
|
||||||
grid-template-areas: "top-top top-top top-top top-top"
|
|
||||||
"top-bot top-bot top-bot top-bot"
|
|
||||||
"middle-top middle-top middle-top middle-top"
|
|
||||||
"middle-bot middle-bot middle-bot aside"
|
|
||||||
"bot-left bot-right bot-right aside";
|
|
||||||
grid-gap: 1em;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.header-and-notification {
|
// }
|
||||||
grid-area: top-top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.to-lottery-container {
|
// @include widescreen {
|
||||||
grid-area: top-bot;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chart-container {
|
// }
|
||||||
grid-area: middle-top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.total-bought {
|
|
||||||
grid-area: middle-bot;
|
|
||||||
border-bottom: 1px solid rgb(237, 237, 237);
|
|
||||||
}
|
|
||||||
|
|
||||||
.highscore {
|
|
||||||
border: none;
|
|
||||||
grid-area: bot-left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wines-container {
|
|
||||||
border: none;
|
|
||||||
grid-area: bot-right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vipps-icon {
|
|
||||||
grid-area: aside;
|
|
||||||
padding-left: 3em;
|
|
||||||
border-left: 1px solid rgb(237, 237, 237);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include widescreen {
|
|
||||||
width: 70%;
|
|
||||||
max-width: 1800px;
|
|
||||||
margin: auto;
|
|
||||||
|
|
||||||
.vipps-icon {
|
|
||||||
padding-left: 6em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,19 @@
|
|||||||
|
|
|||||||
<template>
|
<template>
|
||||||
<div class="highscores" v-if="highscore.length > 0">
|
<div class="highscores" v-if="highscore.length > 0">
|
||||||
<h3>
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
<router-link to="highscore">
|
<section class="heading">
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
Topp 10 vinnere <span class="vin-link">Se alle ></span>
|
<h3>
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
Topp 5 vinnere
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
</h3>
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
<router-link to="highscore" class="">
|
||||||
|
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="vin-link">Se alle vinnere</span>
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
</router-link>
|
</router-link>
|
||||||
</h3>
|
</section>
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
<ol>
|
<ol class="winner-list-container">
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
<li v-for="person in highscore" :key="person">
|
<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
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
{{ person.name }} - {{ person.wins.length }}
|
<span class="placement">{{index + 1}}</span>
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
<span class="winner-icon"> ic </span>
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
<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.
Fixed Fixed
|
|||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,60 +35,69 @@ export default {
|
|||||||
|
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
|
|||||||
response = response.filter(
|
response = response.filter(
|
||||||
person => person.name != null && person.name != ""
|
person => person.name != null && person.name != ""
|
||||||
);
|
);
|
||||||
this.highscore = response.slice(0, 10);
|
this.highscore = response.slice(0, 5);
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "../styles/media-queries.scss";
|
@import "../styles/media-queries.scss";
|
||||||
div {
|
@import "../styles/variables.scss";
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
margin: 0;
|
.heading {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
font-family: Arial;
|
display: flex;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
display: inline-flex;
|
justify-content: space-between;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
flex-direction: column;
|
align-items: center;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
a {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
text-align: left;
|
text-decoration: none;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
color: #333333;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
|
||||||
& a {
|
&:focus,
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
&:active,
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
&:visited {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
&:focus,
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
&:active,
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
&:visited {
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
text-decoration: none;
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
color: #333333;
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
}
|
}
|
||||||
|
Could also update api to take a Could also update api to take a `size` 😬
|
|||||||
}
|
}
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
padding-left: 1.375rem !important;
|
list-style-type: none;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin: 0 0 1.5em;
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
counter-reset: item;
|
}
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
& > li {
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
padding: 2.5px 0;
|
.winner-list-container {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
width: max-content;
|
width: 100%;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
margin: 0 0 0 -1.25rem;
|
display: grid;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
padding: 0;
|
grid-template: 1fr / repeat(5, 1fr);
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
list-style-type: none;
|
column-gap: 2em;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
counter-increment: item;
|
margin: 0;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
&:before {
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
display: inline-block;
|
.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
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
width: 1em;
|
width: 10em;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
padding-right: 0.5rem;
|
background: $primary;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
font-weight: bold;
|
padding: 1em;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
text-align: right;
|
display: grid;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
content: counter(item) ".";
|
grid-template: 1fr .3fr / 1fr 1fr 1fr;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
justify-content: center;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
align-items: center;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
justify-items: center;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
.placement {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
grid-row: 1;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
grid-column: 1 / 3;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
font-size: 3em;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include mobile {
|
.winner-name {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
padding: 5px 0;
|
grid-row: 2;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
grid-column: 1 / -1;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
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
|
|||||||
|
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
.winner-icon {
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
grid-row: 1;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
|
grid-column: 3;
|
||||||
|
Same as above. Try not to use entire objects as keys. Same as above. Try not to use entire objects as keys.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
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
|
|||||||
@@ -1,6 +1,15 @@
|
|||||||
|
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
|
|||||||
<template>
|
<template>
|
||||||
<div class="outer-bought">
|
<section class="outer-bought">
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<h3>Loddstatistikk</h3>
|
<h3>Loddstatistikk</h3>
|
||||||
|
|
||||||
|
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="inner-bought-container 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
|
|||||||
|
Totalt
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
<span class="total">{{ total }}</span>
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
kjøpte og
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
<span>{{ totalWin }} vinn</span>
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
</div>
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
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="bought-container">
|
<div class="bought-container">
|
||||||
<div
|
<div
|
||||||
v-for="color in colors"
|
v-for="color in colors"
|
||||||
@@ -8,34 +17,23 @@
|
|||||||
|
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 +
|
color.name +
|
||||||
'-container ' +
|
'-container ' +
|
||||||
color.name +
|
color.name +
|
||||||
'-ballot inner-bought-container ballot-element'
|
'-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
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"
|
:key="color.name"
|
||||||
>
|
>
|
||||||
<div class="number-container">
|
<p class="number-container">
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<span class="color-total bought-number-span">
|
{{translate(color.name)}} vinnersjanse
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
<!-- <span class="color-total bought-number-span">
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
{{ color.total }}
|
{{ color.total }}
|
||||||
</span>
|
</span> -->
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<span>kjøpte</span>
|
</p>
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
</div>
|
<h3>{{ color.totalPercentage }}% vinn</h3>
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
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="inner-text-container">
|
<div class="inner-text-container">
|
||||||
<div>{{ color.win }} vinn</div>
|
<div>{{ color.win }} vinn</div>
|
||||||
<div>{{ color.totalPercentage }}% vinn</div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
</div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
</div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
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="inner-bought-container 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-container">
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
Totalt
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<span class="total">{{ total }}</span> kjøpte
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
</div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<div>{{ totalWin }} vinn</div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
<div>{{ stolen }} stjålet</div>
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { colorStatistics } from "@/api";
|
import { colorStatistics } from "@/api";
|
||||||
@@ -114,6 +112,23 @@ 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
|
|||||||
this.colors = this.colors.sort((a, b) => (a.win > b.win ? -1 : 1));
|
this.colors = this.colors.sort((a, b) => (a.win > b.win ? -1 : 1));
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
translate(color){
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
switch(color) {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
case "blue":
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
return "Blå"
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
break;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
case "red":
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
return "Rød"
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
break;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
case "green":
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
return "Grønn"
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
break;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
case "yellow":
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
return "Gul"
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
break;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
break;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
},
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
getPercentage: function(win, total) {
|
getPercentage: function(win, total) {
|
||||||
return this.round(win == 0 ? 0 : (win / total) * 100);
|
return this.round(win == 0 ? 0 : (win / total) * 100);
|
||||||
},
|
},
|
||||||
@@ -125,108 +140,138 @@ 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
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "../styles/global.scss";
|
// @import "../styles/global.scss";
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
@import "../styles/variables.scss";
|
@import "../styles/variables.scss";
|
||||||
@import "../styles/media-queries.scss";
|
@import "../styles/media-queries.scss";
|
||||||
|
|
||||||
.inner-bought-container {
|
.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
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;
|
display: flex;
|
||||||
flex-direction: column;
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
justify-content: center;
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
align-items: center;
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ballot-element {
|
.bought-container {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
width: 140px;
|
margin-top: 2em;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
height: 150px;
|
display: grid;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
margin: 20px 0;
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
column-gap: 2em;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
.number-container {
|
.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
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;
|
margin: 0;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
align-items: flex-end;
|
width: 100%;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
height: 100%;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
padding: .5em;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
& span:last-child {
|
&.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
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding-bottom: 5px;
|
background-color: $light-green;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding-left: 5px;
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
&.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
|
|||||||
|
background-color: $light-blue;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
&.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
|
|||||||
|
background-color: $light-yellow;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
&.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
|
|||||||
|
background-color: $light-red;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.inner-bought-container {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
.ballot-element {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// width: 140px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// height: 150px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// margin: 20px 0;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
.number-container {
|
||||||
|
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;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// align-items: flex-end;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// & span:last-child {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// padding-bottom: 5px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// padding-left: 5px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
// }
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
}
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
.inner-text-container {
|
.inner-text-container {
|
||||||
display: flex;
|
// display: flex;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
flex-direction: column;
|
// flex-direction: column;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
justify-content: center;
|
// justify-content: center;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
align-items: center;
|
// align-items: center;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
// TODO fix styling for displaying in columns
|
// TODO fix styling for displaying in columns
|
||||||
@include mobile {
|
@include mobile {
|
||||||
& div {
|
// & div {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding: 0 5px;
|
// padding: 0 5px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
// }
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-ballots {
|
.total-ballots {
|
||||||
width: 150px;
|
// width: 150px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
height: 150px;
|
// height: 150px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
margin: 20px 0;
|
// margin: 20px 0;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
.total-container {
|
.total-container {
|
||||||
align-items: flex-start;
|
// align-items: flex-start;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
.total-container {
|
// .total-container {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
> div:nth-of-type(2) {
|
// > div:nth-of-type(2) {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
margin-top: auto;
|
// margin-top: auto;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding-bottom: 4px;
|
// padding-bottom: 4px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding-left: 5px;
|
// padding-left: 5px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
// }
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
// }
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bought-number-span {
|
.bought-number-span {
|
||||||
display: inline-flex;
|
// display: inline-flex;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
.outer-bought {
|
// .outer-bought {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
@include mobile {
|
// @include mobile {
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding: 0 20px;
|
// padding: 0 20px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
// }
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
// }
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
.bought-container {
|
.bought-container {
|
||||||
display: flex;
|
// display: flex;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
flex-direction: row;
|
// flex-direction: row;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
flex-wrap: wrap;
|
// flex-wrap: wrap;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
width: 100%;
|
// width: 100%;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
padding-bottom: 3rem;
|
// padding-bottom: 3rem;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
max-width: 1400px;
|
// max-width: 1400px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
margin: auto;
|
// margin: auto;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
font-family: Arial;
|
// font-family: Arial;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
padding-bottom: 0px;
|
// padding-bottom: 0px;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-total,
|
.color-total,
|
||||||
.total {
|
.total {
|
||||||
font-size: 2rem;
|
// font-size: 2rem;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
font-weight: bold;
|
// font-weight: bold;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
font-weight: bold;
|
// font-weight: bold;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
font-size: 1.25rem;
|
// font-size: 1.25rem;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
display: inline-block;
|
// display: inline-block;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
.bought-container {
|
.bought-container {
|
||||||
flex-wrap: wrap;
|
// flex-wrap: wrap;
|
||||||
|
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
Ehhm isn't Ehhm isn't `ballot` renamed to `raffle`?
Goes for all instances of Goes for all instances of `ballot`.
Fixed Fixed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
|
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