Speiseplan der Mensen der Georg-August-Universität Göttingen https://mensa.schneider-hosting.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <template>
  2. <div id="app">
  3. <h1>Essen in Göttingen</h1>
  4. <nav>
  5. <router-link v-for="mensa in mensen" :to="'/' + mensa.url + '/'">{{mensa.name | noBreak}}</router-link>
  6. </nav>
  7. <router-view></router-view>
  8. <footer>
  9. <hr>
  10. Developed by <a href="https://webschneider.org">webschneider.org</a>
  11. &copy; {{ new Date().getFullYear() }}
  12. </footer>
  13. </div>
  14. </template>
  15. <script>
  16. import Mensen from '@/lib/Mensen.js'
  17. export default {
  18. name: 'app',
  19. data () {
  20. return {
  21. menu: {},
  22. mensen: Mensen
  23. }
  24. },
  25. filters: {
  26. noBreak (value) {
  27. return value.replace(/\s/g, '\u00a0')
  28. }
  29. },
  30. computed: {
  31. today () {
  32. return '' + new Date().getDay()
  33. }
  34. }
  35. }
  36. </script>
  37. <style src="./assets/base.css"></style>
  38. <style src="./assets/links.css"></style>
  39. <style>
  40. #app {
  41. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  42. -webkit-font-smoothing: antialiased;
  43. -moz-osx-font-smoothing: grayscale;
  44. text-align: center;
  45. color: #2c3e50;
  46. font-size: 16px;
  47. max-width: 30em;
  48. margin: 0 auto;
  49. }
  50. footer{
  51. margin: 1em 0;
  52. }
  53. nav>a{
  54. margin: 0.3em;
  55. wrap: no-wrap;
  56. }
  57. .router-link-active:before{
  58. content: '>';
  59. }
  60. .router-link-active:after{
  61. content: '<';
  62. }
  63. </style>