interface on requested wines with sub-par css
This commit is contained in:
@@ -1,30 +1,40 @@
|
||||
<template>
|
||||
<main>
|
||||
<h1>
|
||||
Alle viner
|
||||
Alle viner foreslåtte viner
|
||||
</h1>
|
||||
<section>
|
||||
{{this.wines}}
|
||||
<section class="requested-wines-container">
|
||||
<RequestedWineCard v-for="requestedEl in wines" :key="requestedEl.id" :requestedElement="requestedEl" />
|
||||
</section>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { allRequestedWines } from "@/api";
|
||||
|
||||
import RequestedWineCard from "@/ui/RequestedWineCard";
|
||||
export default {
|
||||
components: {
|
||||
RequestedWineCard
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
wines: undefined
|
||||
wines: undefined,
|
||||
canRequest: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
const wines = await allRequestedWines();
|
||||
this.wines = wines
|
||||
this.wines = wines
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.requested-wines-container{
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-flow: row wrap;
|
||||
align-items: stretch
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user