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

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

Develop #5711

wants to merge 8 commits into from

Conversation

Julia-Pushko
Copy link

  • DEMO LINK

  • TEST REPORT LINK

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

  • [X ] 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! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. Specifically, the repeated use of placeholder URLs in the href attributes is a significant issue, as it affects the functionality of the navigation links. Additionally, there are inconsistencies between the HTML and CSS class names, and incorrect CSS selectors that need to be corrected to ensure the styles are applied as intended. Please make these changes, and feel free to reach out if you need any help! Keep up the great work! 🚀

✨ 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 Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
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 effort on your project! 🎉 While your code is on the right track, there are a few critical areas that need attention to enhance both functionality and styling:

  1. Placeholder URLs: The href attributes in your navigation links are still using placeholder URLs (index.html). These should be updated to reflect the actual sections or pages they are intended to link to, such as 'video', 'photo', 'tablets', 'gadgets', 'laptops & computers', 'smartphones', 'samsung', and 'apple'.

  2. CSS Selectors: Avoid using the universal selector * to reset margins and paddings due to performance concerns. Instead, consider using more specific selectors.

  3. Class Name Consistency: Ensure that the class names in your HTML match those defined in your CSS file. For example, the class blue is used in the HTML but not defined in the CSS. This inconsistency can lead to styling issues.

  4. Semantic Tags: Make sure to use semantic HTML tags like <header>, <nav>, <ul>, <li>, and <a> to improve the structure and accessibility of your webpage.

  5. CSS Styling: Use class selectors for styling instead of tag names, except for html and body. This will help maintain a clean and efficient stylesheet.

  6. CSS Fallback Fonts: Include fallback fonts in your font-family declarations to ensure consistent typography across different browsers and devices.

  7. Vertical Margins: Maintain consistency with vertical margins by adding only top or bottom margins, but not both, to avoid layout issues.

  8. Active Link Styling: Ensure that the a.is-active::after selector is applied correctly in the HTML to style active links as intended.

By addressing these points, you will improve the overall quality and functionality of your project. Remember, learning from these observations will help you grow as a developer. Keep up the good work and continue refining your skills! 🚀

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

src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated

<nav>
<ul class="nav__list">
<li class="nav nav__item">

Choose a reason for hiding this comment

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

There is a class name inconsistency here. Ensure that the class names used in the HTML match those defined in the CSS file to avoid styling issues.

src/style.css Outdated
/* top: 10px; */
}

a.blue {

Choose a reason for hiding this comment

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

The class a.blue is used in the HTML, but ensure that it is consistently applied and matches the intended design. Verify that all elements using this class are styled as expected.

color: var(--main-color);
}

a.is-active::after {

Choose a reason for hiding this comment

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

The a.is-active::after selector is used to style active links. Ensure that this class is applied correctly in the HTML to the intended elements to achieve the desired effect.

src/index.html Outdated
<body>
<h1>Moyo header</h1>
<div class="container">

Choose a reason for hiding this comment

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

Container (additional wrapper is redundant here)

src/index.html Outdated

<nav>
<ul class="nav__list">
<li class="nav nav__item">

Choose a reason for hiding this comment

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

check BEM rules - you can't use nav class here

set nav class to nav tag and remove from items

src/index.html Outdated
<ul class="nav__list">
<li class="nav nav__item">
<a
class="nav__link is-active blue"

Choose a reason for hiding this comment

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

do not add a separate blue class - you already have is-active for it

src/style.css Outdated
Comment on lines 3 to 4
margin: 0;
padding: 0;

Choose a reason for hiding this comment

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

do not reset margin and padding in * selector
Do it for the list of tags you really need

src/style.css Outdated

/* width: 100%; */
margin-bottom: 20px;
width: 1024px;

Choose a reason for hiding this comment

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

do not set width here (in figma you just have examples on how it looks on different screen sizes)

src/style.css Outdated
.nav__list {
display: flex;
align-items: center;
margin: 20px;

Choose a reason for hiding this comment

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

Do you need it? - redundant

Set correct height for each link

src/style.css Outdated
text-transform: uppercase;
justify-content: center;
margin-right: 20px;
padding-bottom: 23px;

Choose a reason for hiding this comment

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

set correct height instead

.nav__item {
text-transform: uppercase;
justify-content: center;
margin-right: 20px;

Choose a reason for hiding this comment

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

the last item shouldn't have margin-right (read about :last-child) - it's said in description

src/style.css Outdated
.nav__link {
display: block;
text-decoration: none;
padding: 22px 0 0;

Choose a reason for hiding this comment

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

set correct height instead

src/style.css Outdated
content: '';
position: relative;
display: block;
top: 12px;

Choose a reason for hiding this comment

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

it will be easier to place it using bottom

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.

Hi, there is no styles on the demo, you need to make a deploy again and check it after on the demo link
image

src/style.css Outdated
Comment on lines 1 to 4
/* * {
box-sizing: border-box;
margin: 0;
padding: 0;

Choose a reason for hiding this comment

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

Remove comments

Suggested change
/* * {
box-sizing: border-box;
margin: 0;
padding: 0;

src/style.css Outdated
body {
margin: 0;
font-family: Roboto, sans-serif, Arial, Helvetica;
display: flex;

Choose a reason for hiding this comment

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

Redundant

Suggested change
display: flex;

src/style.css Outdated
Comment on lines 24 to 26
/* width: 100%; */
margin-bottom: 20px;
width: 1024px;

Choose a reason for hiding this comment

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

Suggested change
/* width: 100%; */
margin-bottom: 20px;
width: 1024px;
width: 100%;

src/style.css Outdated
/* display: flex; */
}

a.is-active {

Choose a reason for hiding this comment

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

Fix it everywhere

Suggested change
a.is-active {
.is-active {

src/style.css Outdated

a.is-active::after {
content: '';
position: relative;

Choose a reason for hiding this comment

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

Use absolute position here for this line

src/style.css Outdated
position: relative;
display: block;
bottom: -17px;
width: 100%; /* Ширина лінії дорівнює ширині тексту */

Choose a reason for hiding this comment

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

Suggested change
width: 100%; /* Ширина лінії дорівнює ширині тексту */
width: 100%;

Copy link
Author

Choose a reason for hiding this comment

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

i did all changes and everything broke at all :)))

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.

Hi, the demo link hasn't styles, if you need some help feel free in the fe_chat
image

src/style.css Outdated
Comment on lines 18 to 19
/* margin-bottom: 20px;
width: 1024px; */

Choose a reason for hiding this comment

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

Remove all comments

Suggested change
/* margin-bottom: 20px;
width: 1024px; */

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.

Good start.
Try to pass all tests.
Check comments - they can help to fix tests.
If will have any questions - feel free to ask in chat.

And I see such behavior in demo link.

Screen.Recording.2024-12-19.at.14.21.16.mov

align-items: center;
list-style: none;
justify-content: center;
}

Choose a reason for hiding this comment

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

ul has default vertical margins and left paddins. you need to reset them

height: 15px;
color: #000;
justify-content: center;
align-items: center;

Choose a reason for hiding this comment

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

nav link should be on full width of height. add vettical padings and line-heitght which should make height 60px

color: var(--main-color);
}

a.is-active::after {

Choose a reason for hiding this comment

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

line under first link not visible. add position relative for .is-active class.

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

please, don't hesitate to ask in the chat for some help how to pass tests

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.

6 participants