Merge branch 'master' of github.com:KevinMidboe/vinlottis
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<router-link to="/" class="header-link">
|
<banner />
|
||||||
<h1 class="top-banner">knowit</h1>
|
|
||||||
</router-link>
|
<h1 class="title">Loddgenerator</h1>
|
||||||
<h1>Loddgenerator</h1>
|
|
||||||
<p>Velg hvilke farger du vil ha, fyll inn antall lodd og klikk 'generer'</p>
|
<p>Velg hvilke farger du vil ha, fyll inn antall lodd og klikk 'generer'</p>
|
||||||
<div class="input-line">
|
<div class="input-line">
|
||||||
<label for="redCheckbox">
|
<label for="redCheckbox">
|
||||||
@@ -64,10 +63,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Banner from "@/ui/Banner";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
Banner
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
numberOfBallots: 0,
|
numberOfBallots: 4,
|
||||||
colors: [],
|
colors: [],
|
||||||
blue: 0,
|
blue: 0,
|
||||||
red: 0,
|
red: 0,
|
||||||
@@ -170,13 +174,15 @@ body {
|
|||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: Knowit;
|
font-family: Knowit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
margin-top: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
@@ -221,6 +227,8 @@ button {
|
|||||||
input {
|
input {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
margin: 0;
|
||||||
|
max-height: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
@@ -276,9 +284,9 @@ button {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
padding: 10px 30px;
|
padding: 10px 30px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: auto;
|
margin: 0;
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
height: 48px;
|
height: calc(3rem + 1.8px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.colors-text {
|
.colors-text {
|
||||||
@@ -311,16 +319,13 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 768px) {
|
@media only screen and (max-width: 768px) {
|
||||||
input {
|
|
||||||
border: 1px solid #333333;
|
|
||||||
}
|
|
||||||
input,
|
input,
|
||||||
button {
|
button {
|
||||||
font-size: 1rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
input {
|
||||||
height: calc(2rem + 6px);
|
width: 45vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
<h1 class="top-banner">
|
<banner />
|
||||||
<img src="/public/assets/images/knowit.svg" />
|
|
||||||
</h1>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Vinlotteri</h1>
|
<h1>Vinlotteri</h1>
|
||||||
<router-link to="generate" class="generate-link">
|
<router-link to="generate" class="generate-link">
|
||||||
@@ -28,6 +26,7 @@ import PurchaseGraph from "@/ui/PurchaseGraph";
|
|||||||
import TotalBought from "@/ui/TotalBought";
|
import TotalBought from "@/ui/TotalBought";
|
||||||
import Highscore from "@/ui/Highscore";
|
import Highscore from "@/ui/Highscore";
|
||||||
import WinGraph from "@/ui/WinGraph";
|
import WinGraph from "@/ui/WinGraph";
|
||||||
|
import Banner from "@/ui/Banner";
|
||||||
import Wines from "@/ui/Wines";
|
import Wines from "@/ui/Wines";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -36,6 +35,7 @@ export default {
|
|||||||
TotalBought,
|
TotalBought,
|
||||||
Highscore,
|
Highscore,
|
||||||
WinGraph,
|
WinGraph,
|
||||||
|
Banner,
|
||||||
Wines
|
Wines
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -74,12 +74,6 @@ h1 {
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-banner {
|
|
||||||
margin-top: 0px;
|
|
||||||
padding: 20px 0;
|
|
||||||
background-color: #dbeede;
|
|
||||||
box-shadow: 0 0 10px 0px #0000003a;
|
|
||||||
}
|
|
||||||
|
|
||||||
.generate-link {
|
.generate-link {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|||||||
18
src/ui/Banner.vue
Normal file
18
src/ui/Banner.vue
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<router-link to="/">
|
||||||
|
<div class="top-banner">
|
||||||
|
<img src="/public/assets/images/knowit.svg" />
|
||||||
|
</div>
|
||||||
|
</router-link>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.top-banner {
|
||||||
|
text-align: center;
|
||||||
|
width: 100vw;
|
||||||
|
margin-top: 0px;
|
||||||
|
padding: 20px 0;
|
||||||
|
background-color: #dbeede;
|
||||||
|
box-shadow: 0 0 10px 0px #0000003a;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
<li v-for="wine in wines">
|
<li v-for="wine in wines">
|
||||||
<span v-if="wine.vivinoLink == '' || wine.vivinoLink == null">{{ wine.name }} - sett {{ wine.occurences }} ganger, {{ wine.rating }} i rating</span>
|
<span v-if="wine.vivinoLink == '' || wine.vivinoLink == null">{{ wine.name }} - sett {{ wine.occurences }} ganger, {{ wine.rating }} i rating</span>
|
||||||
<a :href="wine.vivinoLink" v-if="wine.vivinoLink != '' && wine.vivinoLink != null">{{ wine.name }} - sett {{ wine.occurences }} ganger, {{ wine.rating }} i rating</li>
|
<a :href="wine.vivinoLink" v-if="wine.vivinoLink != '' && wine.vivinoLink != null">{{ wine.name }} - sett {{ wine.occurences }} ganger, {{ wine.rating }} i rating</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user