diff --git a/src/components/AllRequestedWines.vue b/src/components/AllRequestedWines.vue index 44c3ce3..67a54a0 100644 --- a/src/components/AllRequestedWines.vue +++ b/src/components/AllRequestedWines.vue @@ -57,9 +57,8 @@ h1 { } .requested-wines-container{ - display: flex; - flex-wrap: wrap; - justify-content: space-evenly; - align-items: flex-start; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + grid-gap: 2rem; } \ No newline at end of file diff --git a/src/ui/Wine.vue b/src/ui/Wine.vue index db24cec..78118c0 100644 --- a/src/ui/Wine.vue +++ b/src/ui/Wine.vue @@ -10,8 +10,8 @@
-

{{ wine.name }}

- Rating: {{ wine.rating }} rating + {{ wine.name }} + Rating: {{ wine.rating }} Pris: {{ wine.price }} NOK Land: {{ wine.country }}
@@ -66,8 +66,8 @@ export default { @import "./src/styles/variables"; .wine { - padding: 2rem; - margin: 1rem 0rem; + padding: 1rem; + box-sizing: border-box; position: relative; -webkit-box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.15); @@ -76,13 +76,13 @@ export default { @include tablet { width: 250px; height: 100%; - margin: 1rem 2rem; } } .wine-image { display: flex; justify-content: center; + margin-top: 10px; img { height: 250px; @@ -97,6 +97,7 @@ export default { } } + .wine-details { display: flex; flex-direction: column; @@ -106,6 +107,11 @@ export default { } } +.wine-name{ + font-size: 20px; + margin: 1em 0; +} + .wine-details { display: flex; flex-direction: column; diff --git a/src/ui/Wines.vue b/src/ui/Wines.vue index f324c0d..dab7cbf 100644 --- a/src/ui/Wines.vue +++ b/src/ui/Wines.vue @@ -9,20 +9,16 @@
-
- -
- {{wine.occurences}} - -
- - - {{ wine.name }} - -
+ + +
@@ -63,9 +59,6 @@ export default { this.wines = response.slice(0, 5); }, methods: { - amount(occurences){ - return occurences > 1 ? "ganger" : "gang"; - }, predicate: function() { var fields = [], n_fields = arguments.length, @@ -149,47 +142,26 @@ export default { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-gap: 2rem; - .single-item{ - height: 400px; - display: grid; - grid-template-rows: .3fr 1fr .3fr; + .requested-count { + display: flex; + align-items: center; + margin-top: -0.5rem; + background-color: rgb(244,244,244); + border-radius: 1.1rem; + padding: 0.25rem 1rem; + font-size: 1.25em; - 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; - } + span { + padding-right: 0.5rem; + line-height: 1.25em; } - - .wine-image { - width: 60px; - height: 200px; - align-self: center; - justify-self: center; - } - - .wine-name{ - margin-left: 1em; - margin-right: .5em; - padding-bottom: 1em; - font-size: 20px; + .icon--heart{ + font-size: 1.5rem; + color: $link-color; } } } + + +