diff --git a/server/frontend/main/api.js b/server/frontend/main/1.js
similarity index 100%
rename from server/frontend/main/api.js
rename to server/frontend/main/1.js
diff --git a/server/frontend/main/index.html b/server/frontend/main/index.html
index 1e426ad..6680823 100644
--- a/server/frontend/main/index.html
+++ b/server/frontend/main/index.html
@@ -82,6 +82,10 @@
Наша история
22 августа 2026
+
+
+ Открыть историю
+
Мы — та самая история, которая началась со странного сообщения и превратилась в нечто настоящее.
В нас есть легкость и смех, который когда-то стал началом всего, любовь к простым вещам вроде
@@ -352,7 +356,7 @@
Фотографии
-
+
+
+
diff --git a/server/frontend/main/main.js b/server/frontend/main/main.js
index b1b3692..fece8df 100644
--- a/server/frontend/main/main.js
+++ b/server/frontend/main/main.js
@@ -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 = 'Открыть историю';
+ }
+
});
\ No newline at end of file
diff --git a/server/frontend/main/style.css b/server/frontend/main/style.css
index 0fcf130..41c7118 100644
--- a/server/frontend/main/style.css
+++ b/server/frontend/main/style.css
@@ -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;