-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
popup #7
popup #7
Conversation
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.
@maximmorenko please undo changes to .github/pull_request_template.md
. You were supposed to change the Pull Request initial message body.
Извините, но я не понимаю что я не так сделал. В пункте 5 написано, что нужно изменить в этом шаблоне. Возможно я неправильно понял, если не в этом файле, то где мне оставить ссылки на проект и на репо?
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.
Awesome disign!
But some issues must be fixed.
Also if interesting and you have some time check your work in firefox)
<header> | ||
<nav class="nav"> | ||
<div class="nav-item logo"> | ||
<a href="#"><img src="./assets/icons/001_logo.png" alt="logo"></a> |
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.
Logically this logo looks like not a part of navigation what you think about that?
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.
I think that the logo can be a link to the main page, which means it is a navigation element) but if it's a problem, then I can remove it
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.
In 99.999% of cases, logo must be a link and leads to the home page. Logo is a reusable component, better keep it outside navigation. Also if we will have another block of links (login/signup etc.) should we add him into this navigation, or keep hin as an independent component?
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 class="wrapper-popup wrapper-popup-hidden"> | ||
<ul class="main-content"> | ||
<li class="popup-item"><a href="#" ><img src="./assets/icons/sport/01.png" alt="a"></a></li> |
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.
Read more about alt
attribute, sorry for russians but it's a good article
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.
да, я прекрасно понимаю, что альт должен описывать картинку) но ведь там два десятка иконок, мне показалось что на учебном проекте не принципиально давать каждой своё описание. или нет)? sorry for russians
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.
According to an article, you must fill alt
attribute for content images. the icon is a decorative image(not content) and for him, alt
must be empty. Read more carefully.
<main></main> | ||
<footer></footer> | ||
</body> | ||
</html> |
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.
Add empty lines at the end of files. Reason
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.
причины нет) предполагалось что что-то будет в будущем
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.
I mean word Reason is a link to page with explanation why you should add an empty line at the end of each file.)
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.
не совсем понял) должна появиться пустая 74я строка?
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.
Yes, add the line.
An empty line at the end of the file avoids the wrong concatenation of files.
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.
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.
align-items: center; | ||
background-color: var(--colors-bg); | ||
} | ||
|
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.
Try to keep your code style cleaner: space between code blocks, no unused lines inside code block(in CSS)
добавил альт, навел порядок
исправил скрытие чекбокса, навел порядок
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.
Good work!
Some issues need to fix)
@@ -151,6 +149,7 @@ ul { | |||
cursor: pointer; | |||
/* прячем чекбокс */ | |||
-webkit-appearance: none; | |||
-moz-appearance: none; |
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.
When you use CSS properties with vendor prefixes is considered good practice to write properties with vendor prefixes and at the last line property without. Example:
.thing {
-webkit-appearance: value;
-moz-appearance: value;
appearance: value;
}
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.
Good progress!
</div> | ||
</li> | ||
<li class="nav-item"> | ||
<a href="#"><img src="./assets/icons/03_baseline_email.png" alt="email"></a> |
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.
Why do you leave the filled alt
attribute for these icons but remove it for icons inside popup?
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.
If you want to discuss something in voice we can schedule a call in discord and discuss what you want. |
теперь, кажется все альты пустые) и строка 68 тоже есть
* make 'side-menu' task * refactor: fix hover effects * refactor: get rid of comments, make js file works in strickt mode * refactor: fix typo in 'use strict', change searching elements by id to searching by class name, make variables constanst where it is appropriate, get rid of css ctyles in js file * refactor: give element more meaningfull names, created new content elements insted of updating old ones * refactor: make content be generated, not updated; don't generate an empy link and img after reset content. * refactor: use array.find() instead of array.findIndex() * refactor: make small css fixes to make better element's positioning and adaptivity
task-popup
Demo |
Code base