Skip to content

Commit

Permalink
add solution
Browse files Browse the repository at this point in the history
  • Loading branch information
smachyloooo committed Jul 29, 2024
1 parent b5a08ab commit ecdf506
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,11 @@ <h2 class="vision__title">
<footer class="footer" id="footer">
<div class="container">
<div class="footer__content">
<form action="#" method="get" class="form" id="contactForm">
<form onsubmit="this.reset(); return false" action="#" method="get" class="form">
<h3 class="footer__title">
Send us a message
</h3>
<input required type="mail" placeholder="Your email" class="form__input">
<input required type="email" placeholder="Your email" class="form__input">
<input required type="text" placeholder="Your name" class="form__input">
<textarea required name="message" class="form__input" placeholder="Your message"></textarea>
<button type="submit" class="button form__button">Send</button>
Expand Down
7 changes: 0 additions & 7 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,3 @@ const swiper = new Swiper('.swiper', {
prevEl: '.swiper-button-prev',
},
});

document
.getElementById('contactForm')
.addEventListener('submit', function (event) {
event.preventDefault();
alert('Form submitted!');
});
3 changes: 1 addition & 2 deletions src/styles/components/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
font-family: 'Poppins', sans-serif;
font-size: 15px;
font-weight: 600;

color: $white;
background-color: inherit;
width: 100%;
height: 40px;
Expand All @@ -34,7 +34,6 @@
&:focus {
outline: none;
border-bottom: 2px solid $mainBotton;
color: $white;
// font-family: 'Poppins', sans-serif;
// font-size: 15px;
// font-weight: 600;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/utils/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

@mixin contentPaddingInline() {
padding-inline: 20px;
padding-inline: 14px;

@include onTablet{
padding-inline: 41px;
Expand Down

0 comments on commit ecdf506

Please sign in to comment.