Reorganize project structure and cleanup root directory
All checks were successful
continuous-integration/drone/push Build is passing

 Major improvements:
- Created organized folder structure with utils/, scripts/, backups/, temp/
- Moved Python scripts to scripts/ folder for better organization
- Moved utility files (start, stop, update, cli, logs, drone) to utils/ folder
- Moved backup files to backups/ folder for cleaner root directory
- Added comprehensive README.md files for each new folder
- Updated main README.md with new project structure documentation
- Enhanced .gitignore with rules for new folders
- Added real-time career vacancy counter on homepage
- Improved homepage career stats styling with better visibility

🗂️ New folder structure:
- utils/ - Project management utilities and tools
- scripts/ - Python helper scripts for banners and data
- backups/ - Configuration and file backups
- temp/ - Temporary files and development data

🎨 UI improvements:
- Fixed white text visibility issues on homepage career section
- Added dynamic vacancy count from database
- Implemented glassmorphism design for career stats card
- Better color contrast and hover effects

This reorganization makes the project more maintainable and professional.
This commit is contained in:
2025-11-25 18:00:50 +09:00
parent bcd01a5d3e
commit 6fe0780113
59 changed files with 192 additions and 213 deletions

View File

@@ -538,10 +538,10 @@
</div>
<div class="text-center">
<div class="career-stats bg-gradient rounded-4 p-4 text-white mb-4" style="max-width: 300px; margin: 0 auto;">
<h3 class="display-4 fw-bold mb-2">0</h3>
<h6 class="mb-2">Открыто вакансий</h6>
<p class="small mb-0 opacity-75">Найдите свою идеальную позицию</p>
<div class="career-stats-home bg-white rounded-4 p-4 shadow-lg mb-4" style="max-width: 320px; margin: 0 auto; border: 2px solid #667eea;">
<h3 class="display-4 fw-bold mb-2 text-primary">{{ total_open_positions|default:0 }}</h3>
<h6 class="mb-2 text-dark fw-semibold">Открыто вакансий</h6>
<p class="small mb-0 text-muted">Найдите свою идеальную позицию</p>
</div>
<a href="{% url 'career' %}" class="btn btn-primary-modern btn-lg me-3">
@@ -1112,6 +1112,66 @@ document.addEventListener('DOMContentLoaded', function() {
display: inline-block;
margin: 0.5rem;
}
.career-stats-home {
max-width: 280px !important;
padding: 1.5rem !important;
}
.career-stats-home h3 {
font-size: 2.5rem !important;
}
}
/* Career Stats Home Styles */
.career-stats-home {
background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
border: 2px solid #667eea !important;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15) !important;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.career-stats-home::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
z-index: 1;
}
.career-stats-home:hover {
transform: translateY(-5px);
box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25) !important;
border-color: #5a67d8;
}
.career-stats-home > * {
position: relative;
z-index: 2;
}
.career-stats-home h3 {
color: #667eea !important;
text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
font-size: 3rem;
font-weight: 800;
}
.career-stats-home h6 {
color: #2d3748 !important;
font-weight: 600;
font-size: 1.1rem;
letter-spacing: 0.5px;
}
.career-stats-home p {
color: #6b7280 !important;
font-size: 0.9rem;
}
</style>
{% endblock %}

View File

@@ -45,6 +45,9 @@ def home(request):
team_members = Team.objects.filter(is_active=True, show_on_about=True).order_by('display_order')[:4] # Показываем топ-4 участников команды
featured_careers = Career.objects.filter(status='active', is_featured=True).order_by('-created_at')[:3] # Топ-3 рекомендуемые вакансии
# Подсчет открытых вакансий
total_open_positions = Career.objects.filter(status='active').count()
return render(request, 'web/home_modern.html', {
'services': services,
'hero_banners': hero_banners,
@@ -53,6 +56,7 @@ def home(request):
'reviews': reviews,
'team_members': team_members,
'featured_careers': featured_careers,
'total_open_positions': total_open_positions,
})
def service_detail(request, pk):