2024-01-07 02:40:35 +00:00
|
|
|
<template>
|
2024-01-13 02:00:15 +00:00
|
|
|
<p>
|
|
|
|
|
<ul class="nav">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<router-link class="nav-link" to="/" active-class="active">Actions</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<router-link class="nav-link" to="/mealplan" active-class="active">Meal Plan</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<router-link class="nav-link" to="/shopping" active-class="active">Shopping</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
|
|
|
|
<router-view/>
|
2024-01-07 02:40:35 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: 'App',
|
2024-01-13 02:00:15 +00:00
|
|
|
computed: {
|
|
|
|
|
currentRoute() {
|
|
|
|
|
return this.$route.path
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-01-07 02:40:35 +00:00
|
|
|
}
|
|
|
|
|
</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;
|
|
|
|
|
}
|
2024-01-13 02:00:15 +00:00
|
|
|
|
|
|
|
|
/* Make nav bar links buttons across top of screen */
|
|
|
|
|
.nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
list-style-type: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 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 a.active {
|
|
|
|
|
background-color: #4CAF50;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2024-01-07 02:40:35 +00:00
|
|
|
</style>
|