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 #6096

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

moyo header #6096

wants to merge 2 commits into from

Conversation

ZupaFly
Copy link

@ZupaFly ZupaFly commented Feb 6, 2025

❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.

  • 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 pull request! 😊 However, there are a couple of critical issues that need to be addressed before we can approve it:

  1. Font Embedding: The task requires using the Roboto font with only the roman style, medium (500) weight, and normal width. Currently, the index.html file includes multiple weights (300, 400, 500), which does not comply with the requirement. Please adjust the font embedding to meet the specified criteria.

  2. CSS Variable for Blue Color: The task specifies using a CSS variable for the blue color, but this is not implemented in the code. Please add a CSS variable for the blue color to align with the task requirements.

  3. Logo Link Protocol: The 'href' attribute for the logo link is missing the protocol. It should be something like 'http://localhost:8080' to ensure it is a valid URL.

  4. Navigation Links: There are multiple navigation links pointing to the same URL ('https://www.samsung.com/'). Please review these links to ensure they direct users to the correct destinations.

Once these issues are resolved, we can proceed with the approval. Keep up the great work, and feel free to reach out if you have any questions or need further assistance! 🚀

✨ 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

<a
class="link"
href="localhost:8080"

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 logo link is missing the protocol. It should be something like 'http://localhost:8080' to ensure it is a valid URL.

src/index.html Outdated
Comment on lines 49 to 98
href="https://www.samsung.com/"
>
Samsung
</a>
</li>
<li class="nav__item">
<a
class="nav__link"
href="https://www.samsung.com/"
>
Smartphones
</a>
</li>
<li class="nav__item">
<a
class="nav__link"
data-qa="hover"
href="https://www.samsung.com/"
>
Laptops &amp computers
</a>
</li>
<li class="nav__item">
<a
class="nav__link"
href="https://www.samsung.com/"
>
Gadgets
</a>
</li>
<li class="nav__item">
<a
class="nav__link"
href="https://www.samsung.com/"
>
Tablets
</a>
</li>
<li class="nav__item">
<a
class="nav__link"
href="https://www.samsung.com/"
>
Photo
</a>
</li>
<li class="nav__item">
<a
class="nav__link"
href="https://www.samsung.com/"

Choose a reason for hiding this comment

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

Several navigation links have the same 'href' attribute pointing to 'https://www.samsung.com/'. Ensure that each link directs to the intended destination, as having multiple links pointing to the same URL might not be intentional.

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 addressing most of the issues from the previous review! 🎉 Your updates have significantly improved the code, and it now aligns well with the task requirements. Here are some key points and suggestions for further improvement:

  1. Logo Link Protocol: The href attribute for the logo link is currently set to "#". While this is acceptable as a placeholder, it's important to update it to a valid URL, such as http://localhost:8080, to ensure proper functionality in a real-world scenario.

  2. Font Embedding: You've successfully embedded the Roboto font with the correct style, weight, and width. This aligns perfectly with the task requirements.

  3. CSS Variable for Blue Color: The implementation of a CSS variable for the blue color is well-executed, ensuring consistency across your styles.

  4. Navigation Links: The navigation links now point to different URLs, resolving the previous issue of redundancy.

Your code is approved to help you move forward with your learning journey. Please review the comments and address any remaining issues, especially the critical ones, to enhance your skills and avoid similar problems in the future. Keep up the great work and continue learning from your experiences! 🚀

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

<header class="header">
<a
class="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 logo link is set to '#', which is not a valid URL. Please update it to include a protocol, such as 'http://localhost:8080', to ensure it is a valid URL.

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