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

MOYO Header #5850

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

MOYO Header #5850

wants to merge 8 commits into from

Conversation

ATkachenkoA
Copy link

@ATkachenkoA ATkachenkoA commented Dec 21, 2024

  • DEMO LINK

  • TEST REPORT LINK

  • Header height is set in 1 place (for the links)

  • Content is vertically centered (for any header height)

  • CSS is used to show all letters in Uppercase (don't type them in HTML)

  • Logo is an image wrapped with a link

  • CSS Variable is used for a blue color

  • Pseudo-element is used for a blue line below the active link

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

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

  1. CSS Variable for Blue Color: You need to define and use a CSS variable for the blue color instead of using #00acdc directly. This will enhance maintainability and consistency across your styles.

  2. Flex Gap Property: The task specifies using margin instead of the gap property for flexbox indents. Please adjust the .header__container and .nav__list classes accordingly.

  3. HTML Formatting: Ensure your HTML follows the specified formatting guidelines, such as using 2 spaces for indentation.

  4. Dynamic Active Link Styling: The is-active class should be applied dynamically to reflect the active state accurately. Ensure this is implemented correctly in your HTML.

  5. Navigation Links: The href attributes for navigation links are set to '#', which is not valid. Consider using meaningful URLs or handling the click events with JavaScript if these are placeholders.

Please address these issues to ensure your code fully complies with the task requirements. 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 have any questions! 🚀

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

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link is-active"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

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

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/index.html Outdated
<li class="nav__item">
<a
class="nav__link"
href="#"

Choose a reason for hiding this comment

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

The href attribute for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.

src/style.css Outdated
Comment on lines 75 to 77
.nav__link:nth-child(4) {
color: #00acdc;
}

Choose a reason for hiding this comment

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

The selector .nav__link:nth-child(4) is used to style the fourth navigation link. This approach is fragile because it relies on the order of elements in the HTML. Consider using a more specific class or data attribute to target this element.

src/style.css Outdated
Comment on lines 54 to 56
a.is-active {
position: relative;
color: #00acdc;

Choose a reason for hiding this comment

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

The class is-active is used to style active links. Ensure that this class is applied dynamically to the correct element in the HTML to reflect the active state accurately.

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 job on addressing several issues from the previous review! 🎉 While there are still a few critical points that need attention, your progress is commendable. Here are the key areas to focus on:

  1. CSS Variable for Blue Color: You've defined a CSS variable --header-color for the blue color #00acdc, which is great. However, ensure that this variable is used consistently throughout your code, replacing any direct use of #00acdc.

  2. Flex Gap Property: The task specifies using margin instead of the gap property for flexbox indents. Please adjust the .header__container and .nav__list classes to use margin for spacing.

  3. Dynamic Active Link Styling: The is-active class should be applied dynamically to reflect the active state accurately. Ensure this class is applied based on the current active page.

Your decision to approve this pull request is to help you move forward with your learning journey. Please review the comments to improve your code. Addressing these issues will enhance your code's functionality and maintainability. 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! ✨

<ul class="nav__list">
<li class="nav__item">
<a
class="nav__link is-active"

Choose a reason for hiding this comment

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

The is-active class is applied statically to the 'Apple' link. Ensure this class is applied dynamically based on the current active page to reflect the active state accurately.

src/style.css Outdated
justify-content: space-between;
background-color: white;
flex-wrap: wrap;
gap: 60px;

Choose a reason for hiding this comment

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

The task specifies using margin instead of the gap property for flexbox indents. Please replace the gap property with appropriate margin settings.

src/style.css Outdated
.nav__list {
display: flex;
flex-wrap: wrap;
gap: 20px;

Choose a reason for hiding this comment

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

The task specifies using margin instead of the gap property for flexbox indents. Please replace the gap property with appropriate margin settings.

src/style.css Outdated
}

.nav__link:nth-child(4) {
color: #00acdc;

Choose a reason for hiding this comment

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

Replace the direct use of #00acdc with the CSS variable var(--header-color) for consistency and maintainability.

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