🎨 UX: Hero контейнер с ограниченной шириной и закругленными краями
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-25 12:43:30 +09:00
parent 012ec02145
commit 1810db09b9

View File

@@ -5,6 +5,7 @@
{% block content %} {% block content %}
<!-- Hero Section --> <!-- Hero Section -->
<section class="hero-modern" id="home"> <section class="hero-modern" id="home">
<div class="hero-wrapper">
{% if hero_banners %} {% if hero_banners %}
<!-- Hero Carousel for Multiple Banners --> <!-- Hero Carousel for Multiple Banners -->
<div id="heroCarousel" class="carousel slide carousel-fade" data-bs-ride="carousel"> <div id="heroCarousel" class="carousel slide carousel-fade" data-bs-ride="carousel">
@@ -190,6 +191,7 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div>
</section><!-- Services Preview Section --> </section><!-- Services Preview Section -->
<section class="section-padding bg-light"> <section class="section-padding bg-light">
<div class="container-modern"> <div class="container-modern">
@@ -573,11 +575,10 @@
<style> <style>
/* CRITICAL Hero Banner Styles - Emergency Fix */ /* CRITICAL Hero Banner Styles - Emergency Fix */
.hero-modern { .hero-modern {
padding: 0; padding: 2rem 0;
background: #000; background: #f8f9fa;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
min-height: 100vh;
} }
.hero-container { .hero-container {
@@ -587,18 +588,21 @@
margin: 0 auto; margin: 0 auto;
border-radius: 20px; border-radius: 20px;
overflow: hidden; overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
height: 70vh;
min-height: 500px;
max-height: 800px;
} }
.carousel-item { .carousel-item {
position: relative; position: relative;
min-height: 100vh; height: 100%;
} }
.hero-bg { .hero-bg {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100vh; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -639,35 +643,40 @@
z-index: 3; z-index: 3;
color: white; color: white;
text-align: left; text-align: left;
padding: 2rem; padding: 3rem;
width: 100%; width: 100%;
height: 100%;
display: flex;
align-items: center;
} }
.hero-title { .hero-title {
font-size: 3.5rem; font-size: 3rem;
font-weight: 800; font-weight: 800;
margin-bottom: 1rem; margin-bottom: 1rem;
color: white; color: white;
line-height: 1.2;
} }
.hero-subtitle { .hero-subtitle {
font-size: 1.5rem; font-size: 1.3rem;
margin-bottom: 1rem; margin-bottom: 1rem;
opacity: 0.9; opacity: 0.9;
} }
.hero-description { .hero-description {
font-size: 1.2rem; font-size: 1.1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
opacity: 0.8; opacity: 0.8;
max-width: 500px;
} }
/* Pill Indicators Styles */ /* Pill Indicators Styles */
.carousel-indicators-container { .carousel-indicators-container {
position: absolute; position: absolute;
top: 50%; bottom: 30px;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translateX(-50%);
z-index: 4; z-index: 4;
pointer-events: auto; pointer-events: auto;
} }
@@ -739,21 +748,41 @@
} }
} }
/* Container wrapper для центрирования */
.hero-wrapper {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
/* Responsive */ /* Responsive */
@media (max-width: 768px) { @media (max-width: 768px) {
.hero-container { .hero-container {
border-radius: 0;
margin: 0; margin: 0;
border-radius: 15px;
height: 60vh;
min-height: 400px;
max-height: 600px;
}
.hero-content {
padding: 2rem 1.5rem;
} }
.hero-title { .hero-title {
font-size: 2.5rem; font-size: 2rem;
}
.hero-subtitle {
font-size: 1.1rem;
}
.hero-description {
font-size: 1rem;
} }
.carousel-indicators-container { .carousel-indicators-container {
bottom: 20px; bottom: 20px;
top: auto;
transform: translateX(-50%);
} }
.pill-indicator { .pill-indicator {
@@ -761,6 +790,22 @@
font-size: 10px; font-size: 10px;
} }
} }
@media (max-width: 576px) {
.hero-container {
border-radius: 12px;
height: 50vh;
min-height: 350px;
}
.hero-content {
padding: 1.5rem 1rem;
}
.hero-title {
font-size: 1.8rem;
}
}
</style> </style>
{% endblock %} {% endblock %}