правки test1

This commit is contained in:
2026-04-05 20:22:18 +03:00
parent 5f4c2e91ac
commit acf3d03267
5 changed files with 163 additions and 5 deletions

View File

@@ -23,6 +23,12 @@
flex-direction: column;
}
.test1-shared-contacts-page {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.test1-shared-cart-page .site-main {
flex: 1 0 auto;
}
@@ -32,6 +38,11 @@
padding-bottom: 26px;
}
.test1-shared-contacts-page .site-main {
flex: 1 0 auto;
padding-bottom: 26px;
}
.test1-shared-cart-page .classic-footer {
margin-top: auto;
}
@@ -40,6 +51,10 @@
margin-top: auto;
}
.test1-shared-contacts-page .classic-footer {
margin-top: auto;
}
.test1-shared-shell .site-header {
position: sticky;
top: 0;

View File

@@ -0,0 +1,18 @@
(() => {
const contactForm = document.getElementById('contactForm')
const contactSuccess = document.getElementById('contactSuccess')
if (!contactForm || !contactSuccess) {
return
}
contactForm.addEventListener('submit', event => {
event.preventDefault()
contactSuccess.classList.add('visible')
setTimeout(() => {
contactForm.reset()
contactSuccess.classList.remove('visible')
}, 2200)
})
})()