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

Develop #5611

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

Develop #5611

wants to merge 15 commits into from

Conversation

pat5513
Copy link

@pat5513 pat5513 commented Oct 28, 2024

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 your submission! 🎉 The code meets most of the task requirements and constraints, with only minor issues that don't significantly impact functionality. You've done well with the HTML structure and CSS styling. Just remember to specify units for properties like border-radius to ensure the intended styling is applied. Keep up the good work and happy coding! 😊

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

src/style.css Outdated
Comment on lines 71 to 72
background-color: var(--nav-hover);
border-radius: 50;

Choose a reason for hiding this comment

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

The border-radius property should have a unit specified. It currently has a value of 50, which is likely intended to be 50% to create a rounded effect. Please correct this to ensure the desired styling is applied.

Copy link

@natalia-klonowska natalia-klonowska left a comment

Choose a reason for hiding this comment

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

test's are failing because of this extra spaces between elements
image
to fix it don't use display: inline-block for li (also don't use tag names for styling )
instead use list-style: none; and display: flex; (for nav_links)

@natalia-klonowska
Copy link

image
these tests are failing because you didn't follow this instruction:
image

Copy link

@natalia-klonowska natalia-klonowska left a comment

Choose a reason for hiding this comment

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

Almost done 🚀

src/index.html Outdated
<link
rel="stylesheet"
href="./style.css"
/>
</head>

<body>
<h1>Moyo header</h1>

Choose a reason for hiding this comment

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

you don't need this title ;)

src/style.css Outdated

.header {
display: flex;
height: 60px;

Choose a reason for hiding this comment

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

Requirements: "the height should be set for nav links (not the header), take it from the design"

src/style.css Outdated
.header__logo {
align-self: center;
display: flex;
margin-left: 0;

Choose a reason for hiding this comment

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

don't need to reset margin-left

src/style.css Outdated
Comment on lines 33 to 36
justify-content: space-between;
height: 100%;
align-items: center;
padding-inline-start: 0;

Choose a reason for hiding this comment

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

you don't need all these styles but you should reset default margins for ul
image

src/style.css Outdated
Comment on lines 41 to 42
align-items: center;
height: 100%;

Choose a reason for hiding this comment

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

don't need align-items and it will be enough to add height only for link

src/style.css Outdated
Comment on lines 85 to 86
.is-active::after,
.nav_link:active::after {

Choose a reason for hiding this comment

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

pseudo-element should be added only for link with is-active class so you can delete selector .nav_link:active::after

src/style.css Outdated
Comment on lines 69 to 79
.is-active:link {
color: var(--link-on);
text-decoration: none;
font-size: 12px;
text-transform: uppercase;
align-items: center;
display: flex;
height: 100%;
margin-left: 0;
position: relative;
}

Choose a reason for hiding this comment

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

you don't need all of these styles. remember that element has also nav_link class so you don't need to repeat styles that are added there

src/style.css Outdated
height: 100%;
}

.nav_link:link {

Choose a reason for hiding this comment

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

you can just style nav__link without :link pseudo-class. also you don't need to style every state just hover ;)

Copy link

@Zibi95 Zibi95 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! You’re almost done. There are just a few small things to fix.

src/style.css Outdated

.is-active {
color: var(--link-on);
margin-left: 0;
Copy link

Choose a reason for hiding this comment

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

reset of margin with is-active is bad. You should use :first-child pseudo class fro this

}

.is-active {
color: var(--link-on);
Copy link

Choose a reason for hiding this comment

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

This color is not applied to the active link because .nav_link:visited has higher specificity. You have to increase specificity of this selector to apply that active color.

Copy link

Choose a reason for hiding this comment

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

It should be

.nav_link.is_active {
}

To be more precise

align-items: center;
}

.nav_list {
Copy link

Choose a reason for hiding this comment

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

ul tag is also applying some left padding. Thats why test's are failing.

src/style.css Outdated
display: block;
border-bottom: 4px solid var(--link-on);
position: absolute;
border-radius: 2px;
Copy link

Choose a reason for hiding this comment

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

I think that border radius on that underline should be higher. In figma i believe its 8px

@pat5513 pat5513 requested a review from Zibi95 December 16, 2024 18:36
Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

One small thing and we are good to go.

}

.is-active {
color: var(--link-on);
Copy link

Choose a reason for hiding this comment

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

It should be

.nav_link.is_active {
}

To be more precise

@pat5513 pat5513 requested a review from Zibi95 December 17, 2024 17:46
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.

4 participants