diff --git a/src/components/VinlottisPage.vue b/src/components/VinlottisPage.vue index 58cd2b4..cae5c9d 100644 --- a/src/components/VinlottisPage.vue +++ b/src/components/VinlottisPage.vue @@ -122,8 +122,6 @@ export default { @import "../styles/media-queries.scss"; @import "../styles/variables.scss"; - - .top-container { height: 30em; background-color: $primary; diff --git a/src/ui/Highscore.vue b/src/ui/Highscore.vue index 8606a09..a5ac52e 100644 --- a/src/ui/Highscore.vue +++ b/src/ui/Highscore.vue @@ -89,7 +89,7 @@ ol { .winner-list-container { display: grid; - grid-template-columns: repeat(auto-fill, minmax(12.5em, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(12.5em, 1fr)); gap: 5%; .single-winner { diff --git a/src/ui/TotalBought.vue b/src/ui/TotalBought.vue index c4843f2..c6efa60 100644 --- a/src/ui/TotalBought.vue +++ b/src/ui/TotalBought.vue @@ -159,7 +159,7 @@ export default { .bought-container { margin-top: 2em; display: grid; - grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-gap: 50px; .ballot-element-local { diff --git a/src/ui/Wines.vue b/src/ui/Wines.vue index c211a3c..b662a31 100644 --- a/src/ui/Wines.vue +++ b/src/ui/Wines.vue @@ -1,21 +1,29 @@ @@ -29,7 +37,10 @@ export default { Wine }, data() { - return { wines: [], clickedWine: null, wineOpen: false }; + return { + wines: [], + clickedWine: null, + }; }, async mounted() { let response = await overallWineStatistics(); @@ -49,7 +60,7 @@ export default { } ) ); - this.wines = response.slice(0, 10); + this.wines = response.slice(0, 5); }, methods: { amount(occurences){ @@ -124,39 +135,61 @@ export default { @import "./src/styles/global.scss"; @import "../styles/media-queries.scss"; -h3 { - & a { - text-decoration: none; - color: #333333; - } +.wines-main-container { + margin-bottom: 10em; } -.list-container{ +.info-and-link{ + display: flex; + justify-content: space-between; +} + + +.wine-container { display: grid; - grid: auto-flow min-content / 1fr; - row-gap: 5px; - padding: 0; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + grid-gap: 2rem; .single-item{ + height: 400px; display: grid; - grid: 1fr / .1fr 1fr .3fr .3fr; + grid-template-rows: .3fr 1fr .3fr; - .wine-occurences{ - font-weight: bold; + grid-gap: 1em; + -webkit-box-shadow: 0px 2px 21px -1px rgba(127,127,127,0.5); + -moz-box-shadow: 0px 2px 21px -1px rgba(127,127,127,0.5); + box-shadow: 0px 2px 21px -1px rgba(127,127,127,0.5); + + .hearts-container{ + margin: 10px 10px 0 0; + display: flex; + align-items: center; + justify-content: space-evenly; + justify-self: end; + + width: 80px; + height: 30px; + background-color: #f4f4f4; + border-radius: 20px; + + .icon--heart{ + font-size: 30px; + color: $link-color; + } + } + + .wine-image { + width: 60px; + height: 200px; + align-self: center; + justify-self: center; } .wine-name{ - display: inline-block; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - - .wine-link { - color: #333333; - text-decoration: underline 1px solid $link-color; - font-weight: bold; - cursor: pointer; + margin-left: 1em; + margin-right: .5em; + padding-bottom: 1em; + font-size: 20px; } } }