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 task solution #6090

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

add task solution #6090

wants to merge 2 commits into from

Conversation

TomasQ789
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 you've made a solid effort, there are several critical issues that need to be addressed before we can approve the pull request. Here are the main points to focus on:

  1. CSS Selector Usage: The use of tag names for styling instead of classes is against the task requirements. Please update your CSS to use .class, :pseudo-class, pseudo-element, and [attribute] selectors.

  2. CSS Universal Selector: The use of the universal selector * for resetting styles can impact performance. Consider using a more targeted approach.

  3. CSS Fallback Fonts: Ensure that you include fallback fonts for Roboto to maintain font consistency if the primary font fails to load.

  4. CSS Variable for Blue Color: The task requires using a CSS variable for the blue color. Please define and use a variable instead of directly using the color code.

  5. HTML Class Naming: Class names should be meaningful and indicative of the content rather than styles or tag names.

  6. HTML Indentation: Consistent use of 2 spaces for indentation is required for better readability and maintenance.

  7. Semantic Tags: Ensure that semantic tags are used correctly, such as placing the logo outside of the <nav>.

  8. Header Width in Media Queries: Avoid setting fixed widths for the header in media queries. Use flexible units like percentages or max-width for better responsiveness.

  9. Missing Files or Content: Ensure that all referenced files, such as images and mockups, are correctly included.

Please address these issues to meet the core requirements of the task. Once these changes are made, we can proceed with the approval. Keep up the great work, and don't hesitate to reach out if you need further guidance! 🌟

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

Comment on lines +29 to +31
<a
href="/"
class="logo"

Choose a reason for hiding this comment

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

Consider adding an aria-label attribute to the anchor tag for better accessibility. This will help screen readers understand the purpose of the link.

Comment on lines +42 to +44
<a
href="#"
class="Apple is-active"

Choose a reason for hiding this comment

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

The class name 'is-active' suggests that this menu item is currently active. Ensure that this class is dynamically updated based on the current page or section to provide accurate context to users.

Copy link
Author

Choose a reason for hiding this comment

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

What exactly do you mean?

src/index.html Outdated
Comment on lines 66 to 69
<a
href="#"
class="LaptopsComputers"
data-qa="hover"

Choose a reason for hiding this comment

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

The data-qa attribute is used for testing purposes. Ensure it is removed or properly managed in production environments to avoid exposing internal testing logic.

src/style.css Outdated
Comment on lines 77 to 80
@media (max-width: 1024px) {
header {
width: 1024px;
}

Choose a reason for hiding this comment

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

The media query sets a fixed width for the header at 1024px. Consider using a percentage or max-width instead to ensure better responsiveness on various screen sizes.

src/style.css Outdated
Comment on lines 83 to 86
@media (min-width: 1200px) {
header {
width: 1200px;
}

Choose a reason for hiding this comment

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

Similarly, the media query for min-width 1200px sets a fixed width for the header. Using a flexible unit like max-width or percentages can improve the layout's adaptability to different screen 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.

Great effort on your submission! 🎉 While there are some areas for improvement, your code is on the right track. Here are a few key points to focus on:

  • CSS Selector Usage: Avoid using tag names for styling like header, nav, and li. Instead, use class selectors to adhere to the task requirements.
  • Class Naming: Ensure class names are meaningful and descriptive of the content, such as changing Apple, Samsung, and Moyo1 to more generic names like product-category or logo-image.
  • HTML Structure: The logo should not be part of the <nav> element. Consider placing it in a separate <div> or <section> for better semantic structure.
  • Responsive Design: Avoid fixed widths in your media queries. Use flexible units like percentages or max-width with width: 100% to enhance responsiveness.
  • File Inclusion: Ensure all referenced files, such as images, are included to avoid missing content.

These improvements will help you enhance your code quality and meet the task requirements more effectively. Keep up the good work, and continue learning from these experiences! 🚀

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

/>
</head>
<body>
<h1>Moyo header</h1>
<header>

Choose a reason for hiding this comment

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

The <header> tag should not contain the logo directly. According to semantic HTML practices, the logo should be placed outside of the <nav> element, possibly within a <div> or <section> to separate it from the navigation.

<header>
<a
href="/"
class="logo"

Choose a reason for hiding this comment

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

The class name logo is appropriate, but ensure that it is styled correctly in your CSS file to meet the design requirements.

aria-label="Logo of the company"
>
<img
class="Moyo1"

Choose a reason for hiding this comment

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

The class name Moyo1 is not meaningful. Class names should be indicative of the content or purpose, not styles or arbitrary names. Consider renaming it to something more descriptive.

<li>
<a
href="#"
class="Apple is-active"

Choose a reason for hiding this comment

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

The class names Apple, Samsung, etc., are not meaningful in terms of content. Class names should reflect the role or purpose of the element, not the specific content. Consider using more generic names like product-category or similar.

<meta
http-equiv="X-UA-Compatible"
content="ie=edge"
<title>Menu</title>

Choose a reason for hiding this comment

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

Ensure that the title of the page is descriptive and relevant to the content. 'Menu' might not be the most descriptive title for the page.

Comment on lines +16 to +17
min-width: 1024px;
max-width: 1200px;

Choose a reason for hiding this comment

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

Avoid using fixed widths like min-width: 1024px and max-width: 1200px for the header. Instead, use flexible units like percentages or max-width with width: 100% to ensure better responsiveness across different screen sizes.

margin-left: 50px;
}

.Moyo1 {

Choose a reason for hiding this comment

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

The class name .Moyo1 is not meaningful. Consider renaming it to something more descriptive, such as .logo-image, to better convey its purpose.

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.

2 participants