2. mesto - is a simple project, like an private foto library - with an author and his favorite places (fotos). At this point you can only change the name and description of autors job. Mesto looks good as fullsized an also as mobile versions. Mesto has JavaScript actions, such as opening modal windows, changeable descriptions and rendering pictures of main gallery from array
-
So maket was get from figma
-
Pictures - get from Yandex.Practicum (or Praktikum?)
How to open and close popup in JS?
let popup = document.querySelector(".popup");
let editButton = document.querySelector(".profile__edit-button");
let closePopapButton = document.querySelector(".popup__button-close");
function openPopap() {
popup.classList.add("popup_opened");
}
function closePopap() {
popup.classList.remove("popup_opened");
}
editButton.addEventListener("click", openPopap);
closePopapButton.addEventListener("click", closePopap);-
You can find simple exaples of how to make gallery from array with a function of adding your own cards (by link)
-
There is a some new JS features that i should make in this project before i end my sprint and have some sleep