Feat: Se agrega barra de Navegacion

This commit is contained in:
sinergia 2024-10-04 20:39:53 -05:00
parent 982b2d0c32
commit 2d519f7ca9
4 changed files with 35 additions and 20 deletions

View File

@ -1,11 +1,40 @@
<template>
<v-app>
<v-main>
<NavBar />
<router-view />
</v-main>
</v-app>
</template>
<script setup>
//
<script>
import NavBar from './components/NavBar.vue';
export default {
name: 'App',
components: {
NavBar,
},
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
nav {
padding: 30px;
}
nav a {
font-weight: bold;
color: #2c3e50;
}
nav a.router-link-exact-active {
color: #42b983;
}
</style>

View File

@ -1,17 +1,4 @@
<template>
<v-app>
<v-navigation-drawer app>
<v-list>
<v-list-item v-for="item in menuItems" :key="item.title" @click="navigate(item.route)">
<v-list-item-title>{{ item.title }}</v-list-item-title>
</v-list-item>
</v-list>
</v-navigation-drawer>
<v-app-bar app>
<v-toolbar-title>Compra</v-toolbar-title>
</v-app-bar>
<v-main>
<v-container>
<v-form ref="form" v-model="valid">
<v-text-field
@ -103,8 +90,6 @@
<v-btn @click="submit" color="green">Comprar</v-btn>
</v-form>
</v-container>
</v-main>
</v-app>
</template>
<script>

View File

@ -3,5 +3,5 @@
</template>
<script setup>
//
//
</script>

View File

@ -1,3 +1,4 @@
/**
* router/index.ts
*