|
@ -1,8 +1,12 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mensa"> |
|
|
<div class="mensa"> |
|
|
<h3 id="date">{{date}}</h3> |
|
|
|
|
|
|
|
|
<h2 id="date">{{date}}</h2> |
|
|
<div class="meal" v-for="meal in meals"> |
|
|
<div class="meal" v-for="meal in meals"> |
|
|
<h3>{{meal.category}}</h3> |
|
|
|
|
|
|
|
|
<h2>{{meal.category}} |
|
|
|
|
|
<img v-if="meal.diet === 'fleischlos'" class="svg-icon" src="../assets/svg/001-food.svg" title="ohne Fleisch" alt="ohne Fleisch"> |
|
|
|
|
|
<img v-else-if="meal.diet === 'mit Fleisch'" class="svg-icon" src="../assets/svg/002-steak.svg" title="mit Fleisch" alt="mit Fleisch"> |
|
|
|
|
|
<img v-if="meal.diet === 'mit Fisch/ Meeresfrüchten' || meal.diet === 'MSC zertifiziert'" class="svg-icon" src="../assets/svg/003-fish.svg" title="mit Fisch" alt="mit Fisch"> |
|
|
|
|
|
</h2> |
|
|
<p>{{meal.title}}</p> |
|
|
<p>{{meal.title}}</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -13,7 +17,7 @@ import { mapGetters } from 'vuex' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'mensa', |
|
|
name: 'mensa', |
|
|
computed:{ |
|
|
|
|
|
|
|
|
computed: { |
|
|
...mapGetters({ |
|
|
...mapGetters({ |
|
|
meals: 'getMeals', |
|
|
meals: 'getMeals', |
|
|
date: 'getDate' |
|
|
date: 'getDate' |
|
@ -22,22 +26,27 @@ export default { |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style> |
|
|
<style> |
|
|
.meal{ |
|
|
|
|
|
|
|
|
.meal { |
|
|
margin: 2em 0; |
|
|
margin: 2em 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.meal>h3{ |
|
|
|
|
|
margin-bottom:0em; |
|
|
|
|
|
|
|
|
.meal > h2 { |
|
|
|
|
|
margin-bottom: 0em; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.meal>p{ |
|
|
|
|
|
|
|
|
.meal > p { |
|
|
margin-top: 0.4em; |
|
|
margin-top: 0.4em; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#date{ |
|
|
|
|
|
|
|
|
#date { |
|
|
margin-bottom: -1em; |
|
|
margin-bottom: -1em; |
|
|
} |
|
|
} |
|
|
.mensa{ |
|
|
|
|
|
|
|
|
.mensa { |
|
|
margin-bottom: 3em; |
|
|
margin-bottom: 3em; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.svg-icon { |
|
|
|
|
|
height: 1em; |
|
|
|
|
|
width: 1em; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |