use some icons and layout fixes
This commit is contained in:
@@ -7,20 +7,36 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<a href="#" class="participate-button">
|
<a href="#" class="participate-button">
|
||||||
<i> -> </i>
|
<i class="icon icon--arrow-right"></i>
|
||||||
<p>Trykk her for å delta</p>
|
<p>Trykk her for å delta</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="#" class="see-details-link">
|
<a href="#" class="see-details-link">
|
||||||
|
|
||||||
Se vipps detaljer og QR-kode
|
Se vipps detaljer og QR-kode
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<div class="icons-container">
|
||||||
|
<i class="icon icon--heart-sparks"></i>
|
||||||
|
<i class="icon icon--face-1"></i>
|
||||||
|
<i class="icon icon--face-3"></i>
|
||||||
|
<i class="icon icon--ballon"></i>
|
||||||
|
|
||||||
|
<i class="icon icon--bottle"></i>
|
||||||
|
<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>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="container">
|
<section class="container">
|
||||||
<p class="scroll-info"> | Scroll for å se annen gøy statistikk</p>
|
|
||||||
|
<div class="scroll-info">
|
||||||
|
<i class ="icon icon--arrow-long-right"></i>
|
||||||
|
<p>Scroll for å se vinnere og annen gøy statistikk</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Highscore class="highscore"/>
|
<Highscore class="highscore"/>
|
||||||
<TotalBought class="total-bought" />
|
<TotalBought class="total-bought" />
|
||||||
@@ -126,21 +142,21 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.participate-button {
|
.participate-button {
|
||||||
|
|
||||||
grid-column: 3 / 7;
|
grid-column: 3 / 7;
|
||||||
grid-row: 6 / 8;
|
grid-row: 6 / 8;
|
||||||
background: inherit;
|
background: inherit;
|
||||||
border: 4px solid black;
|
border: 4px solid black;
|
||||||
padding: 0 1em 0 1em;
|
padding: 0 1em 0 1em;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 15em;
|
width: 12.5em;
|
||||||
justify-content: space-evenly;
|
column-gap: 15px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: black;
|
color: black;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
@@ -161,6 +177,65 @@ export default {
|
|||||||
text-underline-position: under;
|
text-underline-position: under;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icons-container {
|
||||||
|
grid-column: 7 / 12;
|
||||||
|
grid-row: 4 / 12;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: grid;
|
||||||
|
grid: repeat(6, 1fr) / repeat(12, 1fr);
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 5em;
|
||||||
|
|
||||||
|
&.icon--heart-sparks{
|
||||||
|
grid-column: 2 / 4;
|
||||||
|
grid-row: 2 / 4;
|
||||||
|
align-self: center;
|
||||||
|
justify-self: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
&.icon--face-1{
|
||||||
|
grid-column: 4 / 7;
|
||||||
|
grid-row: 2 / 4;
|
||||||
|
justify-self: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
&.icon--face-3{
|
||||||
|
grid-column: 7 / 10;
|
||||||
|
grid-row: 1 / 4;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
&.icon--ballon{
|
||||||
|
grid-column: 9 / 11;
|
||||||
|
grid-row: 3 / 5;
|
||||||
|
|
||||||
|
}
|
||||||
|
&.icon--bottle{
|
||||||
|
grid-row: 4 / 6;
|
||||||
|
|
||||||
|
&:nth-of-type(5) {
|
||||||
|
grid-column: 4 / 5;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
&:nth-of-type(6) {
|
||||||
|
grid-column: 5 / 6;
|
||||||
|
}
|
||||||
|
&:nth-of-type(7) {
|
||||||
|
grid-column: 6 / 7;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
&:nth-of-type(8) {
|
||||||
|
grid-column: 7 / 8;
|
||||||
|
}
|
||||||
|
&:nth-of-type(9){
|
||||||
|
grid-column: 8 / 9;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -177,24 +252,49 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container{
|
.container{
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
grid-template-columns: repeat(12, 1fr);
|
||||||
|
row-gap: 5em;
|
||||||
|
|
||||||
|
.scroll-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
column-gap: 10px;
|
||||||
|
grid-column: 2 / -2;
|
||||||
|
}
|
||||||
|
|
||||||
@include tablet {
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
grid-column: 2 / -2;
|
||||||
|
}
|
||||||
|
.total-bought {
|
||||||
|
grid-column: 2 / -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
display: grid;
|
.highscore {
|
||||||
grid-template-columns: repeat(12, 1fr);
|
grid-column: 2 / -2;
|
||||||
|
}
|
||||||
|
|
||||||
.scroll-info {
|
.wines-container {
|
||||||
|
grid-column: 2 / -2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon--arrow-long-right {
|
||||||
|
rotate: 90deg;
|
||||||
|
color: $link-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include tablet {
|
||||||
|
|
||||||
|
.scroll-info{
|
||||||
grid-column: 3 / -3;
|
grid-column: 3 / -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
grid-column: 3 / -3;
|
grid-column: 3 / -3;
|
||||||
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-bought {
|
.total-bought {
|
||||||
@@ -203,7 +303,7 @@ h1 {
|
|||||||
|
|
||||||
.highscore {
|
.highscore {
|
||||||
grid-column: 3 / -3;
|
grid-column: 3 / -3;
|
||||||
align-self: baseline;
|
// margin-top: 5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wines-container {
|
.wines-container {
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
</section>
|
</section>
|
||||||
<ol class="winner-list-container">
|
<ol class="winner-list-container">
|
||||||
<li v-for="(person, index) in highscore" :key="person" class="single-winner">
|
<li v-for="(person, index) in highscore" :key="person" class="single-winner">
|
||||||
<span class="placement">{{index + 1}}</span>
|
<span class="placement">{{index + 1}}.</span>
|
||||||
<span class="winner-icon"> ic </span>
|
<i class="icon icon--medal"></i>
|
||||||
<p class="winner-name">{{ person.name }}</p>
|
<p class="winner-name">{{ person.name }}</p>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
@@ -69,20 +69,25 @@ ol {
|
|||||||
|
|
||||||
.winner-list-container {
|
.winner-list-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template: 1fr / repeat(5, 1fr);
|
justify-content: space-evenly;
|
||||||
column-gap: 2em;
|
flex-wrap: wrap;
|
||||||
|
column-gap: 1em;
|
||||||
|
row-gap: 1em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
// align-items: baseline;
|
||||||
|
|
||||||
.single-winner {
|
.single-winner {
|
||||||
width: 10em;
|
width: 12.5em;
|
||||||
background: $primary;
|
background: $primary;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template: 1fr .3fr / 1fr 1fr 1fr;
|
grid-template: 1fr .3fr / 1fr 1fr 1fr;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-items: center;
|
|
||||||
|
i {
|
||||||
|
font-size: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
.placement {
|
.placement {
|
||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user