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

Task solution(develop) #6105

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

Conversation

aholubko
Copy link

@aholubko aholubko commented Feb 9, 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! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. The href attribute for the "Laptops & Computers" link contains a space, which is not valid in URLs and affects the functionality. Additionally, the CSS file specifies the font family incorrectly, which does not meet the task requirements. Please make these changes to ensure your code meets the core requirements. Once these are resolved, your work will be in great shape! Keep up the great effort! 🚀

✨ 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
<li><a href="#samsung">SAMSUNG</a></li>
<li><a href="#smartphones">SMARTPHONES</a></li>
<li data-qa="hover">
<a href="#laptops & Computers">LAPTOP & COMPUTERS</a>

Choose a reason for hiding this comment

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

The 'href' attribute value '#laptops & Computers' contains a space, which is not valid in URLs. Consider replacing the space with '%20' or using a hyphen or underscore.

src/index.html Outdated
>
<img
src="./images/logo.png"
alt="logo"

Choose a reason for hiding this comment

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

Consider providing a more descriptive 'alt' attribute for the logo image to improve accessibility. For example, 'Company Logo' or 'Moyo Logo'.

font-optical-sizing: auto;
font-weight: 500;
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.

The 'font-variation-settings' property may not be supported in all browsers. Consider providing a fallback font style for better cross-browser compatibility.

src/style.css Outdated

.header {
font-family: Roboto, serif;
font-optical-sizing: auto;

Choose a reason for hiding this comment

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

The 'font-optical-sizing' property may not be supported in all browsers. Consider providing a fallback font size or style for better cross-browser compatibility.

src/style.css Outdated
font-variation-settings: 'wdth' 100;
color: black;
height: 60px;
font-size: 12.3px;

Choose a reason for hiding this comment

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

The 'font-size' is set to 12.3px, which is an uncommon value. Consider using a standard font size like 12px or 14px for consistency.

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! 🎉 The HTML and CSS files have been updated to meet the task requirements. The href attribute for the "Laptops & Computers" link is now correctly formatted, and the font family in the CSS is specified as "Roboto" with appropriate fallbacks.

While the code meets the task requirements, remember to review the comments to further improve your code. Addressing any critical issues in the future will help you avoid similar problems and enhance your learning experience. Keep up the good work and continue to learn from your mistakes! 🚀

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

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

  1. The default color for first link should be blue
image
  1. The height for links should be 60px
image
  1. Remove these margins and add padding right for the header
image

src/index.html Outdated
Comment on lines 34 to 39
<nav class="nav">
<ul>
<li>
<a
href="#apple"
class="is-active"

Choose a reason for hiding this comment

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

Add classes everywhere

Suggested change
<nav class="nav">
<ul>
<li>
<a
href="#apple"
class="is-active"
<nav class="nav">
<ul class="nav__list">
<li class="nav__item">
<a
href="#apple"
class="nav__link is-active"

src/index.html Outdated
APPLE
</a>
</li>
<li><a href="#samsung">SAMSUNG</a></li>

Choose a reason for hiding this comment

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

Fix code styles and add classes everywhere

Suggested change
<li><a href="#samsung">SAMSUNG</a></li>
<li class="nav__item">
<a href="#samsung" class="nav__link">SAMSUNG</a>
</li>

src/style.css Outdated
position: relative;
}

.nav a.is-active::after {

Choose a reason for hiding this comment

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

Suggested change
.nav a.is-active::after {
.is-active::after {

src/style.css Outdated
}

.nav a:hover {
color: #00acdc;

Choose a reason for hiding this comment

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

Create a variable for repeated color and use it everywhere

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, you need to make a deploy and check after the demo
image

src/style.css Outdated
margin-left: 50px;
}

.nav a:hover {

Choose a reason for hiding this comment

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

Suggested change
.nav a:hover {
.nav__link:hover {

Copy link

@vadiimvooo vadiimvooo left a comment

Choose a reason for hiding this comment

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

Seems like there are still problems with your deploy. Please feel free to ask for help in fe_chat.

align-items: center;
margin: 0;
padding: 0;
height: 60px;

Choose a reason for hiding this comment

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

This height should be setted on link instead of list.

display: flex;
width: 40px;
height: 40px;
margin-left: 50px;

Choose a reason for hiding this comment

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

horizontal margin should be placed on header as padding

@aholubko aholubko requested a review from vadiimvooo February 12, 2025 20:59
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 still not fixed pls feel free in the fe_chat for help

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