-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
base: master
Are you sure you want to change the base?
add task solution #6090
Conversation
TomasQ789
commented
Feb 5, 2025
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this 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:
-
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. -
CSS Universal Selector: The use of the universal selector
*
for resetting styles can impact performance. Consider using a more targeted approach. -
CSS Fallback Fonts: Ensure that you include fallback fonts for
Roboto
to maintain font consistency if the primary font fails to load. -
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.
-
HTML Class Naming: Class names should be meaningful and indicative of the content rather than styles or tag names.
-
HTML Indentation: Consistent use of 2 spaces for indentation is required for better readability and maintenance.
-
Semantic Tags: Ensure that semantic tags are used correctly, such as placing the logo outside of the
<nav>
. -
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. -
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.
<a | ||
href="/" | ||
class="logo" |
There was a problem hiding this comment.
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.
<a | ||
href="#" | ||
class="Apple is-active" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
<a | ||
href="#" | ||
class="LaptopsComputers" | ||
data-qa="hover" |
There was a problem hiding this comment.
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
@media (max-width: 1024px) { | ||
header { | ||
width: 1024px; | ||
} |
There was a problem hiding this comment.
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
@media (min-width: 1200px) { | ||
header { | ||
width: 1200px; | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
, andli
. 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
, andMoyo1
to more generic names likeproduct-category
orlogo-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
withwidth: 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> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
min-width: 1024px; | ||
max-width: 1200px; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.