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