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

add moyo header #5858

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

Conversation

AleksandraFrangovska
Copy link

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.


Thank you for your hard work on this project! 😊 While your code meets many of the requirements, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. CSS Reset: Using the universal selector * for resetting margins and paddings can impact performance. It's recommended to use more specific selectors to avoid potential issues.

  2. CSS Variable for Blue Color: The task specifies using a CSS variable for the blue color, but this hasn't been implemented. This is important for maintaining consistency and ease of updates.

  3. Line Height: The line-height is set to an uneven fixed value of 14.06px. Consider using a relative or unitless value for better scalability and consistency.

  4. Font Size: The font-size is set to 12px for the html element. Using relative units like em or rem would improve responsiveness across different devices.

  5. Active Link Styling: The height for the .is-active class is set to 8px, which might not display as intended. Please review this to ensure it aligns with your design.

  6. Accessibility: The alt attribute for the logo image could be more descriptive, such as 'Moyo Company Logo', to improve accessibility.

  7. Navigation Links: The href attribute is set to #, which is a placeholder. Consider replacing it with actual URLs or handling navigation with JavaScript if it's for a single-page application.

Please address these issues to ensure the code meets the task requirements and functions as intended. Keep up the great work, and I look forward to seeing the improvements! 🚀

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

<header class="header">
<div class="container">
<a
href="#"

Choose a reason for hiding this comment

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

The 'href' attribute is set to '#', which is typically used as a placeholder. Consider replacing it with actual URLs or using JavaScript to handle navigation if this is intended for a single-page application.

class="logo"
>
<img
src="images/logo.png"

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 is 'moyo-logo'. While this is functional, consider making it more descriptive to improve accessibility, such as 'Moyo Company Logo'.

src/style.css Outdated
.is-active {
position: relative;
color: #00acdc;
height: 8px;

Choose a reason for hiding this comment

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

The height property for the '.is-active' class is set to 8px, which seems incorrect as it might not display the element as intended. Consider reviewing this value to ensure it aligns with your design requirements.

src/style.css Outdated

html {
font-family: Roboto, sans-serif;
font-size: 12px;

Choose a reason for hiding this comment

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

The font-size is set to 12px for the 'html' element. This might not be responsive across different devices. Consider using relative units like 'em' or 'rem' for better scalability.

src/style.css Outdated
html {
font-family: Roboto, sans-serif;
font-size: 12px;
line-height: 14.06px;

Choose a reason for hiding this comment

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

The line-height is set to a fixed value of 14.06px. Using a relative unit or a unitless value might provide better scalability and consistency across different font sizes.

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.

Review Summary

Great job on making significant improvements to your code! 🎉 Here are a few points to consider for future enhancements:

  1. CSS Reset: Using the universal selector * for resetting box-sizing can impact performance. It's recommended to use more specific selectors to avoid potential issues.

  2. Navigation Links: The href attributes for the navigation links are placeholders (#). If this is intended for a single-page application, consider handling navigation with JavaScript or replacing them with actual URLs.

  3. Accessibility: The alt attribute for the logo image contains an unnecessary single quote at the beginning and could be more descriptive. Consider changing it to something like Moyo Company Logo.

Your efforts are commendable, and the decision to approve is to help you move forward with your learning. Please review the comments to improve your code, and ensure that critical issues are addressed in future projects to avoid similar problems. Keep up the great work and continue learning from these experiences! 🚀

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

>
<img
src="images/logo.png"
alt="'Moyo Company Logo"

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 contains an unnecessary single quote at the beginning and could be more descriptive. Consider changing it to something like Moyo Company Logo.

src/index.html Outdated
Comment on lines 35 to 104
href="#"
class="logo"
>
<img
src="images/logo.png"
alt="'Moyo Company Logo"
/>
</a>
<nav class="nav">
<ul>
<li class="nav_item">
<a
href="#"
class="nav_link is-active apple"
>
Apple
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Samsung
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Smartphones
</a>
</li>
<li class="nav_item">
<a
href="#"
data-qa="hover"
class="nav_link lc"
>
Laptops & Computers
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Gadgets
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Tablets
</a>
</li>
<li class="nav_item">
<a
href="#"
class="nav_link"
>
Photo
</a>
</li>
<li class="nav_item">
<a
href="#"

Choose a reason for hiding this comment

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

The href attributes for the navigation links are set to #, which is a placeholder. Consider replacing them with actual URLs or handling navigation with JavaScript if it's for a single-page application.

Comment on lines +5 to +7
* {
box-sizing: border-box;
}

Choose a reason for hiding this comment

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

Using the universal selector * for resetting box-sizing can impact performance. Consider using more specific selectors to avoid potential issues.

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

please, don't hesitate to ask for some help in the chat how to pass all tests

src/index.html Outdated
<li class="nav_item">
<a
href="#"
class="nav_link is-active apple"

Choose a reason for hiding this comment

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

Suggested change
class="nav_link is-active apple"
class="nav_link is-active"

you don't need this class

src/index.html Outdated
<a
href="#"
data-qa="hover"
class="nav_link lc"

Choose a reason for hiding this comment

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

Suggested change
class="nav_link lc"
class="nav_link"

same here

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