Liting.
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<main class="main-container">
|
<main class="main-container">
|
||||||
|
|
||||||
<section class="top-container">
|
<section class="top-container">
|
||||||
|
|
||||||
<div class="want-to-win">
|
<div class="want-to-win">
|
||||||
<h1>
|
<h1>
|
||||||
Vil du også vinne?
|
Vil du også vinne?
|
||||||
@@ -38,17 +36,16 @@
|
|||||||
<i class="icon icon--bottle"></i>
|
<i class="icon icon--bottle"></i>
|
||||||
<i class="icon icon--bottle"></i>
|
<i class="icon icon--bottle"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="content-container">
|
<section class="content-container">
|
||||||
|
|
||||||
<div class="scroll-info">
|
<div class="scroll-info">
|
||||||
<i class="icon icon--arrow-long-right"></i>
|
<i class="icon icon--arrow-long-right"></i>
|
||||||
<p>Scroll for å se vinnere og annen gøy statistikk</p>
|
<p>Scroll for å se vinnere og annen gøy statistikk</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Highscore class="highscore" />
|
<Highscore class="highscore" />
|
||||||
|
|
||||||
<TotalBought class="total-bought" />
|
<TotalBought class="total-bought" />
|
||||||
|
|
||||||
<section class="chart-container">
|
<section class="chart-container">
|
||||||
@@ -56,12 +53,10 @@
|
|||||||
<WinGraph class="win" />
|
<WinGraph class="win" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<Wines class="wines-container" />
|
<Wines class="wine-container" />
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<Countdown :hardEnable="hardStart" @countdown="changeEnabled" />
|
<Countdown :hardEnable="hardStart" @countdown="changeEnabled" />
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -96,11 +91,7 @@ export default {
|
|||||||
if (!("PushManager" in window)) {
|
if (!("PushManager" in window)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return (
|
return Notification.permission !== "granted" || !this.pushAllowed || localStorage.getItem("push") == null;
|
||||||
Notification.permission !== "granted" ||
|
|
||||||
!this.pushAllowed ||
|
|
||||||
localStorage.getItem("push") == null
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@@ -120,7 +111,7 @@ export default {
|
|||||||
this.hardStart = way;
|
this.hardStart = way;
|
||||||
},
|
},
|
||||||
track() {
|
track() {
|
||||||
window.ga('send', 'pageview', '/');
|
window.ga("send", "pageview", "/");
|
||||||
},
|
},
|
||||||
startCountdown() {
|
startCountdown() {
|
||||||
this.hardStart = true;
|
this.hardStart = true;
|
||||||
@@ -262,13 +253,11 @@ export default {
|
|||||||
grid-row: 2 / 4;
|
grid-row: 2 / 4;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
&.icon--face-1 {
|
&.icon--face-1 {
|
||||||
grid-column: 4 / 7;
|
grid-column: 4 / 7;
|
||||||
grid-row: 2 / 4;
|
grid-row: 2 / 4;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
&.icon--face-3 {
|
&.icon--face-3 {
|
||||||
grid-column: 7 / 10;
|
grid-column: 7 / 10;
|
||||||
@@ -278,7 +267,6 @@ export default {
|
|||||||
&.icon--ballon {
|
&.icon--ballon {
|
||||||
grid-column: 9 / 11;
|
grid-column: 9 / 11;
|
||||||
grid-row: 3 / 5;
|
grid-row: 3 / 5;
|
||||||
|
|
||||||
}
|
}
|
||||||
&.icon--bottle {
|
&.icon--bottle {
|
||||||
grid-row: 4 / -1;
|
grid-row: 4 / -1;
|
||||||
@@ -304,7 +292,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -346,8 +333,8 @@ h1 {
|
|||||||
grid-column: 2 / -2;
|
grid-column: 2 / -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wines-container {
|
.wine-container {
|
||||||
grid-column: 2 / -2;
|
grid-column: 3 / -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon--arrow-long-right {
|
.icon--arrow-long-right {
|
||||||
@@ -356,7 +343,6 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
|
|
||||||
.scroll-info {
|
.scroll-info {
|
||||||
grid-column: 3 / -3;
|
grid-column: 3 / -3;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user