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

popup #7

Merged
merged 7 commits into from
Jul 27, 2022
Merged

popup #7

merged 7 commits into from
Jul 27, 2022

Conversation

maximmorenko
Copy link
Contributor

@maximmorenko maximmorenko commented Jul 25, 2022

task-popup

Demo |
Code base

Copy link
Member

@OleksiyRudenko OleksiyRudenko left a 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 написано, что нужно изменить в этом шаблоне. Возможно я неправильно понял, если не в этом файле, то где мне оставить ссылки на проект и на репо?
Copy link
Collaborator

@A-Ostrovnyy A-Ostrovnyy left a 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>
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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?

Copy link
Contributor Author

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>
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

да, я прекрасно понимаю, что альт должен описывать картинку) но ведь там два десятка иконок, мне показалось что на учебном проекте не принципиально давать каждой своё описание. или нет)? sorry for russians

Copy link
Collaborator

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>
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

причины нет) предполагалось что что-то будет в будущем

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

не совсем понял) должна появиться пустая 74я строка?

Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

пустую строку добавил еще вчера, но она не отображается в коммите.
image
image
image
что делать? где я не прав?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

By default, Github hides the last empty line.
If you see this icon at the end of your file that means you forget to add an empty line, and you should add it.
image

align-items: center;
background-color: var(--colors-bg);
}

Copy link
Collaborator

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)

добавил альт, навел порядок
исправил скрытие чекбокса, навел порядок
@OleksiyRudenko OleksiyRudenko self-requested a review July 26, 2022 10:57
Copy link
Collaborator

@A-Ostrovnyy A-Ostrovnyy left a 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;
Copy link
Collaborator

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;
}

Copy link
Collaborator

@A-Ostrovnyy A-Ostrovnyy left a 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>
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

я их прозевал) извините
image

@A-Ostrovnyy
Copy link
Collaborator

If you want to discuss something in voice we can schedule a call in discord and discuss what you want.

теперь, кажется все альты пустые) и строка 68 тоже есть
@A-Ostrovnyy
Copy link
Collaborator

Well done!
For future Pull Requests: after pushing changes click the re-request button to inform the reviewer about your changes
image

@A-Ostrovnyy A-Ostrovnyy merged commit 9dca70e into kottans:main Jul 27, 2022
madmaxWMFU pushed a commit that referenced this pull request Aug 31, 2022
* 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
merowing added a commit to merowing/frontend-2022-homeworks that referenced this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants