add compomemts&front

This commit is contained in:
2026-08-10 16:16:37 +03:00
parent b0ee07823e
commit b0754e8cdb
27 changed files with 5256 additions and 962 deletions
+440 -89
View File
@@ -1,4 +1,10 @@
/* Общие стили */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
@@ -8,9 +14,12 @@ body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f5f5f5;
overflow: hidden;
}
/* Окно логина */
/* ============================================
ОКНО ЛОГИНА
============================================ */
.login-window {
max-width: 400px;
margin: 12% auto;
@@ -18,7 +27,6 @@ body {
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-window h2 {
@@ -83,7 +91,199 @@ button:disabled {
cursor: not-allowed;
}
/* Информация о сотруднике */
/* ============================================
ГЛАВНОЕ МЕНЮ
============================================ */
.main-menu {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.main-menu h1 {
color: #fff;
font-size: 2.5rem;
margin-bottom: 40px;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
font-weight: 300;
}
.menu-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
gap: 25px;
max-width: 900px;
width: 100%;
justify-content: center;
}
.menu-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 25px 20px;
background: rgba(255, 255, 255, 0.95);
border: none;
border-radius: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
min-height: 140px;
}
.menu-item:hover {
transform: translateY(-5px) scale(1.05);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.menu-item:active {
transform: scale(0.95);
}
.menu-item .icon {
font-size: 2.5rem;
}
.menu-item .title {
font-size: 1rem;
font-weight: 500;
color: #2d3436;
text-align: center;
}
/* ============================================
ВИДЕО-ЗАСТАВКА
============================================ */
.video-splash {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background: #000;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.video-splash video {
width: 100%;
height: 100%;
object-fit: cover;
}
.video-splash .hint {
position: absolute;
bottom: 60px;
left: 0;
right: 0;
text-align: center;
color: #fff;
font-size: 14px;
opacity: 0.6;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* ============================================
НИЖНЯЯ ПАНЕЛЬ (КУРСЫ ВАЛЮТ)
============================================ */
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(44, 62, 80, 0.95);
backdrop-filter: blur(10px);
color: #fff;
padding: 8px 20px;
display: flex;
align-items: center;
gap: 20px;
overflow: hidden;
z-index: 1000;
height: 40px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 13px;
font-family: monospace;
}
.bottom-bar .status {
display: flex;
align-items: center;
gap: 15px;
flex-shrink: 0;
}
.bottom-bar .status .online {
color: #2ecc71;
font-size: 12px;
}
.bottom-bar .status .offline {
color: #e74c3c;
font-size: 12px;
}
.bottom-bar .status .label {
font-weight: 600;
opacity: 0.7;
}
.bottom-bar .rates {
display: flex;
gap: 25px;
overflow: hidden;
flex: 1;
}
.bottom-bar .rates .item {
display: flex;
gap: 8px;
align-items: center;
white-space: nowrap;
}
.bottom-bar .rates .item .currency {
font-weight: 600;
}
.bottom-bar .rates .item .change-up {
color: #2ecc71;
font-size: 11px;
font-weight: 500;
}
.bottom-bar .rates .item .change-down {
color: #e74c3c;
font-size: 11px;
font-weight: 500;
}
.bottom-bar .rates .divider {
color: rgba(255, 255, 255, 0.3);
font-size: 18px;
font-weight: 100;
}
.bottom-bar .time {
margin-left: auto;
font-size: 11px;
opacity: 0.4;
white-space: nowrap;
flex-shrink: 0;
}
/* ============================================
ИНФОРМАЦИЯ О СОТРУДНИКЕ
============================================ */
.employee-info {
max-width: 800px;
margin: 20px auto;
@@ -128,7 +328,9 @@ button:disabled {
color: #666;
}
/* Секция расчётных листов */
/* ============================================
РАСЧЁТНЫЙ ЛИСТ
============================================ */
.payslip-section {
margin-top: 30px;
padding: 20px;
@@ -170,33 +372,16 @@ button:disabled {
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.action-buttons {
display: flex;
gap: 10px;
margin-top: 20px;
}
.action-buttons button {
background-color: #28a745;
color: white;
flex: 1;
}
.action-buttons button:hover {
background-color: #218838;
}
.action-buttons button:first-child {
background-color: #007bff;
}
.action-buttons button:first-child:hover {
background-color: #0056b3;
}
/* Верхняя панель с кнопкой назад */
/* ============================================
ВЕРХНЯЯ ПАНЕЛЬ (КНОПКА НАЗАД)
============================================ */
.top-bar {
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.back-button {
@@ -210,20 +395,19 @@ button:disabled {
display: flex;
align-items: center;
gap: 5px;
transition: background-color 0.2s;
}
.back-button:hover {
background-color: #545b62;
}
/* Делаем кнопку назад компактнее */
.back-button {
transition: all 0.2s ease;
flex: 0 0 auto;
width: auto;
}
/* Гостевой режим */
.back-button:hover {
background-color: #545b62;
transform: translateX(-2px);
}
/* ============================================
ГОСТЕВОЙ РЕЖИМ
============================================ */
.guest-mode {
max-width: 1200px;
margin: 20px auto;
@@ -287,7 +471,6 @@ button:disabled {
line-height: 1.8;
}
.loading {
text-align: center;
color: #666;
@@ -308,94 +491,262 @@ button:disabled {
color: #555;
}
/* --- Handbook Content Styles --- */
/* ============================================
HANDBOOK СТИЛИ
============================================ */
.handbook-content {
max-width: 900px;
margin: 0 auto;
padding: 24px 12px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
max-width: 900px;
margin: 0 auto;
padding: 24px 12px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.handbook-content h1 {
text-align: center;
font-size: 2rem;
margin: 24px 0 16px 0;
color: #1a237e;
text-align: center;
font-size: 2rem;
margin: 24px 0 16px 0;
color: #1a237e;
}
.handbook-content h2 {
text-align: center;
font-size: 1.5rem;
margin: 20px 0 12px 0;
color: #283593;
text-align: center;
font-size: 1.5rem;
margin: 20px 0 12px 0;
color: #283593;
}
.handbook-content p {
margin: 10px 0;
font-size: 1.08rem;
line-height: 1.6;
margin: 10px 0;
font-size: 1.08rem;
line-height: 1.6;
}
.handbook-content ul {
margin: 12px 0 12px 32px;
padding-left: 18px;
margin: 12px 0 12px 32px;
padding-left: 18px;
}
.handbook-content li {
margin: 6px 0;
font-size: 1.05rem;
line-height: 1.5;
margin: 6px 0;
font-size: 1.05rem;
line-height: 1.5;
}
.handbook-content strong {
font-weight: bold;
color: #000000;
text-align: center;
font-weight: bold;
color: #000000;
text-align: center;
}
.handbook-content h3 {
font-weight: bold;
color: #000000;
text-align: center;
font-weight: bold;
color: #000000;
text-align: center;
}
.handbook-content em {
font-style: italic;
color: #555;
text-align: center;
}
font-style: italic;
color: #555;
text-align: center;
}
.handbook-content h4 {
font-weight: bold;
color: #000000;
text-align: center;
font-size: 1.1rem;
font-weight: bold;
color: #000000;
text-align: center;
font-size: 1.1rem;
}
.handbook-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 24px;
width: 100%;
border-collapse: collapse;
margin-bottom: 24px;
}
.handbook-table th,
.handbook-table td {
border: 1px solid #ccc;
padding: 8px 12px;
border: 1px solid #ccc;
padding: 8px 12px;
}
.handbook-table th {
background: #f5f5f5;
background: #f5f5f5;
}
.handbook-content table,
.handbook-content th,
.handbook-content td,
.handbook-content tr {
border: 1px solid #bdbdbd;
border-collapse: collapse;
border: 1px solid #bdbdbd;
border-collapse: collapse;
}
.handbook-content th,
.handbook-content td {
padding: 8px;
padding: 8px;
}
.handbook-content table {
width: 100%;
border-collapse: collapse;
width: 100%;
border-collapse: collapse;
}
/* ============================================
РАЗДЕЛЫ (Finance, Medicine, TradeUnion и т.д.)
============================================ */
.section-container {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
padding-bottom: 80px;
}
.section-title {
color: #2d3436;
font-size: 24px;
font-weight: 300;
margin-bottom: 30px;
display: flex;
align-items: center;
gap: 12px;
}
.section-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.section-card {
background: white;
border-radius: 16px;
padding: 25px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid #f1f2f6;
}
.section-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.section-card .card-icon {
font-size: 32px;
margin-bottom: 15px;
}
.section-card .card-title {
margin: 0 0 10px 0;
color: #2d3436;
font-size: 18px;
}
.section-card .card-description {
color: #636e72;
font-size: 14px;
line-height: 1.6;
margin: 0;
}
/* ============================================
ИНФО-БЛОК
============================================ */
.info-block {
margin-top: 30px;
padding: 20px;
background: #f8f9fa;
border-radius: 12px;
border: 1px solid #f1f2f6;
text-align: center;
color: #636e72;
}
.info-block p {
margin: 0;
}
/* ============================================
АДАПТИВНОСТЬ
============================================ */
@media (max-width: 768px) {
.login-window {
margin: 20% 15px;
}
.employee-header {
flex-direction: column;
align-items: center;
}
.employee-photo {
width: 120px;
height: 120px;
}
.main-menu h1 {
font-size: 1.8rem;
}
.menu-grid {
grid-template-columns: repeat(auto-fit, minmax(120px, 150px));
gap: 15px;
}
.section-grid {
grid-template-columns: 1fr;
}
.tab-navigation {
flex-wrap: wrap;
}
.tab-button {
padding: 8px 16px;
font-size: 14px;
}
.bottom-bar {
font-size: 11px;
padding: 6px 12px;
height: 34px;
gap: 10px;
flex-wrap: nowrap;
overflow-x: auto;
}
.bottom-bar .rates {
gap: 15px;
}
}
@media (max-width: 480px) {
.login-window {
padding: 15px;
}
.button-group {
flex-direction: column;
}
.menu-grid {
grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
gap: 10px;
}
.menu-item {
padding: 15px 10px;
min-height: 100px;
}
.menu-item .icon {
font-size: 1.8rem;
}
.menu-item .title {
font-size: 0.85rem;
}
}