feat: Реализован полный CRUD для админ-панели и улучшена функциональность

- Portfolio CRUD: добавление, редактирование, удаление, переключение публикации
- Services CRUD: полное управление услугами с возможностью активации/деактивации
- Banner system: новая модель Banner с CRUD операциями и аналитикой кликов
- Telegram integration: расширенные настройки бота, обнаружение чатов, отправка сообщений
- Media management: улучшенная загрузка файлов с оптимизацией изображений и превью
- UI improvements: обновлённые админ-панели с rich-text редактором и drag&drop загрузкой
- Database: добавлена таблица banners с полями для баннеров и аналитики
This commit is contained in:
2025-10-22 20:32:16 +09:00
parent 150891b29d
commit 9477ff6de0
69 changed files with 11451 additions and 2321 deletions

686
public/css/base.css Normal file
View File

@@ -0,0 +1,686 @@
/* SmartSolTech - Base Styles for Elements */
/* Ensure proper styling without Tailwind conflicts */
.navbar {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
z-index: 1000 !important;
background: rgba(255, 255, 255, 0.95) !important;
backdrop-filter: blur(10px) !important;
border-bottom: 1px solid #e5e7eb !important;
padding: 1rem 0 !important;
}
.navbar-brand {
font-size: 1.5rem !important;
font-weight: 700 !important;
color: #3B82F6 !important;
text-decoration: none !important;
}
.navbar-nav {
display: flex !important;
align-items: center !important;
gap: 2rem !important;
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
.nav-link {
color: #6b7280 !important;
text-decoration: none !important;
font-weight: 500 !important;
padding: 0.5rem 1rem !important;
border-radius: 0.5rem !important;
transition: all 0.3s ease !important;
}
.nav-link:hover,
.nav-link.active {
color: #3B82F6 !important;
background-color: #eff6ff !important;
}
/* Base CSS - Исправленные стили для главной страницы */
/* Reset и базовые стили */
* {
box-sizing: border-box !important;
margin: 0 !important;
padding: 0 !important;
}
html {
font-size: 16px !important;
scroll-behavior: smooth !important;
}
body {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
line-height: 1.6 !important;
color: #1f2937 !important;
background-color: #ffffff !important;
margin: 0 !important;
padding: 0 !important;
padding-top: 80px !important; /* Отступ для навигации */
}
/* Навигация - исправленная */
nav, .navigation {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
z-index: 1000 !important;
background: rgba(255, 255, 255, 0.95) !important;
-webkit-backdrop-filter: blur(20px) !important;
backdrop-filter: blur(20px) !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
height: 80px !important;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}
.navbar, .nav-container {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
padding: 0 2rem !important;
max-width: 1200px !important;
margin: 0 auto !important;
height: 100% !important;
}
.logo, .brand {
font-size: 1.75rem !important;
font-weight: 800 !important;
color: #1d4ed8 !important;
text-decoration: none !important;
letter-spacing: -0.025em !important;
}
.nav-links, .menu {
display: flex !important;
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
gap: 2.5rem !important;
}
.nav-links li, .menu li {
margin: 0 !important;
padding: 0 !important;
}
.nav-links a, .menu a {
color: #374151 !important;
text-decoration: none !important;
font-weight: 500 !important;
font-size: 0.95rem !important;
transition: all 0.3s ease !important;
padding: 0.75rem 0 !important;
position: relative !important;
}
.nav-links a:hover, .menu a:hover {
color: #1d4ed8 !important;
transform: translateY(-1px) !important;
}
.nav-links a::after, .menu a::after {
content: '' !important;
position: absolute !important;
bottom: 0.5rem !important;
left: 0 !important;
width: 0 !important;
height: 2px !important;
background: linear-gradient(45deg, #1d4ed8, #8b5cf6) !important;
transition: width 0.3s ease !important;
}
.nav-links a:hover::after, .menu a:hover::after {
width: 100% !important;
}
/* Hero секция - исправленная */
.hero-section {
min-height: 100vh !important;
background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 50%, #7c3aed 75%, #3730a3 100%) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
color: white !important;
position: relative !important;
overflow: hidden !important;
margin-top: -80px !important;
padding-top: 80px !important;
}
.hero-section::before {
content: '' !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%) !important;
z-index: 1 !important;
}
.hero-section > div {
position: relative !important;
z-index: 2 !important;
}
.hero-section h1 {
font-size: 4rem !important;
font-weight: 800 !important;
margin-bottom: 1.5rem !important;
line-height: 1.1 !important;
letter-spacing: -0.025em !important;
}
.hero-section p {
font-size: 1.35rem !important;
margin-bottom: 2.5rem !important;
opacity: 0.9 !important;
max-width: 600px !important;
margin-left: auto !important;
margin-right: auto !important;
}
/* Кнопки - улучшенные */
.btn-primary, .btn {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 1.25rem 2.5rem !important;
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
color: white !important;
text-decoration: none !important;
border-radius: 50px !important;
font-weight: 700 !important;
font-size: 1.1rem !important;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
border: none !important;
cursor: pointer !important;
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
position: relative !important;
overflow: hidden !important;
}
.btn-primary:hover, .btn:hover {
transform: translateY(-3px) scale(1.05) !important;
box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4) !important;
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
}
.btn-primary::before, .btn::before {
content: '' !important;
position: absolute !important;
top: 0 !important;
left: -100% !important;
width: 100% !important;
height: 100% !important;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
transition: left 0.6s !important;
}
.btn-primary:hover::before, .btn:hover::before {
left: 100% !important;
}
/* Карточки - улучшенные */
.card-hover, .card {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
border-radius: 1.5rem !important;
overflow: hidden !important;
background: white !important;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.card-hover:hover, .card:hover {
transform: translateY(-12px) scale(1.02) !important;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
border-color: rgba(59, 130, 246, 0.2) !important;
}
/* Секции */
section {
padding: 6rem 1rem !important;
position: relative !important;
}
.container, .max-w-7xl {
max-width: 1200px !important;
margin: 0 auto !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
}
/* Заголовки */
h1, h2, h3, h4, h5, h6 {
color: #1f2937 !important;
font-weight: 700 !important;
line-height: 1.2 !important;
}
h2 {
font-size: 2.75rem !important;
margin-bottom: 1rem !important;
}
h3 {
font-size: 1.5rem !important;
margin-bottom: 0.75rem !important;
}
/* Параграфы и текст */
p {
color: #6b7280 !important;
line-height: 1.7 !important;
margin-bottom: 1rem !important;
}
/* Утилитарные классы Tailwind - принудительные */
.text-center {
text-align: center !important;
}
.text-white {
color: white !important;
}
.bg-white {
background-color: white !important;
}
.bg-gray-50 {
background-color: #f9fafb !important;
}
.rounded-lg {
border-radius: 0.5rem !important;
}
.rounded-2xl {
border-radius: 1rem !important;
}
.shadow-lg {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
.mb-4 {
margin-bottom: 1rem !important;
}
.mb-8 {
margin-bottom: 2rem !important;
}
.p-8 {
padding: 2rem !important;
}
.flex {
display: flex !important;
}
.grid {
display: grid !important;
}
.items-center {
align-items: center !important;
}
.justify-center {
justify-content: center !important;
}
/* Грид системы */
.grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.gap-8 {
gap: 2rem !important;
}
/* Отзывчивость - улучшенная */
@media (max-width: 1024px) {
.grid-cols-4 {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.hero-section h1 {
font-size: 3.5rem !important;
}
}
@media (max-width: 768px) {
.nav-links, .menu {
display: none !important;
}
body {
padding-top: 60px !important;
}
nav, .navigation {
height: 60px !important;
}
.hero-section {
margin-top: -60px !important;
padding-top: 60px !important;
}
section {
padding: 4rem 1rem !important;
}
.hero-section h1 {
font-size: 2.75rem !important;
}
.hero-section p {
font-size: 1.1rem !important;
}
.grid-cols-2, .grid-cols-3, .grid-cols-4 {
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.btn-primary, .btn {
padding: 1rem 2rem !important;
font-size: 1rem !important;
}
}
.hero-title {
font-size: 3.5rem !important;
font-weight: 700 !important;
margin-bottom: 1rem !important;
line-height: 1.2 !important;
}
.hero-subtitle {
font-size: 1.25rem !important;
margin-bottom: 2rem !important;
color: rgba(255, 255, 255, 0.9) !important;
}
/* Buttons */
.btn {
display: inline-block !important;
padding: 0.75rem 1.5rem !important;
border-radius: 0.5rem !important;
text-decoration: none !important;
font-weight: 600 !important;
text-align: center !important;
border: none !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
font-size: 1rem !important;
}
.btn-primary {
background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
color: white !important;
}
.btn-primary:hover {
transform: translateY(-2px) !important;
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
}
.btn-secondary {
background: transparent !important;
color: white !important;
border: 2px solid white !important;
}
.btn-secondary:hover {
background: white !important;
color: #3B82F6 !important;
}
/* Cards */
.card {
background: white !important;
border-radius: 1rem !important;
padding: 2rem !important;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
transition: all 0.3s ease !important;
}
.card:hover {
transform: translateY(-4px) !important;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
/* Sections */
.section {
padding: 4rem 2rem !important;
}
.section-title {
font-size: 2.5rem !important;
font-weight: 700 !important;
text-align: center !important;
margin-bottom: 1rem !important;
color: #1f2937 !important;
}
.section-description {
font-size: 1.125rem !important;
text-align: center !important;
color: #6b7280 !important;
max-width: 600px !important;
margin: 0 auto 3rem !important;
}
/* Container */
.container {
max-width: 1200px !important;
margin: 0 auto !important;
padding: 0 1rem !important;
}
/* Grid Layouts */
.grid-2 {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
gap: 2rem !important;
}
.grid-3 {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
gap: 2rem !important;
}
.grid-4 {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
gap: 1.5rem !important;
}
/* Language Selector */
.language-selector {
display: flex !important;
align-items: center !important;
gap: 0.5rem !important;
}
.language-selector a {
color: #6b7280 !important;
text-decoration: none !important;
padding: 0.25rem 0.5rem !important;
border-radius: 0.25rem !important;
font-size: 0.875rem !important;
}
.language-selector a:hover {
color: #3B82F6 !important;
background-color: #f3f4f6 !important;
}
/* Mobile Menu */
.mobile-menu-button {
display: none !important;
background: none !important;
border: none !important;
font-size: 1.5rem !important;
color: #6b7280 !important;
cursor: pointer !important;
}
/* Mobile Styles */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem !important;
}
.mobile-menu-button {
display: block !important;
}
.navbar-nav {
display: none !important;
position: absolute !important;
top: 100% !important;
left: 0 !important;
right: 0 !important;
background: white !important;
flex-direction: column !important;
padding: 1rem !important;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
.navbar-nav.show {
display: flex !important;
}
.section {
padding: 2rem 1rem !important;
}
.section-title {
font-size: 2rem !important;
}
}
/* Footer */
.footer {
background: #1f2937 !important;
color: white !important;
padding: 3rem 2rem 1rem !important;
text-align: center !important;
}
.footer p {
color: #d1d5db !important;
}
/* Service Icons */
.service-icon {
width: 80px !important;
height: 80px !important;
background: linear-gradient(135deg, #3B82F6, #8B5CF6) !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 2rem !important;
color: white !important;
margin: 0 auto 1rem !important;
}
/* Portfolio Items */
.portfolio-item {
background: white !important;
border-radius: 1rem !important;
overflow: hidden !important;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
transition: all 0.3s ease !important;
}
.portfolio-item:hover {
transform: translateY(-4px) !important;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
.portfolio-image {
width: 100% !important;
height: 200px !important;
object-fit: cover !important;
display: block !important;
}
.portfolio-content {
padding: 1.5rem !important;
}
.portfolio-title {
font-size: 1.25rem !important;
font-weight: 600 !important;
margin-bottom: 0.5rem !important;
color: #1f2937 !important;
}
.portfolio-description {
color: #6b7280 !important;
margin-bottom: 1rem !important;
}
/* Form Styles */
.form-group {
margin-bottom: 1.5rem !important;
}
.form-label {
display: block !important;
font-weight: 500 !important;
margin-bottom: 0.5rem !important;
color: #374151 !important;
}
.form-input,
.form-textarea,
.form-select {
width: 100% !important;
padding: 0.75rem !important;
border: 2px solid #e5e7eb !important;
border-radius: 0.5rem !important;
font-size: 1rem !important;
transition: all 0.3s ease !important;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
outline: none !important;
border-color: #3B82F6 !important;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

View File

@@ -297,8 +297,8 @@ html.dark {
/* High contrast mode */
@media (prefers-contrast: high) {
.dark {
--tw-bg-opacity: 1;
--tw-text-opacity: 1;
color: white !important;
background-color: black !important;
}
.dark .border {

View File

@@ -272,6 +272,35 @@ html {
}
}
/* iOS Style Theme Toggle */
.theme-toggle-slider {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Theme toggle background states */
input#theme-toggle:checked + label > div {
background-color: #4F46E5 !important;
}
input#theme-toggle + label > div {
background-color: #D1D5DB;
}
/* Dark mode adjustments for toggle */
.dark input#theme-toggle + label > div {
background-color: #374151;
}
.dark input#theme-toggle:checked + label > div {
background-color: #6366F1 !important;
}
/* Smooth transitions for icons */
.theme-sun-icon,
.theme-moon-icon {
transition: opacity 0.3s ease;
}
/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
.auto-dark {

View File

@@ -1,5 +1,8 @@
/* SmartSolTech - Main Styles */
/* Tailwind Base (if not loading properly) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
/* CSS Reset and Base */
* {
margin: 0;
@@ -7,10 +10,26 @@
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #1f2937;
background-color: #ffffff;
}
/* Root Variables */
:root {
--primary-color: #3B82F6;
--secondary-color: #8B5CF6;
--accent-color: #10B981;
--text-dark: #1f2937;
--text-light: #6b7280;
--bg-light: #f9fafb;
--border-color: #e5e7eb;
}
/* Utility Classes */
@@ -65,6 +84,8 @@ body {
color: #3b82f6;
background-color: #eff6ff;
}
.mobile-menu {
overflow: hidden;
}
@@ -547,6 +568,39 @@ body {
}
#final-price {
font-size: 2.5rem;
font-size: 2rem;
}
}
/* Hero секции - компактные для внутренних страниц */
.hero-section-compact {
min-height: 40vh !important;
max-height: 50vh !important;
padding: 4rem 0 !important;
}
.hero-section-compact h1 {
font-size: 3rem !important;
margin-bottom: 1rem !important;
}
.hero-section-compact p {
font-size: 1.125rem !important;
opacity: 0.9 !important;
}
@media (max-width: 768px) {
.hero-section-compact {
min-height: 30vh !important;
padding: 3rem 0 !important;
}
.hero-section-compact h1 {
font-size: 2.5rem !important;
}
}
/* Полноэкранный Hero только для главной */
.hero-section {
min-height: 100vh !important;
}