-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
base: master
Are you sure you want to change the base?
Conversation
ochepurna
commented
Dec 12, 2024
•
edited
Loading
edited
- 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 ❗️
There was a problem hiding this 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:
-
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
orhttps://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
.
- The
-
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;
.
- The
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
<link | ||
rel="stylesheet" | ||
href="https://fonts.google.com/specimen/Roboto" | ||
/> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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;'.
There was a problem hiding this 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:
-
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.
- Ensure there are no spaces in the
-
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.
- You've corrected the
-
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! ✨
There was a problem hiding this 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
- Fix gap between the border and link, check it on the design
- The header should stretch to the full width of the browser window.
- All these links should have the same black color by default, the blue color should only be on hover.
- Fix this error after click on the links
src/index.html
Outdated
<li> | ||
<a | ||
href="/apple" | ||
class="nav__link link__marked is-active" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class="nav__link link__marked is-active" | |
class="nav__link is-active" |
src/style.css
Outdated
display: flex; | ||
flex-direction: row; | ||
border-style: dotted; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display: flex; | |
flex-direction: row; | |
border-style: dotted; | |
display: flex; | |
align-items: center; |
padding: 0 50px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding: 0 50px; |
src/style.css
Outdated
.link__marked { | ||
color: var(--blue-color); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.link__marked { | |
color: var(--blue-color); | |
} |
src/style.css
Outdated
[data-qa='hover']:hover { | ||
color: red; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[data-qa='hover']:hover { | |
color: red; | |
} |
src/style.css
Outdated
display: inline-block; | ||
padding: 10px 50px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display: inline-block; | |
padding: 10px 50px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm