|
@ -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> |
|
@ -26,7 +30,7 @@ export default { |
|
|
margin: 2em 0; |
|
|
margin: 2em 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.meal>h3{ |
|
|
|
|
|
|
|
|
.meal > h2 { |
|
|
margin-bottom: 0em; |
|
|
margin-bottom: 0em; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -40,4 +44,9 @@ export default { |
|
|
.mensa { |
|
|
.mensa { |
|
|
margin-bottom: 3em; |
|
|
margin-bottom: 3em; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.svg-icon { |
|
|
|
|
|
height: 1em; |
|
|
|
|
|
width: 1em; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |