Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
moskkat40 committed Oct 11, 2024
1 parent 42bafe3 commit 0e06155
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ <h2 class="services__title">
required
/>
<textarea
class="contactUs__form_input"
class="contactUs__form_input contactUs__form_input--textarea"
placeholder="Your message"
required
></textarea>
Expand Down
22 changes: 12 additions & 10 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,27 @@ const burgerClose = document.querySelector('.burger__close');
const burgerOpen = document.querySelector('.top-bar__open');
const burgerMenu = document.querySelector('.burger');
const topBarIcon = document.querySelector('.burger__logo');
const topBarHire = document.querySelector('.burger__hire');
const topBarHire = document.querySelector('.top-bar__hire');
const page = document.querySelector('.page__body');

burgerOpen.addEventListener('click', () => {
burgerMenu.style.display = 'block';
page.style.overflow = 'hidden';
});

burgerClose.addEventListener('click', () => {
burgerMenu.style.display = 'none';
page.style.overflow = 'auto';
});

if (window.matchMedia("(max-width: 1023px)").matches) {
burgerMenu.addEventListener('click', (event) => {
if(event.target) {
burgerMenu.style.display = 'none';
topBarIcon.style.display = 'block';
topBarHire.style.display = 'block';
}
});
}
burgerMenu.addEventListener('click', (event) => {
if(event.target) {
burgerMenu.style.display = 'none';
topBarIcon.style.display = 'block';
topBarHire.style.display = 'block';
page.style.overflow = 'auto';
}
});


//change theme
Expand Down
3 changes: 3 additions & 0 deletions src/styles/blocks/contactUs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
background: transparent;
border-bottom: 1px solid $text-color-white;
color: $text-color-white;
&--textarea {
resize: none;
}
&::placeholder {
font-weight: 600;
font-size: 15px;
Expand Down

0 comments on commit 0e06155

Please sign in to comment.