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

Ready header moyon #5388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

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

Great job on the HTML structure! 🌟 While there are some minor formatting issues and inconsistencies, they don't significantly impact the functionality or security of your code. In the future, pay attention to consistent indentation, attribute formatting, and the use of fallback fonts. Keep up the good work! 👍

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

<header class="header">
<a
class="link"
href="../src/index.html"

Choose a reason for hiding this comment

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

Don't use spaces in <a> tag's href property. The href attribute should not point to the index.html itself as it is unnecessary. If you intend to link to the top of the page, use href="#".

<li class="menu-item">
<a
class="menu-link nav-link link is-active"
href="#Apple"

Choose a reason for hiding this comment

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

Anchor links should start with the # symbol followed by the id of the element you want to link to. The value #Apple should be in lowercase to match the id exactly, use #apple instead.

<a
class="menu-link nav-link link"
data-qa="hover"
href="#Laptops-Computers"

Choose a reason for hiding this comment

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

Don't use spaces in <a> tag's href property. Instead of #Laptops-Computers, use #laptops-computers (all lowercase) to ensure consistency.

Comment on lines +33 to +39
<a
class="link"
href="../src/index.html"
>
<img
src="./images/logo.png"
alt="moyo logo"

Choose a reason for hiding this comment

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

Keep your attributes correctly formatted. When an HTML element has multiple attributes, each attribute should start on a new line with 2-space indentation related to the tag.

Comment on lines +45 to +50
<a
class="menu-link nav-link link is-active"
href="#Apple"
>
Apple
</a>

Choose a reason for hiding this comment

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

Keep your attributes correctly formatted as you did in lines 33-39. Each attribute should start on a new line with 2-space indentation.

Comment on lines +1 to +9
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin-top: 0;
margin-bottom: 0;

Choose a reason for hiding this comment

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

Be consistent with your vertical margins (Add only top or only bottom margin, but not both). It's best to pick one direction (either top or bottom) for vertical margins to prevent issues with margin collapsing and to maintain consistency throughout the stylesheet.

Comment on lines +12 to +16
ul,
ol {
padding-left: 0;
margin-top: 0;
margin-bottom: 0;

Choose a reason for hiding this comment

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

Similar to the previous comment, be consistent with your vertical margins for lists. Choose either top or bottom margin to apply to your elements.

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.

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, 'font-family: Roboto, Arial, sans-serif;' ensures that if 'Roboto' is not available, the browser will try to use 'Arial' before falling back to the default 'sans-serif' font.

Comment on lines +49 to +55
.header {
padding-top: 10px;
padding-bottom: 10px;
margin-right: 50px;
margin-left: 50px;
display: flex;
justify-content: space-between;

Choose a reason for hiding this comment

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

Don't fix container size (if there is no such a requirement). In this case, setting explicit margins might not be necessary if you want the container to be sized by its content. If there's no requirement for fixed margins, consider using padding within the container or setting max-width instead.

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Great work! Check the font size. It doesn't match the Figma

.nav-link:active::after {
position: absolute;
left: 0;
bottom: -18px;

Choose a reason for hiding this comment

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

Suggested change
bottom: -18px;
bottom: 0;

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Great work!

  1. Consider removing default body margins
Screenshot 2024-09-19 at 15 46 13 2) Consider removing header paddings Screenshot 2024-09-19 at 15 46 25 3) The link height should be 60px. The link with active class should have the blue color and the `:after` (blue underscore) Screenshot 2024-09-19 at 15 46 55 4) The font size is too large

<ul class="menu list">
<li class="menu-item">
<a
class="menu-link nav-link link is-active"

Choose a reason for hiding this comment

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

why do you need so many classes

Suggested change
class="menu-link nav-link link is-active"
class="nav-link is-active"

</li>
<li class="menu-item">
<a
class="menu-link nav-link link"

Choose a reason for hiding this comment

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

Suggested change
class="menu-link nav-link link"
class="nav-link"

Comment on lines +49 to +53
.header {
padding-top: 10px;
padding-bottom: 10px;
margin-right: 50px;
margin-left: 50px;

Choose a reason for hiding this comment

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

Suggested change
.header {
padding-top: 10px;
padding-bottom: 10px;
margin-right: 50px;
margin-left: 50px;
.header {
padding: 0 50px;

better to use padding here instead of a margin
padding is applied inside the element, whereas margins affect the space outside the element.


.menu {
display: flex;
gap: 20px;

Choose a reason for hiding this comment

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

image

<ul class="menu list">
<li class="menu-item">
<a
class="menu-link nav-link link is-active"

Choose a reason for hiding this comment

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

if the element has an is-active class then this element should have that line and a blue color
image

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

DEMO LINK looks good.
Tests maybe cached and wasn't updated.

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.

5 participants