Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | <template> <div> <ul class="nav"> <li class="nav-item"> <router-link class="nav-link" :to="{ name: 'recipes' }" active-class="active" > Recipes </router-link> </li> <li class="nav-item"> <router-link class="nav-link" :to="{ name: 'mealplan' }" active-class="active" > Meal Plan </router-link> </li> <li class="nav-item"> <router-link class="nav-link" :to="{ name: 'shopping' }" active-class="active" > Shopping </router-link> </li> </ul> </div> <div class="viewport"> <router-view /> </div> <alert-toast /> </template> <script setup> import AlertToast from './components/AlertToast.vue' // components in <script setup> are auto-registered by import + usage </script> <style> #app { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; margin-top: 60px; } /* Make nav bar links buttons across top of screen */ .nav { position: fixed; left: 0; right: 0; top: 0; z-index: 1; display: flex; justify-content: space-around; list-style-type: none; margin: 0; padding: 0; position: fixed; top: 0; width: 100%; background-color: #333; } .nav li { flex: 1; } /* Style the links inside the navigation bar */ .nav a { display: inline-block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; } /* Have active route use different color */ .nav li:has(> a.active) { background-color: #4caf50; color: white; } .viewport { max-width: 1200px; margin: auto; } </style> |