diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue new file mode 100644 index 0000000..fffcdd8 --- /dev/null +++ b/frontend/src/layouts/MainLayout.vue @@ -0,0 +1,33 @@ + + + + + + + + + IT Form Help + + + + + + Войти + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 9d22bcb..33052c8 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -4,6 +4,22 @@ import { useAuthStore } from '@/stores/auth'; const router = createRouter({ history: createWebHistory(), routes: [ + { + path: '/', + component: () => import('@/layouts/MainLayout.vue'), + children: [ + { + path: '', + name: 'Home', + component: () => import('@/views/HomeView.vue') + }, + { + path: 'login', + name: 'Login', + component: () => import('@/views/LoginView.vue') + } + ] + }, { path: '/admin', component: () => import('@/layouts/AdminLayout.vue'), diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue new file mode 100644 index 0000000..ead12a2 --- /dev/null +++ b/frontend/src/views/HomeView.vue @@ -0,0 +1,28 @@ + + + + Добро пожаловать в IT Form Help + + + Система поддержки и обработки IT-заявок + + + + Войти как сотрудник + + + Войти как администратор + + + + + + \ No newline at end of file diff --git a/frontend/src/views/LoginView.vue b/frontend/src/views/LoginView.vue index dd76400..15f45a3 100644 --- a/frontend/src/views/LoginView.vue +++ b/frontend/src/views/LoginView.vue @@ -1,98 +1,89 @@ - - Вход в систему - - + + - - Фамилия - - - - + + Вход для сотрудников + + + + + + Фамилия + - - - - - - - Пароль - - - - + + Пароль + - - - - - {{ isLoading ? 'Вход...' : 'Войти' }} - + + + Загрузка... + Войти + + - - - Вход для администраторов - - - + + {{ error }} + + +
+ Система поддержки и обработки IT-заявок +