From bc1fce8ae36b7c3e2d9f514d62e4a58fc28bdf5f Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sun, 8 Dec 2024 04:37:28 +0500 Subject: [PATCH] Add about page --- spa/src/components/AboutC.vue | 39 +++++++++++++++++++++++++++++++++++ spa/src/components/Header.vue | 13 ++++++------ spa/src/router/index.js | 6 ++++++ spa/src/views/AboutV.vue | 8 +++++++ 4 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 spa/src/components/AboutC.vue create mode 100644 spa/src/views/AboutV.vue diff --git a/spa/src/components/AboutC.vue b/spa/src/components/AboutC.vue new file mode 100644 index 0000000..3317755 --- /dev/null +++ b/spa/src/components/AboutC.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/spa/src/components/Header.vue b/spa/src/components/Header.vue index 8b359af..fbe52e8 100644 --- a/spa/src/components/Header.vue +++ b/spa/src/components/Header.vue @@ -11,7 +11,7 @@ @@ -25,11 +25,12 @@ return { isOpen: false, menuItems: [ - { id: 1, title: 'Главная' }, - { id: 2, title: 'О нас' }, - { id: 3, title: 'Услуги' }, - { id: 4, title: 'Контакты' }, - { id: 5, title: 'Блог' } + { id: 1, title: 'Главная', tooo: 'home' }, + { id: 2, title: 'О нас', tooo: 'about' }, + { id: 3, title: 'Услуги', tooo: 'home' }, + { id: 4, title: 'Контакты', tooo: 'home' }, + { id: 5, title: 'Блог', tooo: 'home' }, + { id: 6, title: 'SignUp', tooo: 'signup' } ] }; } diff --git a/spa/src/router/index.js b/spa/src/router/index.js index 8231f94..7f93731 100644 --- a/spa/src/router/index.js +++ b/spa/src/router/index.js @@ -1,6 +1,7 @@ import { createRouter, createWebHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' import SignUpView from '../views/SingUpV.vue' +import About from '../views/AboutV.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -15,6 +16,11 @@ const router = createRouter({ name: 'home', component: HomeView, }, + { + path: '/about', + name: 'about', + component: About + }, ], }); diff --git a/spa/src/views/AboutV.vue b/spa/src/views/AboutV.vue new file mode 100644 index 0000000..9824b79 --- /dev/null +++ b/spa/src/views/AboutV.vue @@ -0,0 +1,8 @@ + + + + \ No newline at end of file