Browse Source

Add Icons for diet

master
Schneider 7 years ago
parent
commit
75bf70a670
  1. 3
      src/App.vue
  2. 1
      src/assets/svg/001-food.svg
  3. 1
      src/assets/svg/002-steak.svg
  4. 1
      src/assets/svg/003-fish.svg
  5. 27
      src/components/Mensa.vue

3
src/App.vue

@ -18,7 +18,8 @@
Developed by <a href="https://webschneider.org">webschneider.org</a> Developed by <a href="https://webschneider.org">webschneider.org</a>
&copy; {{ new Date().getFullYear() }} &copy; {{ new Date().getFullYear() }}
</span> </span>
<span><a href="https://webschneider.org/impress">Impressum</a></span>
<span><a href="https://webschneider.org/impress">Impressum</a></span><br>
<span>Icons made by <a href="https://www.flaticon.com/authors/smashicons">Smashicons</a> from <a href="https://www.flaticon.com">www.flaticon.com</a></span>
</div> </div>
</footer> </footer>
</div> </div>

1
src/assets/svg/001-food.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 59 59"><path d="M57.8 27c2-2.6 1.1-5 .4-6a9.3 9.3 0 0 0-6.2-4l-.6-.2.7-.7c1.8-1.6 2.6-3.4 2.5-5.2A7 7 0 0 0 52 6c-4.1-2.8-8.7.6-9 .7V7l-.2.3A8.2 8.2 0 0 0 39 1.8a6.5 6.5 0 0 0-7-.8l-1.2.8c-1-.3-2.2-.4-3.3 0a4 4 0 0 0-2.8 3.6c-.1 1.7.8 3.5 2.3 4.3a13 13 0 0 1 4.7 5c-1 0-1.9.1-2.7.4C23.9 17 3.7 46.4 0 56a2 2 0 0 0 .5 2.2c.3.3.8.5 1.3.5l.9-.1C12.4 55 42 35 43.8 30c.2-.7.3-1.4.3-2.2a13 13 0 0 1 5 3.7 5.9 5.9 0 0 0 4.6 2.5c1.6 0 2.9-.7 3.7-1.9 1.2-1.7.7-3.6.1-4.8l.3-.3zm-1.2-4.7c.1.1 1 1.4-.3 3.3l-.1-.1a17.6 17.6 0 0 0-.8-.9l-.2-.2a14 14 0 0 0-10-4 18.3 18.3 0 0 0-2.9.2l.5-.2.5-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3-4 5.1-8.3 8-12.3.4 1 1 2 2 2.6l.5.2a1 1 0 0 0 .6-1.8c-1-.7-1.4-2-1.6-3v-.2l6.3-8.4a8.5 8.5 0 0 0 3 4.5c.2.2.4.2.6.2a1 1 0 0 0 .6-1.8c-1.5-1-2.3-3.1-2.5-4.8v-.1a18 18 0 0 1 4.9-4.8l1.5-.3 1.6.3 1.2 3.2v.2l.5 1.5v.4L35 24v.2h.1v.1l.1.1v.1h.1l.1.1h.1v.1h.1l.2.1 1.6.4.4.2 1.3.3.3.1 1.2.5h.2l1.4.5c.1.9 0 1.7-.2 2.4zM55.7 31c-.5.8-1.4 1-2 1-1.1 0-2.3-.6-3-1.6a17.1 17.1 0 0 0-7.4-5v-.1h-.1a35.4 35.4 0 0 0-4-1.5l-.4-.1.2-.1h.1c3.1-1.2 8.5-2.3 13 1l.8.5.3.3a11 11 0 0 1 2.1 2.2l.1.1c.4.5 1.2 2 .3 3.3z"/><path d="M40.4 29c-2-.8-4-2.2-5.7-4.2a1 1 0 1 0-1.5 1.3 16.1 16.1 0 0 0 6.8 4.8 1 1 0 0 0 .4-2z"/></svg>

1
src/assets/svg/002-steak.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51.8 51.8"><path d="M49.6 14.1C47.7 9.6 44.3 3.7 38.4 1.3 34-.4 29 0 23.4 2.5c-7 3.2-9.2 9-6.4 16a6.5 6.5 0 0 1-7 9c-3.8-.4-6.7.4-8.4 2.5C.3 31.6-1 34.7 1 40.2v.1a21 21 0 0 0 12 10.2c1.9.6 3.8.8 5.6 1H22A38 38 0 0 0 36.3 49 24 24 0 0 0 51 31.7a29 29 0 0 0-1.5-17.6zM49 31.2a22 22 0 0 1-13.6 15.9c-7.1 3-14.3 2.5-16.4 2.4h-.3a19.3 19.3 0 0 1-16-10c-1.2-3.6-1-6.5.3-8.2 1.3-1.6 3.6-2.2 6.6-1.8A8.5 8.5 0 0 0 19 18c-2.5-6.3-.7-10.8 5.4-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.8 1l.2.5c.3.8.7 2 2 2.7l.1.2v.2zm.1.2l.6.5-.6-.5z"/><path d="M7 24.9v2a14 14 0 0 1 14 14h2a16 16 0 0 0-16-16z"/><path d="M10.2 21.6v2a14 14 0 0 1 14 14h2a16 16 0 0 0-16-16z"/><path d="M13.3 18.5v2a14 14 0 0 1 14 14h2a16 16 0 0 0-16-16z"/><path d="M16.6 15.3v2a14 14 0 0 1 14 14h2a16 16 0 0 0-16-16z"/></svg>

27
src/components/Mensa.vue

@ -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>
Loading…
Cancel
Save