Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventpage content #8

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open

Eventpage content #8

wants to merge 40 commits into from

Conversation

kataamb
Copy link
Collaborator

@kataamb kataamb commented Oct 30, 2024

Добавила:
-отдельный модуль для fetch-запросов на бэк;
-страницу мероприятия

margin: 5px 0;
}

.event_actionsDiv {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше не использовать названия тега в селекторе ("div", "span" и т д) так как если вам понадобится поменять тег вы вряд ли полезете в css менять название класса, и это может сбивать с толку. Просто actions тут достаточно

margin: 10px;
}

.event__leftPart {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Названия leftPart, rightPart не подходят для элемента
Снимок экрана 2024-10-30 в 16 36 12
Рекомендую к прочтению: https://ru.bem.info/methodology/quick-start/


renderEvent(event){
console.log(event);
console.log(event.title);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давайте отладочную инфу убирать в мр) можно настроить правило в линтере чтобы не пушить лишние console.log

/** render event */
this.renderEvent(event);
//this.leftPart = document.createElement('leftPart');
//this.rightPart = document.createElement('rightPart');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Закоменченный код тоже лучше в main не вливать

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants