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

Hooli-style Popup #355

Merged
merged 2 commits into from
Aug 31, 2022
Merged

Hooli-style Popup #355

merged 2 commits into from
Aug 31, 2022

Conversation

Nik3264
Copy link
Contributor

@Nik3264 Nik3264 commented Aug 29, 2022

Hooli-style Popup

Demo |
Code base

The code is submitted in a dedicated feature branch.

Only code files are submitted.

Please, review.

@github-actions
Copy link

Hey!

Congratulations on your PR! 😎😎😎

Let's do some self-checks to fix most common issues and to make some improvements to the code before reviewers put their hands on the code.

Go through the requirements/most common mistakes listed/linked below and fix the code as appropriate.

If you have any questions to requirements/common mistakes feel free asking them here or in Students' chat.

When you genuinely believe you are done put a comment stating that you have completed self-checks and fixed code accordingly.

Also, be aware, that if you would silently ignore this recommendation, a mentor can think that you are still working on fixes. And your PR will not be reviewed. 😒

Please, make sure you haven't made common mistakes.

Universal recommendations:

  • Give variables and functions meaningful names. Avoid generic names like item, element, key, object, array or their variations. Exception: helper functions that are specifically and intentionally designed to be multipurpose.
  • Function names should start with a verb as they denote actions; variables are normally nouns; boolean variables/functions start with is, does, has etc; variable containing multiple entities and functions returning lists contain entity name in plural form.
  • Have consistent code style and formatting. Employ Prettier to do all dirty work for you.
  • Use common sense or seek for an advice whenever requirements look ambiguous or unclear.

Also take a note of the requirements above and follow them in all your future projects.

By the way, you may proceed to the next task before this one is reviewed and merged.

Sincerely yours,
Submissions Kottachecker 😺

@Nik3264
Copy link
Contributor Author

Nik3264 commented Aug 30, 2022

I went through the code again and completed the self test. There are no fixes for me. I really appreciate your time. I would be glad to receive information about my mistakes in order to avoid them.

@HannaSyn HannaSyn self-assigned this Aug 30, 2022
Copy link
Contributor

@HannaSyn HannaSyn left a comment

Choose a reason for hiding this comment

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

Great work! I really like it!
Check please your work on phone - for some reason menu icon floats to bottom on phones
And see my comments below to improve your code


<header class="header">
<div class="header_logo">
<img src="./img/logo_u.png" alt="logo">
Copy link
Contributor

Choose a reason for hiding this comment

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

For icons it's better set an empty alt attribute, read more here

Comment on lines 21 to 23
<nav class="menu">
<a href="#">Mail</a>
<a href="#">Images</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, use ul>li>a fot lists of links

</span>
</label>

<div class="popup_menu">
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, use ul>li>a fot lists of links here too

animation-duration: 4s;
animation-name: text;
}
.sun, .green {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.sun, .green {
.sun,
.green {

Please, write each class name from new line

padding-bottom: 20px;
font-size: 1.1em;
}
a{
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, avoid styling by tags link
use class names instead

font-size: 0.8em;
text-align: center;
}
.header_menu_input:checked ~ .popup_menu{
Copy link
Contributor

Choose a reason for hiding this comment

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

Add padding: 10px; to make it more pretty

@Nik3264
Copy link
Contributor Author

Nik3264 commented Aug 31, 2022

I made changes. Pushed files according to instructions. How to update a pull request? I don't quite understand yet...
Thanks a lot

@Nik3264 Nik3264 requested a review from HannaSyn August 31, 2022 14:59
@HannaSyn
Copy link
Contributor

You updated it by commiting and pushing changes 🙂
Well done!

@HannaSyn HannaSyn merged commit 2275e4e into kottans:main Aug 31, 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.

4 participants