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

MOJO header #6114

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

MOJO header #6114

wants to merge 6 commits into from

Conversation

ivsasha
Copy link

@ivsasha ivsasha commented Feb 11, 2025

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 you've made great progress, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Use of * Selector: The use of the universal selector * for resetting styles can impact performance and is against the task requirements. Consider using a more targeted approach for resetting styles.

  2. Flex Gap Property: The gap property is not supported in the testing environment. Please replace it with margin for spacing in the .menu ul selector.

  3. CSS Variable for Blue Color: The task requires using a CSS variable for the blue color. Currently, the color #00acdc is used directly. Please define and use a CSS variable for this color.

  4. Header Height: The task specifies setting a specific height for the header, but it seems padding is used instead. Ensure the header height aligns with the task requirements.

  5. Image Source Path: The logo image path should be src/images as per the task requirements, but it's currently set to ./images/logo.png. Please correct this path.

These changes are essential to meet the core requirements of the task. Once these are addressed, we can move forward with approval. Keep up the great work, and don't hesitate to reach out if you need any help! 🌟

✨ 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
<h1>Moyo header</h1>
<header class="header">
<div class="logo">
<a href="#">

Choose a reason for hiding this comment

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

Consider adding a more descriptive href attribute for the logo link to improve accessibility and SEO. Currently, it is set to #, which doesn't provide meaningful navigation.

src/index.html Outdated Show resolved Hide resolved
src/index.html Show resolved Hide resolved
src/index.html Show resolved Hide resolved
src/style.css Outdated
align-items: center;
}

.menu .blue {

Choose a reason for hiding this comment

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

The .blue class is defined here, which is used in the HTML file. Ensure that this color choice aligns with your overall design theme.

src/style.css Outdated
color: #00acdc;
}

.menu .is-active::after {

Choose a reason for hiding this comment

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

The .is-active class is styled with a pseudo-element for an underline effect. Verify that this effect is visually appealing and consistent with your design intentions.

@ivsasha ivsasha closed this Feb 11, 2025
@ivsasha ivsasha reopened this Feb 11, 2025
Copy link
Author

@ivsasha ivsasha left a comment

Choose a reason for hiding this comment

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

change css

@ivsasha
Copy link
Author

ivsasha commented Feb 11, 2025

що не так?

Copy link
Author

@ivsasha ivsasha left a comment

Choose a reason for hiding this comment

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

change css style

@ivsasha ivsasha closed this Feb 12, 2025
@ivsasha ivsasha reopened this Feb 12, 2025
Copy link
Author

@ivsasha ivsasha left a comment

Choose a reason for hiding this comment

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

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.

Make sure to deploy your solution

Copy link

@TarasHoliuk TarasHoliuk left a comment

Choose a reason for hiding this comment

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

GJ 👍 Left a few comments to improve your code a bit

src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated
align-items: center;
}

.menu ul {

Choose a reason for hiding this comment

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

same - add classes to ul, li, a and add styles to them directly, using class selector

Copy link
Author

Choose a reason for hiding this comment

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

I don't think it's appropriate to add classes to li and a because there are a lot of them

src/style.css Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
@ivsasha ivsasha requested a review from TarasHoliuk February 12, 2025 19:46
src/style.css Outdated
margin: 0;
}

.menu li {

Choose a reason for hiding this comment

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

image

Choose a reason for hiding this comment

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

give some class to li and a tags

Copy link
Author

Choose a reason for hiding this comment

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

i have to add classes to each li element and to each a element?

src/style.css Outdated
position: absolute;
left: 50%;
bottom: -0.2px;
width: 35px;

Choose a reason for hiding this comment

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

Suggested change
width: 35px;
width: 100%;

src/style.css Outdated
content: '';
position: absolute;
left: 50%;
bottom: -0.2px;

Choose a reason for hiding this comment

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

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

src/style.css Outdated
.menu .is-active::after {
content: '';
position: absolute;
left: 50%;

Choose a reason for hiding this comment

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

Suggested change
left: 50%;
left: 0;

src/style.css Outdated
height: 4px;
border-radius: 8px;
background-color: #00acdc;
transform: translateX(-50%);

Choose a reason for hiding this comment

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

Suggested change
transform: translateX(-50%);

@ivsasha ivsasha requested a review from etojeDenys February 12, 2025 20:16
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

</head>
<body>
<h1>Moyo header</h1>
<header class="header">
<div class="logo">

Choose a reason for hiding this comment

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

Redundant wrapper

Suggested change
<div class="logo">

src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
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.

Great work! 🔥

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