Skip to content

Stereojim/mesto

Repository files navigation

1. Project: mesto

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?)

  • page on Figma

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);
  1. You can find simple exaples of how to make gallery from array with a function of adding your own cards (by link)

  2. There is a some new JS features that i should make in this project before i end my sprint and have some sleep

About

Проект: Место

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published