- Refactored AuthService to use UserRepository for user authentication. - Added .env file for environment configuration. - Created migration system with Migrator and ConnectionFactory classes. - Added database migration files for creating users table. - Implemented settings controller for managing database migrations. - Developed user repository for user data handling. - Created users controller for user management interface. - Added frontend standards and migration documentation. - Introduced reusable UI components and jQuery alerts module.
255 lines
3.6 KiB
SCSS
255 lines
3.6 KiB
SCSS
@use "shared/ui-components";
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Roboto", "Segoe UI", sans-serif;
|
|
font-size: 14px;
|
|
color: var(--c-text);
|
|
background: var(--c-bg);
|
|
}
|
|
|
|
a {
|
|
color: var(--c-primary);
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: 260px 1fr;
|
|
}
|
|
|
|
.sidebar {
|
|
border-right: 1px solid var(--c-border);
|
|
border-right-color: #243041;
|
|
background: #111a28;
|
|
padding: 18px 14px;
|
|
}
|
|
|
|
.sidebar__brand {
|
|
margin: 4px 10px 16px;
|
|
color: #e9f0ff;
|
|
font-size: 24px;
|
|
font-weight: 300;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.sidebar__brand strong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sidebar__nav {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.sidebar__link {
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
text-decoration: none;
|
|
color: #cbd5e1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar__link:hover {
|
|
color: #f8fafc;
|
|
background: #1b2a3f;
|
|
}
|
|
|
|
.sidebar__link.is-active {
|
|
color: #ffffff;
|
|
background: #2e4f93;
|
|
}
|
|
|
|
.app-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.topbar {
|
|
height: 56px;
|
|
border-bottom: 1px solid var(--c-border);
|
|
background: var(--c-surface);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.brand {
|
|
font-size: 22px;
|
|
font-weight: 300;
|
|
letter-spacing: -0.02em;
|
|
color: var(--c-text-strong);
|
|
}
|
|
|
|
.brand strong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1120px;
|
|
margin: 24px auto;
|
|
padding: 0 18px 24px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--c-surface);
|
|
border-radius: 10px;
|
|
box-shadow: var(--shadow-card);
|
|
padding: 24px;
|
|
}
|
|
|
|
.card h1 {
|
|
margin: 0 0 10px;
|
|
color: var(--c-text-strong);
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--c-muted);
|
|
}
|
|
|
|
.accent {
|
|
color: var(--c-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.users-form {
|
|
display: grid;
|
|
gap: 14px;
|
|
max-width: 460px;
|
|
}
|
|
|
|
.section-title {
|
|
margin: 0;
|
|
color: var(--c-text-strong);
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.mt-12 {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.mt-16 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.settings-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-nav {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-nav__link {
|
|
text-decoration: none;
|
|
border: 1px solid var(--c-border);
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
color: var(--c-text-strong);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-nav__link:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.settings-nav__link.is-active {
|
|
border-color: var(--c-primary);
|
|
color: var(--c-primary);
|
|
background: #edf2ff;
|
|
}
|
|
|
|
.settings-stat {
|
|
border: 1px solid var(--c-border);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.settings-stat__label {
|
|
display: block;
|
|
color: var(--c-muted);
|
|
font-size: 12px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.settings-stat__value {
|
|
color: var(--c-text-strong);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.settings-logs {
|
|
margin: 0;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--c-border);
|
|
background: #0b1220;
|
|
color: #d1d5db;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
overflow: auto;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.app-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.sidebar {
|
|
border-right: 0;
|
|
border-bottom: 1px solid #243041;
|
|
padding: 14px;
|
|
}
|
|
|
|
.sidebar__brand {
|
|
margin: 0 0 10px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.sidebar__nav {
|
|
display: flex;
|
|
gap: 8px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.sidebar__link {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 0 14px;
|
|
}
|
|
|
|
.container {
|
|
margin-top: 16px;
|
|
padding: 0 14px 18px;
|
|
}
|
|
|
|
.settings-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.card {
|
|
padding: 18px;
|
|
}
|
|
}
|