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

Develop 1 #5353

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Develop 1 #5353

wants to merge 3 commits into from

Conversation

AndriiKasiian
Copy link

  • DEMO LINK
  • TEST REPORT LINK
    • Header height is set in 1 place (for the links)
  • Content is vertically centered (for any header height)
  • [x ] CSS is used to show all letters in Uppercase (don't type them in HTML)
  • [x ] Logo is an image wrapped with a link
  • [x ] CSS Variable is used for a blue color
  • [ x] Pseudo-element is used for a blue line below the active link
  • [ x] Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Hey there! Great work on your Pull Request. 👍 I noticed a few important things that need your attention. Please make sure to use 'min-width' or 'max-width' in your media queries for better responsiveness, and avoid using tag names for styling. Also, ensure that container sizes are not fixed unless required, and always provide fallback fonts. Lastly, keep an eye on the character limit for lines and the use of BEM naming conventions for your classes. Let's make these changes for a cleaner and more efficient code! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +26 to +33
<a
class="logo"
href="index.html"
>
<img
src="/src/images/logo.png"
alt="moyo"
/>

Choose a reason for hiding this comment

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

The href attribute in the tag should not contain spaces. Consider changing href="index.html" to href="#home" or another appropriate anchor link.

>
<img
src="/src/images/logo.png"
alt="moyo"

Choose a reason for hiding this comment

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

The alt attribute for the logo image should be more descriptive about the content. For example, alt="Moyo Logo".

Comment on lines +35 to +102
<nav class="nav">
<ul class="ul__nav">
<li class="li__nav">
<a
href="#section-1"
class="nav__link is-active"
>
APPLE
</a>
</li>
<li class="li__nav">
<a
href="#section-2"
class="nav__link"
>
SAMSUNG
</a>
</li>
<li class="li__nav">
<a
href="#section-3"
class="nav__link"
>
SMARTPHONES
</a>
</li>
<li class="li__nav">
<a
href="#section-4"
data-qa="hover"
class="nav__link laptops"
>
Laptops & Computers
</a>
</li>
<li class="li__nav">
<a
href="#section-5"
class="nav__link"
>
Gadgets
</a>
</li>
<li class="li__nav">
<a
href="#section-6"
class="nav__link"
>
Tablets
</a>
</li>
<li class="li__nav">
<a
href="#section-7"
class="nav__link"
>
Photo
</a>
</li>
<li class="li__nav">
<a
href="#section-8"
class="nav__link"
>
Video
</a>
</li>
</ul>

Choose a reason for hiding this comment

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

Class names should represent the meaning of the content, not the styles or tag names. For example, ul__nav should be nav__list, and li__nav should be nav__item.

href="#section-4"
data-qa="hover"
class="nav__link laptops"
>

Choose a reason for hiding this comment

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

The class laptops does not follow the BEM naming convention. It should be something like nav__link--laptops if it's a modifier.

data-qa="hover"
class="nav__link laptops"
>
Laptops & Computers

Choose a reason for hiding this comment

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

The text inside the tag is too long and exceeds the maximum of 80 characters per line. Consider breaking it into multiple lines.

@@ -1,3 +1,106 @@
html {
margin: 0;
font-family: 'Roboto ', sans-serif;

Choose a reason for hiding this comment

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

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For instance, you could specify a generic font family as a fallback like 'sans-serif'.

display: flex;
position: relative;
align-items: center;
width: 1024px;

Choose a reason for hiding this comment

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

Don't fix container size (if there is no such a requirement). Let the content size dictate it to avoid overflow or accidental scroll bar.

Comment on lines +39 to +43
.ul__nav {
list-style: none;
display: flex;
margin: 0;
padding: 0;

Choose a reason for hiding this comment

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

Don't use tag names for styling (except 'html' and 'body'). Style all elements using '.class'. Instead of .ul__nav, use a class that describes the role or content of the list, such as .nav__list.

Comment on lines +46 to +50
.li__nav {
display: flex;
margin-right: 20px;

position: relative;

Choose a reason for hiding this comment

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

Don't use tag names for styling (except 'html' and 'body'). Style all elements using '.class'. Instead of .li__nav, use a class that describes the role or content of the list item, such as .nav__item.

Comment on lines +102 to +105
@media (width: 1200px) {
.container {
width: 1200px;
}

Choose a reason for hiding this comment

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

Media queries should use 'min-width' or 'max-width' rather than 'width' for better responsiveness across different screen sizes.

Copy link

@GUSILLUS GUSILLUS left a comment

Choose a reason for hiding this comment

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

GJ!

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.

3 participants