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

added Momyo header in html and css #5814

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

Conversation

ochepurna
Copy link

@ochepurna ochepurna commented Dec 12, 2024

  • DEMO LINK
  • TEST REPORT LINK
  • Header height is set in 1 place (for the links)
  • 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! 😊 However, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. HTML Issues:

    • The href attributes in the <a> tags are not valid URLs. They should be updated to valid paths or URLs, such as /video or https://example.com/video.
    • The link to the Google Fonts stylesheet is incorrect. Please ensure it points to a valid URL like https://fonts.googleapis.com/css?family=Roboto.
  2. CSS Issues:

    • The padding property in the .header class is incorrectly formatted. Use spaces instead of commas to separate values, e.g., padding: 0 50px;.

These issues impact the functionality and core requirements of the task. Once these are resolved, your code will be in great shape! Keep up the good work, and feel free 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
Comment on lines 18 to 21
<link
rel="stylesheet"
href="https://fonts.google.com/specimen/Roboto"
/>

Choose a reason for hiding this comment

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

The href attribute for the Google Fonts stylesheet is incorrect. It should be a URL pointing to the font resource, such as 'https://fonts.googleapis.com/css?family=Roboto'.

src/index.html Outdated
<h1>Moyo header</h1>
<header class="header">
<a
href="Apple"

Choose a reason for hiding this comment

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

The href attribute 'Apple' is not a valid URL. It should be a valid URL or path, such as '/apple' or 'https://example.com/apple'.

src/index.html Outdated
<ul class="nav__list">
<li>
<a
href="Apple"

Choose a reason for hiding this comment

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

The href attribute 'Apple' is not a valid URL. It should be a valid URL or path, such as '/apple' or 'https://example.com/apple'.

src/index.html Outdated

<li>
<a
href="Samsung"

Choose a reason for hiding this comment

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

The href attribute 'Samsung' is not a valid URL. It should be a valid URL or path, such as '/samsung' or 'https://example.com/samsung'.

src/index.html Outdated

<li>
<a
href="Smartphones"

Choose a reason for hiding this comment

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

The href attribute 'Smartphones' is not a valid URL. It should be a valid URL or path, such as '/smartphones' or 'https://example.com/smartphones'.

src/index.html Outdated

<li>
<a
href="Tablets"

Choose a reason for hiding this comment

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

The href attribute 'Tablets' is not a valid URL. It should be a valid URL or path, such as '/tablets' or 'https://example.com/tablets'.

src/index.html Outdated

<li>
<a
href="Photo"

Choose a reason for hiding this comment

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

The href attribute 'Photo' is not a valid URL. It should be a valid URL or path, such as '/photo' or 'https://example.com/photo'.

src/index.html Outdated

<li>
<a
href="Video"

Choose a reason for hiding this comment

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

The href attribute 'Video' is not a valid URL. It should be a valid URL or path, such as '/video' or 'https://example.com/video'.

@@ -1,3 +1,64 @@
body {
margin: 0;
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.

Ensure that the Roboto font is properly loaded in your HTML file. The current setup in the HTML file does not correctly link to the Google Fonts stylesheet.

src/style.css Outdated
display: flex;
flex-direction: row;
border-style: dotted;
padding: auto, 50px;

Choose a reason for hiding this comment

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

The padding property is incorrectly formatted. Use spaces instead of commas to separate values, e.g., 'padding: 0 50px;'.

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 many of the previous issues! 🎉 Your updates to the HTML and CSS files have significantly improved the code quality. However, there are still a few critical points to consider:

  1. HTML Improvements:

    • Ensure there are no spaces in the href attributes of <a> tags, such as in /laptops & Computers. This is important for proper link functionality.
    • Consider making the alt attribute for images more descriptive than just "Moyo" to enhance accessibility.
  2. CSS Enhancements:

    • You've corrected the padding property in the .header class, which is great! Make sure to use the CSS variable --blue-color consistently across all elements, like in the .link__marked class.
  3. General Considerations:

    • Double-check that all task requirements are met, including using semantic tags and ensuring the header spans the full page width.

Your progress is commendable, and these adjustments will help you refine your skills further. Keep up the good work, and make sure to address these points in future projects to avoid similar issues. This approval is to encourage you to continue learning and improving. 🚀

✨ 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. Fix gap between the border and link, check it on the design
image
  1. The header should stretch to the full width of the browser window.
image
  1. All these links should have the same black color by default, the blue color should only be on hover.
image
  1. Fix this error after click on the links
image

src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated
<li>
<a
href="/apple"
class="nav__link link__marked is-active"

Choose a reason for hiding this comment

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

Suggested change
class="nav__link link__marked is-active"
class="nav__link is-active"

src/style.css Outdated Show resolved Hide resolved
src/style.css Outdated
Comment on lines 11 to 13
display: flex;
flex-direction: row;
border-style: dotted;

Choose a reason for hiding this comment

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

Suggested change
display: flex;
flex-direction: row;
border-style: dotted;
display: flex;
align-items: center;

Comment on lines +14 to +15
padding: 0 50px;
}

Choose a reason for hiding this comment

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

Suggested change
padding: 0 50px;
}
padding: 0 50px;
box-sizing: border-box;
}

src/style.css Outdated
display: flex;
justify-content: flex-end;
list-style-type: none;
padding: 0 50px;

Choose a reason for hiding this comment

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

Suggested change
padding: 0 50px;

src/style.css Outdated
Comment on lines 34 to 36
.link__marked {
color: var(--blue-color);
}

Choose a reason for hiding this comment

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

Suggested change
.link__marked {
color: var(--blue-color);
}

src/style.css Outdated
Comment on lines 45 to 47
[data-qa='hover']:hover {
color: red;
}

Choose a reason for hiding this comment

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

Suggested change
[data-qa='hover']:hover {
color: red;
}

src/style.css Outdated
Comment on lines 41 to 42
display: inline-block;
padding: 10px 50px;

Choose a reason for hiding this comment

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

Suggested change
display: inline-block;
padding: 10px 50px;

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.

lgtm

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