-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
margin: 5px 0; | ||
} | ||
|
||
.event_actionsDiv { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Названия leftPart, rightPart не подходят для элемента
Рекомендую к прочтению: https://ru.bem.info/methodology/quick-start/
|
||
renderEvent(event){ | ||
console.log(event); | ||
console.log(event.title); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Закоменченный код тоже лучше в main не вливать
…mail-ru/2024_2_Komanda7 into eventpage_content
…2024_2_Komanda7 into eventpage_content
Добавила:
-отдельный модуль для fetch-запросов на бэк;
-страницу мероприятия