-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Grsm
committed
Nov 21, 2022
1 parent
c2a8c21
commit 7500c56
Showing
17 changed files
with
328 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Mmenu from '../../../node_modules/mmenu-js/src/mmenu'; | ||
|
||
const mobileMenu = () => { | ||
const button = document.querySelector('.burger-btn'); | ||
const mMenu = new Mmenu('#mobmenu', { | ||
offCanvas: { | ||
position: 'top', | ||
}, | ||
theme: 'white', | ||
navbar: { | ||
title: 'Menu', | ||
}, | ||
navbars: [ | ||
{ | ||
position: 'top', | ||
content: [ | ||
'<a class="mm-btn--close" aria-label="Close menu" href="#mm-8"><svg class="burger-btn burger-btn--inMmenu active" width="16" height="16" viewBox="0 0 40 26" xmlns="https://www.w3.org/2000/svg"><rect class="burger-btn--1" width="40" height="6" rx="3" ry="3" /><rect class="burger-btn--2" width="40" height="6" y="10" rx="3" ry="3" /><rect class="burger-btn--3" width="40" height="6" y="20" rx="3" ry="3" /></svg></a>', | ||
], | ||
}, | ||
], | ||
}); | ||
|
||
let spanLogo = document.createElement('span'); | ||
spanLogo.classList.add('span-logo'); | ||
spanLogo.innerHTML = `<img loading="lazy" src="/img/logo-white-mob.svg" class="image" width="40" height="40" alt="Cametet">`; | ||
|
||
document.querySelector('.mm-navbar__title').append(spanLogo); | ||
|
||
// button.addEventListener('click', () => { | ||
// button.classList.toggle('active'); | ||
// }); | ||
|
||
}; | ||
|
||
export default mobileMenu; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<nav id="mobmenu"> | ||
<ul class="nav__list list-reset"> | ||
<li class="nav__item"> | ||
<a href="/catalog-1.html" class="nav__link">Brands</a> | ||
<ul class="sub-menu"> | ||
<li><a href="#">Case</a></li> | ||
<li><a href="#">Claas</a> | ||
<ul class="sub-menu"> | ||
<li><a href="#">Combine</a></li> | ||
<li><a href="#">Tractor</a> | ||
<ul class="sub-menu"> | ||
<li><a href="#">Case Magnum 300 Series</a></li> | ||
<li><a href="#">Case Magnum 200 Series</a></li> | ||
<li><a href="#">Case Magnum 400 Series</a></li> | ||
<li><a href="#">Case Magnum 500 Series</a></li> | ||
<li><a href="#">Case Magnum 600 Series</a></li> | ||
<li><a href="#">Case Magnum 700 Series</a></li> | ||
<li><a href="#">Case Magnum 800 Series</a></li> | ||
<li><a href="#">Case Magnum 900 Series</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
<li><a href="#">John Deere</a></li> | ||
</ul> | ||
</li> | ||
<li class="nav__item"> | ||
<a href="#" class="nav__link">Machine type</a> | ||
</li> | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<div id="contact-modal" class="graph-modal contact-modal"> | ||
<div class="graph-modal__container" role="dialog" aria-modal="true" data-graph-target="contactModal"> | ||
<button class="btn-reset js-modal-close graph-modal__close" aria-label="Закрыть модальное окно"></button> | ||
<div class="graph-modal__content"> | ||
<div class="contact__head"> | ||
<h2 class="h2"> | ||
<img loading="lazy" src="/img/logo-solo.svg" class="image" width="56" height="56" alt="Cemetet"> | ||
<span>ЗАДАЙТЕ ПИТАННЯ</span> | ||
</h2> | ||
<div class="h-sub">Ми постараємося відповісти максимально швидко</div> | ||
</div> | ||
<div class="contact__content"> | ||
<form action="" method="POST" class="contact__form" id="contact__form--modal"> | ||
|
||
<label class="form-label"> | ||
<span>ім’я+прізвище</span> | ||
<input class="input-reset input input-name" type="text" name="name" placeholder="..."> | ||
</label> | ||
<label class="form-label"> | ||
<span>Введите phone</span> | ||
<input class="input-reset input input-tel" type="tel" name="phone" placeholder="..."> | ||
</label> | ||
<label class="form-label"> | ||
<span>Введите email</span> | ||
<input class="input-reset input input-email" type="email" name="email" placeholder="..."> | ||
</label> | ||
<label class="form-label"> | ||
<span>компанія</span> | ||
<input class="input-reset input input-company" type="text" name="company" placeholder="..."> | ||
</label> | ||
<label class="form-label"> | ||
<span>ваше питання</span> | ||
<textarea class="input-reset input input-message" type="text" name="message" placeholder="..."></textarea> | ||
</label> | ||
|
||
<div class="form-btn"> | ||
<button class="btn-reset btn white-bg wiggle-anime" type="submit"> | ||
<span>Надіслати</span> | ||
<img loading="lazy" src="/img/ico-send.svg" class="image ml-8" width="24" height="24" alt="Cametet"> | ||
</button> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.