App.vue 915 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div id="root">
  3. <header role="banner">
  4. <h1
  5. tabindex="0"
  6. @click="closePost()"
  7. @keydown.enter="closePost()"
  8. >
  9. Les Guides de Paris
  10. </h1>
  11. </header>
  12. <section class="container center-content">
  13. <RouterView />
  14. </section>
  15. <footer role="search-bar" />
  16. </div>
  17. </template>
  18. <script>
  19. import { mapState, mapActions } from 'vuex'
  20. export default {
  21. metaInfo: {
  22. // if no subcomponents specify a metaInfo.title, this title will be used
  23. title: 'Home',
  24. // all titles will be injected into this template
  25. titleTemplate: '%s | Guides de Paris'
  26. },
  27. computed: mapState({
  28. opened: state => state.posts.opened
  29. }),
  30. methods: mapActions('posts', [
  31. 'closePost'
  32. ])
  33. }
  34. </script>
  35. <style lang="stylus" scoped>
  36. .container
  37. font-family 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
  38. max-width 1200px
  39. </style>