first commit
This commit is contained in:
68
app/app.vue
Normal file
68
app/app.vue
Normal file
@@ -0,0 +1,68 @@
|
||||
<template>
|
||||
<v-app>
|
||||
<!-- Toolbar at the top of the screen -->
|
||||
<v-app-bar color="primary" height="48">
|
||||
<!-- Title of the application with adjusted margin and font size -->
|
||||
<v-app-bar-title class="text-h6 ms-3">
|
||||
<v-icon icon="mdi-apps" @click="drawer = !drawer"></v-icon>
|
||||
|
||||
<span class="ms-1">My Application</span>
|
||||
</v-app-bar-title>
|
||||
|
||||
<!-- Spacer to push the following elements to the right -->
|
||||
<v-spacer />
|
||||
|
||||
<!-- Menu icons on the right side of the toolbar -->
|
||||
<v-btn icon="mdi-home" @click="navigateTo('/')"></v-btn>
|
||||
|
||||
<v-btn
|
||||
icon="mdi-cube-outline"
|
||||
@click="navigateTo('/products')"
|
||||
></v-btn>
|
||||
|
||||
<v-btn icon="mdi-email" @click="navigateTo('/contact')"></v-btn>
|
||||
</v-app-bar>
|
||||
|
||||
<!-- Navigation drawer for menu actions -->
|
||||
<v-navigation-drawer v-model="drawer">
|
||||
<v-list>
|
||||
<!-- Menu items in the drawer with icons -->
|
||||
<v-list-item
|
||||
@click="navigateTo('/')"
|
||||
title="Home"
|
||||
prepend-icon="mdi-home"
|
||||
></v-list-item>
|
||||
|
||||
<v-list-item
|
||||
@click="navigateTo('/products')"
|
||||
title="Products"
|
||||
prepend-icon="mdi-cube-outline"
|
||||
></v-list-item>
|
||||
|
||||
<v-list-item
|
||||
@click="navigateTo('/contact')"
|
||||
title="Contact"
|
||||
prepend-icon="mdi-email"
|
||||
></v-list-item>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
|
||||
<!-- Main content of the application -->
|
||||
<v-main>
|
||||
<NuxtPage />
|
||||
</v-main>
|
||||
|
||||
<!-- Smaller footer at the bottom of the screen -->
|
||||
<v-footer app color="secondary" height="30">
|
||||
<v-container class="text-caption text-center">
|
||||
© {{ new Date().getFullYear() }} My Application - All Rights
|
||||
Reserved
|
||||
</v-container>
|
||||
</v-footer>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// Drawer state to open/close the navigation drawer
|
||||
const drawer = shallowRef(false);
|
||||
</script>
|
||||
9
app/pages/contact.vue
Normal file
9
app/pages/contact.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<v-container
|
||||
class="fill-height d-flex flex-column align-center justify-center text-center"
|
||||
>
|
||||
<v-icon icon="mdi-account-box" size="64"></v-icon>
|
||||
|
||||
<div class="mt-3">My Application's Contact Page</div>
|
||||
</v-container>
|
||||
</template>
|
||||
9
app/pages/index.vue
Normal file
9
app/pages/index.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<v-container
|
||||
class="fill-height d-flex flex-column align-center justify-center text-center"
|
||||
>
|
||||
<v-icon icon="mdi-home" size="64"></v-icon>
|
||||
|
||||
<div class="mt-3">My Application's Home Page</div>
|
||||
</v-container>
|
||||
</template>
|
||||
9
app/pages/products.vue
Normal file
9
app/pages/products.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<v-container
|
||||
class="fill-height d-flex flex-column align-center justify-center text-center"
|
||||
>
|
||||
<v-icon icon="mdi-cube-outline" size="64"></v-icon>
|
||||
|
||||
<div class="mt-3">My Application's Products Page</div>
|
||||
</v-container>
|
||||
</template>
|
||||
7
app/plugins/vuetify.js
Normal file
7
app/plugins/vuetify.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createVuetify } from "vuetify";
|
||||
import * as components from "vuetify/components";
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const vuetify = createVuetify({ components });
|
||||
nuxtApp.vueApp.use(vuetify);
|
||||
});
|
||||
Reference in New Issue
Block a user