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

made header, waiting for feedback #6192

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

Conversation

denysherych
Copy link

@denysherych denysherych commented Mar 2, 2025

I am not sure how to do exact same size of the elements as it is on figma muckup

  • 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 ❗️
  • The Google Fonts Configuration follows requirements.
    alt text

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 most of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Font Configuration: The task requires using only the Roboto font with specific settings. Currently, the Exo 2 font is included, which is not required. Please remove it to comply with the task requirements.

  2. HTML Syntax: The link tag for fonts.gstatic.com is missing a closing tag. This is important for ensuring proper HTML syntax.

These issues are critical as they directly impact the core requirements of the task. Once these are resolved, your code will be in great shape! Keep up the good work, and feel free 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
Comment on lines 5 to 6
<link rel="preconnect" href="https://fonts.gstatic.com"
crossorigin="anonymous">

Choose a reason for hiding this comment

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

The link tag for fonts.gstatic.com is missing a closing tag. It should be self-closing like this: <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />.

src/index.html Outdated
<a class="menu-link" href="index.html">Samsung</a>
</li>
<li>
<a class="menu-link"href="index.html">Smartphones</a>

Choose a reason for hiding this comment

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

There is a missing space between class="menu-link" and href="index.html". Adding a space will improve readability and maintain consistency with other anchor tags.

src/style.css Outdated
body {
font-family: Roboto , sans-serif;

Choose a reason for hiding this comment

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

There is an extra space before the comma in the font-family property. It should be font-family: Roboto, sans-serif; to ensure proper font fallback.

src/style.css Outdated
font-weight: 500;
font-size: 15px;
font-style: normal;
font-variation-settings:"wdth" 100;

Choose a reason for hiding this comment

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

There should be a space after the colon in font-variation-settings:"wdth" 100;. It should be font-variation-settings: "wdth" 100; for consistency and readability.

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 the previous issues! 🎉 Your code now correctly includes only the Roboto font with the specified settings, and the HTML syntax has been fixed. The .stylelintrc.json and index.html files are well-configured and meet the task requirements.

However, there's a minor issue with the font-variation-settings property in your style.css file. The Roboto font is not a variable font with a width axis, so the value 'wdth' 10 might not be appropriate. Consider removing or adjusting this property to ensure proper font rendering.

Overall, your implementation is correct, and the task requirements are met. This decision is made to help you move forward with your learning. Please review the comments to improve your code, and remember to address any critical issues in the future to avoid similar problems. Keep up the good work and continue learning from your experiences! 🚀

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

font-weight: 500;
font-size: 12px;
font-style: normal;
font-variation-settings: 'wdth' 10;

Choose a reason for hiding this comment

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

The font-variation-settings property is used for variable fonts to adjust specific axes. The value 'wdth' 10 might not be appropriate for the Roboto font, as it is not a variable font with a width axis. Consider removing or adjusting this property.

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job 👍
Let's improve your code

Comment on lines +30 to +31
- [DEMO LINK](https://denysherych.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://denysherych.github.io/layout_moyo-header/report/html_report/)

Choose a reason for hiding this comment

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

Add these links to the PR description
image

@@ -17,6 +31,88 @@
/>
</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.

Suggested change
<header>
<header class="header">

@@ -17,6 +31,88 @@
/>
</head>
<body>
<h1>Moyo header</h1>
<header>
<div class="menu">

Choose a reason for hiding this comment

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

This wrapper is redundant

Suggested change
<div class="menu">

Comment on lines +45 to +46
</a>
<nav class="nav">

Choose a reason for hiding this comment

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

Suggested change
</a>
<nav class="nav">
</a>
<nav class="nav">

Comment on lines +55 to +56
</li>
<li class="nav-item">

Choose a reason for hiding this comment

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

Add the blank line between the links

Suggested change
</li>
<li class="nav-item">
</li>
<li class="nav-item">

max-height: 40px;
}

header {

Choose a reason for hiding this comment

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

Use only class selector

background-color: white;
align-items: center;
justify-content: space-between;
margin: 0 50px;

Choose a reason for hiding this comment

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

Use padding for the horizontal indents and move it to the header

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