merge Merge branch 'dev'
Some checks failed
Build Docker / deploy (push) Successful in 54s
Build Docker / build (push) Failing after 3s

This commit is contained in:
2026-05-16 14:12:22 +03:00
4 changed files with 145 additions and 20 deletions

View File

@@ -82,6 +82,10 @@
Наша история
</h2>
<h3 class="heading_date">22 августа 2026</h3>
<!-- КНОПКА -->
<button class="story_btn">
Открыть историю
</button>
<p class="heading_text">
Мы — та самая история, которая началась со странного сообщения и превратилась в нечто настоящее.
В нас есть легкость и смех, который когда-то стал началом всего, любовь к простым вещам вроде
@@ -352,7 +356,7 @@
Фотографии
</h4>
<!-- Slider main container -->
<div class="swiper">
<div class="swiper photos_slider">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
@@ -407,6 +411,17 @@
<!-- If we need scrollbar -->
<div class="swiper-scrollbar"></div>
</div>
<!-- COLLAGE -->
<div class="photos_collage">
<img src="images/photos/1.webp" alt="">
<img src="images/photos/2.webp" alt="">
<img src="images/photos/3.webp" alt="">
<img src="images/photos/4.webp" alt="">
<img src="images/photos/5.webp" alt="">
<img src="images/photos/6.webp" alt="">
<img src="images/photos/8.webp" alt="">
<img src="images/photos/9.webp" alt="">
</div>
</section>
<section class="to-do-list" id="to-do-list">
<h4 class="do-list_title">

View File

@@ -88,4 +88,19 @@ links.forEach(link => {
burger.classList.remove('active');
nav.classList.remove('active');
});
});
const btn = document.querySelector('.story_btn');
const text = document.querySelector('.heading_text');
btn.addEventListener('click', () => {
text.classList.toggle('active');
if (text.classList.contains('active')) {
btn.textContent = 'Скрыть историю';
} else {
btn.textContent = 'Открыть историю';
}
});

View File

@@ -238,9 +238,9 @@ img {
.heading {
background: url("images/25.webp") 50% 100% / cover;
margin: 0px 400px;
/* border: 10px solid rgb(184, 136, 48); */
/* border: 15px double rgb(184, 136, 48); */
height: 640px;
padding-bottom: 40px; /* можно оставить */
padding-top: 60px;
/* ❌ height: 640px; УДАЛИТЬ */
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.heading_content {
@@ -302,6 +302,10 @@ img {
text-shadow: #000 2px 2px 6px;
}
.story_btn {
display: none;
}
/* -----------------------------------PEOPLE-------------------------------------- */
.people {
@@ -495,6 +499,7 @@ h4 {
border: none;
}
.map_adress {
line-height: 1.6;
font-size: 50px;
margin-top: 20px;
font-weight: 900;
@@ -565,6 +570,9 @@ h4 {
.photos_title {
margin-bottom: 100px;
}
.photos_collage {
display: none;
}
.swiper_img {
height: 500px;
border: 5px dotted #000;
@@ -1470,7 +1478,7 @@ textarea {
}
.swiper_img {
height: 250px;
max-width: 70%;
max-width: 50%;
}
.swiper-scrollbar {
display: none;
@@ -1503,7 +1511,18 @@ textarea {
}
.map_adress {
margin-bottom: 10px;
color: #502c01;
text-decoration: underline;
}
.transfer_inner {
margin: 0;
padding: 0;
}
.transfer_map {
gap: 20px;
}
.transfer {
margin-bottom: 0;
}
}
@@ -1532,12 +1551,14 @@ textarea {
width: 100%;
text-align: start;
}
.heading_text {
display: none;
}
.heading {
height: 200px;
}
.heading {
min-height: 225px;
height: auto;
padding-bottom: 0px;
}
.heading_cont {
overflow: hidden;
}
.img_newlywed {
display: none;
}
@@ -1547,12 +1568,46 @@ textarea {
.header {
width: 15%;
}
.photos {
display: none;
}
.item_none {
display: none;
}
.photos_slider {
display: none !important;
}
.photos_collage {
display: grid !important;
grid-template-columns: 1fr 1fr;
gap: 10px;
padding: 0 10px;
}
.photos_collage img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 18px;
display: block;
}
.photos_collage img:nth-child(3) {
grid-column: span 2;
height: 240px;
}
.photos_collage img:nth-child(6) {
grid-column: span 2;
height: 240px;
}
.photos {
margin: 0 15px;
padding-bottom: 50px;
}
.photos_title {
margin-bottom: 40px;
}
.photos_collage {
padding-top: 40px;
}
.time_row_up, .time_row_down {
width: 100%;
}
@@ -1579,6 +1634,43 @@ textarea {
align-items: start;
padding: 30px;
}
.story_btn {
display: inline-block;
margin-top: 20px;
padding: 12px 28px;
font-size: 22px;
cursor: pointer;
}
.heading_text {
max-height: 0;
overflow: hidden;
opacity: 0;
transition:
max-height 0.6s ease,
opacity 0.4s ease,
padding 0.4s ease;
padding-top: 0;
padding-bottom: 0;
}
.heading_text.active {
max-height: 1000px;
opacity: 1;
padding-top: 20px;
padding-bottom: 20px;
}
.time {
padding-top: 0px;
}
.story_btn {
background-color: #a8582a;
border: 1px solid #000;
}
}
@@ -1621,14 +1713,17 @@ textarea {
white-space: wrap;
margin-bottom: 10px;
}
.heading_text.active {
min-height: 450px;
}
}
@media (max-width: 320px) {
.header {
width: 23%;
}
.heading {
height: 240px;
.heading_text {
padding: 0;
}
.time {
font-size: 35px;