App.vue 527 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div id="app">
  3. <div id="nav">
  4. <router-link to="/">Home</router-link> |
  5. <router-link to="/about">About</router-link>
  6. </div>
  7. <router-view/>
  8. </div>
  9. </template>
  10. <style>
  11. #app {
  12. font-family: 'Avenir', Helvetica, Arial, sans-serif;
  13. -webkit-font-smoothing: antialiased;
  14. -moz-osx-font-smoothing: grayscale;
  15. text-align: center;
  16. color: #2c3e50;
  17. }
  18. #nav {
  19. padding: 30px;
  20. }
  21. #nav a {
  22. font-weight: bold;
  23. color: #2c3e50;
  24. }
  25. #nav a.router-link-exact-active {
  26. color: #42b983;
  27. }
  28. </style>