mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
переработка админ панели1
This commit is contained in:
@@ -1,14 +1,25 @@
|
|||||||
<!-- AdminFooter.vue -->
|
<!-- AdminFooter.vue -->
|
||||||
<template>
|
<template>
|
||||||
<footer class="admin-footer">
|
<footer class="admin-footer">
|
||||||
<div class="footer-content">
|
<div class="footer-container">
|
||||||
<div class="footer-info">
|
<div class="footer-content">
|
||||||
<p>© 2024 IT Support. Все права защищены.</p>
|
<div class="footer-section">
|
||||||
|
<h3>IT Support</h3>
|
||||||
|
<p>Система управления заявками технической поддержки</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer-section">
|
||||||
|
<h3>Навигация</h3>
|
||||||
|
<nav class="footer-nav">
|
||||||
|
<router-link to="/admin/dashboard">Главная</router-link>
|
||||||
|
<router-link to="/admin/requests">Заявки</router-link>
|
||||||
|
<router-link to="/admin/employees">Сотрудники</router-link>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-links">
|
|
||||||
<a href="#" class="footer-link">Помощь</a>
|
<div class="footer-bottom">
|
||||||
<a href="#" class="footer-link">Политика конфиденциальности</a>
|
<p>© 2024 IT Support. Все права защищены.</p>
|
||||||
<a href="#" class="footer-link">Условия использования</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
@@ -24,50 +35,69 @@ export default {
|
|||||||
.admin-footer {
|
.admin-footer {
|
||||||
background-color: #1a237e;
|
background-color: #1a237e;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 1.5rem 2rem;
|
padding: 2rem 1rem;
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-content {
|
.footer-container {
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-info p {
|
.footer-content {
|
||||||
margin: 0;
|
display: grid;
|
||||||
font-size: 0.9rem;
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
}
|
|
||||||
|
|
||||||
.footer-links {
|
|
||||||
display: flex;
|
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-link {
|
.footer-section h3 {
|
||||||
color: white;
|
margin: 0 0 1rem 0;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-section p {
|
||||||
|
margin: 0;
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-nav {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-nav a {
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 0.9rem;
|
transition: color 0.3s;
|
||||||
opacity: 0.8;
|
|
||||||
transition: opacity 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-link:hover {
|
.footer-nav a:hover {
|
||||||
opacity: 1;
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom {
|
||||||
|
padding-top: 1.5rem;
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom p {
|
||||||
|
margin: 0;
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.footer-content {
|
.footer-content {
|
||||||
flex-direction: column;
|
grid-template-columns: 1fr;
|
||||||
gap: 1rem;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-links {
|
.footer-nav {
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<header class="admin-header">
|
<header class="admin-header">
|
||||||
<div class="header-content">
|
<div class="header-container">
|
||||||
<div class="logo">
|
<router-link to="/admin/dashboard" class="logo">
|
||||||
<h1>IT Support</h1>
|
<h1>IT Support</h1>
|
||||||
</div>
|
</router-link>
|
||||||
|
|
||||||
<nav class="nav-menu">
|
<nav class="nav-menu">
|
||||||
<router-link to="/admin/dashboard" class="nav-link">Панель управления</router-link>
|
<router-link to="/admin/dashboard" class="nav-link">Главная</router-link>
|
||||||
<router-link to="/admin/employees" class="nav-link">Сотрудники</router-link>
|
|
||||||
<router-link to="/admin/requests" class="nav-link">Заявки</router-link>
|
<router-link to="/admin/requests" class="nav-link">Заявки</router-link>
|
||||||
<a @click="logout" class="nav-link logout">Выйти</a>
|
<router-link to="/admin/employees" class="nav-link">Сотрудники</router-link>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<button @click="handleLogout" class="logout-button">
|
||||||
|
Выйти
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</template>
|
</template>
|
||||||
@@ -18,9 +22,9 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'AdminHeader',
|
name: 'AdminHeader',
|
||||||
methods: {
|
methods: {
|
||||||
logout() {
|
handleLogout() {
|
||||||
localStorage.removeItem('admin_token');
|
localStorage.removeItem('admin_token')
|
||||||
this.$router.push('/admin/login');
|
this.$router.push('/admin/login')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -30,16 +34,20 @@ export default {
|
|||||||
.admin-header {
|
.admin-header {
|
||||||
background-color: #1a237e;
|
background-color: #1a237e;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 1rem 2rem;
|
padding: 1rem;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-content {
|
.header-container {
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo h1 {
|
.logo h1 {
|
||||||
@@ -50,14 +58,14 @@ export default {
|
|||||||
|
|
||||||
.nav-menu {
|
.nav-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2rem;
|
gap: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
@@ -66,16 +74,31 @@ export default {
|
|||||||
background-color: rgba(255, 255, 255, 0.1);
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link.router-link-active {
|
.logout-button {
|
||||||
background-color: rgba(255, 255, 255, 0.2);
|
background: transparent;
|
||||||
}
|
border: 2px solid white;
|
||||||
|
color: white;
|
||||||
.logout {
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #ff5252;
|
transition: all 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logout:hover {
|
.logout-button:hover {
|
||||||
background-color: rgba(255, 82, 82, 0.1);
|
background-color: white;
|
||||||
|
color: #1a237e;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.header-container {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-menu {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user