Design-updates
This commit is contained in:
BIN
public/images/vipps.png
Normal file
BIN
public/images/vipps.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 315 KiB |
@@ -48,7 +48,7 @@ passport.use(new LocalStrategy(User.authenticate()));
|
|||||||
// use static serialize and deserialize of model for passport session support
|
// use static serialize and deserialize of model for passport session support
|
||||||
passport.serializeUser(User.serializeUser());
|
passport.serializeUser(User.serializeUser());
|
||||||
passport.deserializeUser(User.deserializeUser());
|
passport.deserializeUser(User.deserializeUser());
|
||||||
|
app.use("/images", express.static(path.join(__dirname, "public/images")));
|
||||||
app.use("/dist", express.static(path.join(__dirname, "public/dist")));
|
app.use("/dist", express.static(path.join(__dirname, "public/dist")));
|
||||||
app.use("/", loginApi);
|
app.use("/", loginApi);
|
||||||
app.use("/api/", updateApi);
|
app.use("/api/", updateApi);
|
||||||
|
|||||||
@@ -1,26 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>What to buy?</h2>
|
<router-link to="/" class="header-link">
|
||||||
<input
|
<h1 class="top-banner">knowit</h1>
|
||||||
type="number"
|
</router-link>
|
||||||
placeholder="Antall lodd"
|
<h1>Loddgenerator</h1>
|
||||||
@keyup.enter="generateColors"
|
<p>Velg hvilke farger du vil ha, fyll inn antall lodd og klikk 'generer'</p>
|
||||||
v-model="numberOfBallots"
|
<div class="input-line">
|
||||||
/>
|
<input
|
||||||
<button @click="generateColors">Generer</button>
|
type="number"
|
||||||
<div class="colors-text">
|
placeholder="Antall lodd"
|
||||||
|
@keyup.enter="generateColors"
|
||||||
|
v-model="numberOfBallots"
|
||||||
|
/>
|
||||||
|
<button @click="generateColors">Generer</button>
|
||||||
|
</div>
|
||||||
|
<!--<div class="colors-text">
|
||||||
<p>Blå: {{ blue }}</p>
|
<p>Blå: {{ blue }}</p>
|
||||||
<p>Rød: {{ red }}</p>
|
<p>Rød: {{ red }}</p>
|
||||||
<p>Grønn: {{ green }}</p>
|
<p>Grønn: {{ green }}</p>
|
||||||
<p>Gul: {{ yellow }}</p>
|
<p>Gul: {{ yellow }}</p>
|
||||||
</div>
|
</div>-->
|
||||||
<div class="colors">
|
<div class="colors">
|
||||||
<div
|
<div v-for="color in colors" :class="getColorClass(color)" class="color-box"></div>
|
||||||
v-for="color in colors"
|
|
||||||
:class="getColorClass(color)"
|
|
||||||
class="color-box"
|
|
||||||
></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<img src="/images/vipps.png" class="vipps-image" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -92,17 +96,57 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
h2 {
|
.header-link {
|
||||||
|
color: #333333;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
h1 {
|
||||||
|
width: 100vw;
|
||||||
|
text-align: center;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 35px;
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-line {
|
||||||
|
margin: auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-banner {
|
||||||
|
margin-top: 0px;
|
||||||
|
padding: 20px 0;
|
||||||
|
background-color: #dbeede;
|
||||||
|
box-shadow: 0 0 10px 0px #0000003a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vipps-image {
|
||||||
|
width: 250px;
|
||||||
|
margin: auto;
|
||||||
|
display: block;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
input,
|
input,
|
||||||
button {
|
button {
|
||||||
margin: 10px;
|
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
.container {
|
.container {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
width: 80vw;
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -121,11 +165,13 @@ button {
|
|||||||
|
|
||||||
button {
|
button {
|
||||||
border: none;
|
border: none;
|
||||||
background: orange;
|
background: #b7debd;
|
||||||
color: white;
|
color: #333333;
|
||||||
padding: 10px;
|
padding: 10px 30px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
height: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.colors-text {
|
.colors-text {
|
||||||
@@ -148,4 +194,10 @@ button {
|
|||||||
.blue {
|
.blue {
|
||||||
background-color: #4bcffa;
|
background-color: #4bcffa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
input {
|
||||||
|
border: 1px solid #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
|
<h1 class="top-banner">knowit</h1>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Knowit Vinlottis</h1>
|
<h1>Vinlotteri</h1>
|
||||||
<router-link to="generate" class="generate-link">Klarer du ikke velge lodd-farger?</router-link>
|
<router-link to="generate" class="generate-link">
|
||||||
|
Klarer du ikke velge lodd-farger?
|
||||||
|
<span class="generator-link">Prøv loddgeneratoren</span>
|
||||||
|
</router-link>
|
||||||
<div class="chart-container">
|
<div class="chart-container">
|
||||||
<PurchaseGraph class="purchase" />
|
<PurchaseGraph class="purchase" />
|
||||||
<WinGraph class="win" />
|
<WinGraph class="win" />
|
||||||
</div>
|
</div>
|
||||||
<TotalBought />
|
<TotalBought />
|
||||||
<div class="wine-and-highscore-container">
|
<img src="/images/vipps.png" class="vipps-image" />
|
||||||
|
<!--<div class="wine-and-highscore-container">
|
||||||
<Highscore />
|
<Highscore />
|
||||||
<Wines />
|
<Wines />
|
||||||
</div>
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,13 +38,18 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
color: #333333;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.outer {
|
.outer {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@@ -49,16 +59,32 @@ h1 {
|
|||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-banner {
|
||||||
|
margin-top: 0px;
|
||||||
|
padding: 20px 0;
|
||||||
|
background-color: #dbeede;
|
||||||
|
box-shadow: 0 0 10px 0px #0000003a;
|
||||||
|
}
|
||||||
|
|
||||||
.generate-link {
|
.generate-link {
|
||||||
color: white;
|
color: #333333;
|
||||||
text-align: center;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
padding: 5px;
|
|
||||||
margin: auto;
|
|
||||||
width: fit-content;
|
|
||||||
display: block;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background: orange;
|
display: block;
|
||||||
|
width: 100vw;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vipps-image {
|
||||||
|
width: 250px;
|
||||||
|
margin: auto;
|
||||||
|
display: block;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.generator-link {
|
||||||
|
font-weight: bold;
|
||||||
|
border-bottom: 1px solid #ff5fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.win,
|
.win,
|
||||||
@@ -89,6 +115,10 @@ h1 {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.generate-link {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user