-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
commit message #4613
base: master
Are you sure you want to change the base?
commit message #4613
Conversation
Humenyuk1991
commented
Nov 25, 2024
- DEMO LINK
- TEST REPORT LINK
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! 😊 While you've made a great effort, there are a few critical issues that need to be addressed to meet the core requirements of the task:
-
Font Usage: The task specifies using
@font-face
for fonts, but the current implementation uses Google Fonts forRoboto
. This needs to be corrected to align with the task requirements. -
HTML Structure: The
data-qa
attribute is incorrectly set. It should bekeypress
for the input in the big search form, but it's currently set tohover
in the small search form. -
CSS Class Naming: The class names
search-input--big
andsearch-input--small
do not follow BEM naming conventions, which is a requirement. -
Image Usage: The task specifies using images from
src/images
, but an external image URL is used for the background image. This needs to be corrected. -
File Structure: Incorrect file paths for fonts and images may cause loading issues. Ensure that these resources are correctly referenced.
These issues are critical as they affect the core requirements and functionality of the task. Please address these points, and feel free to reach out if you need any help. Keep up the great work, and I'm confident you'll nail it! 🚀
✨ 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/style.css
Outdated
box-sizing: border-box; | ||
transition: all 0.3s ease; | ||
box-shadow: 0 4px 4px 0 #00000040; | ||
gap: 20px; |
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 gap
property is used here, but it doesn't apply to non-flex or non-grid containers. Consider removing it or applying it to a parent element that uses flex or grid layout.
src/style.css
Outdated
padding-bottom: 26px; | ||
width: 100%; | ||
height: 70px; | ||
top: 71px; |
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 top
and left
properties are used here, but they will only have an effect if the element is positioned (e.g., relative, absolute, fixed). Ensure that the .search-input--big
class or its parent has a positioning context.
src/style.css
Outdated
margin-top: 20px; | ||
width: 100%; | ||
height: 42px; | ||
top: 403px; |
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.
Similar to the previous comment, the top
and left
properties require a positioning context. Ensure that the .search-input--small
class or its parent is positioned.
src/style.css
Outdated
top: 283px; | ||
left: 48px; | ||
gap: 20px; | ||
opacity: 1px; |
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 opacity
property should not have a unit. It should be a value between 0 and 1. Consider changing opacity: 1px;
to opacity: 1;
.
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.
Review Summary
Great effort on your submission! 🎉 While your code is on the right track, there are a few critical issues that need to be addressed to fully meet the task requirements:
-
Font Usage:
- The
Roboto
font should be included using@font-face
, similar toAvenir
. Ensure all fonts are defined this way. - The
src
attribute in the@font-face
rule should use a relative path to the font file within the project directory.
- The
-
HTML Structure:
- The
data-qa
attribute for the small search form is incorrectly set tohover
. It should besmall
.
- The
-
File Paths:
- Ensure all file paths, including those for fonts and stylesheets, are relative and correctly point to the files within your project directory.
- The
background-image
URL in your CSS should also be a relative path. - The
href
attribute for thepreconnect
link should be a URL to a domain, not a local path.
-
CSS Class Naming:
- Your use of BEM naming conventions for class names like
search__input--big
andsearch__input--small
is correct. Keep this consistency across all class names.
- Your use of BEM naming conventions for class names like
These adjustments are crucial for the functionality and deployment of your project. Addressing these issues will enhance your code quality and ensure it meets the task requirements. Keep up the good work and continue learning from these experiences. Your progress is important, and tackling these challenges will only make you a better developer. 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
src/index.html
Outdated
@@ -1,6 +1,19 @@ | |||
<!doctype html> | |||
<html lang="en"> | |||
<head> | |||
<link | |||
rel="preconnect" | |||
href="D:\projects\layout_search-bar-airbnb\src\fonts" |
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 preconnect
link is pointing to a local file path. This should be a URL to a domain you want to preconnect to, not a local path.
src/index.html
Outdated
/> | ||
<link | ||
rel="preconnect" | ||
href="D:\projects\layout_search-bar-airbnb\src\fonts" |
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 preconnect
link is pointing to a local file path. This should be a URL to a domain you want to preconnect to, not a local path.
src/index.html
Outdated
crossorigin="anonymous" | ||
/> | ||
<link | ||
href="D:\projects\layout_search-bar-airbnb\src\fonts" |
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 stylesheet link is pointing to a local file path. Ensure that the path is correct and accessible from the HTML file.
@@ -16,17 +29,31 @@ | |||
href="style.css" |
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 stylesheet link should be a relative path to the CSS file. Ensure that the path is correct and accessible from the HTML file.
<div class="search-panel"> | ||
<form | ||
class="search-form big" | ||
data-qa="keypress" |
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 data-qa
attribute is correctly set to keypress
for the big search form, which aligns with the task requirements.
data-qa="small" | ||
> | ||
<input | ||
class="search__input search__input--small" |
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 class name search__input--small
follows BEM naming conventions, which is correct. Ensure consistency across all class names.
src/style.css
Outdated
/* add styles here */ | ||
@font-face { | ||
font-family: Avenir; | ||
src: url(fonts/Avenir.ttc); |
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 src
attribute in the @font-face
rule should use a relative path to the font file within the project directory. Ensure that the path is correct and accessible from the CSS file.
src/style.css
Outdated
} | ||
|
||
.body { | ||
font-family: Roboto, 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.
The font-family Roboto
is used here, but according to the task requirements, it should be included using @font-face
. Ensure that you define Roboto
using @font-face
if it's not already included.
src/style.css
Outdated
} | ||
|
||
.search__input--big { | ||
background-image: url(images/Search.svg); |
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 background-image
URL should be a relative path to the image within the project directory. Ensure that the path is correct and accessible from the CSS file.
src/style.css
Outdated
} | ||
|
||
.search__input--small { | ||
background-image: url(images/Search.svg); |
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 background-image
URL should be a relative path to the image within the project directory. Ensure that the path is correct and accessible from the CSS file.
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.
- all tests are failed. Try to pass them if you have any difficulties do not hesitate to ask in chat
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.
GJ 👍
A few more suggestions to improve your code
Also, redeploy tests results
src/style.css
Outdated
padding-top: 25px; | ||
padding-left: 62px; | ||
padding-bottom: 26px; |
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.
Do you need top and bottom paddings? Should work without them
src/style.css
Outdated
padding-top: 12px; | ||
font-size: 14px; | ||
padding-left: 34px; | ||
font-weight: 300px; |
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.
font-weight: 300px; | |
font-weight: 300; |
px is wrong unit for font-weight
src/style.css
Outdated
width: 100%; | ||
gap: 20px; | ||
opacity: 1; |
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.
Do you need it here? Seem redundant
src/style.css
Outdated
.search__input:focus { | ||
background-image: url(images/Search.svg), | ||
linear-gradient(180deg, #FFF 0%, #F6F6F7 100%); | ||
border: 1px solid #E1E7ED; |
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.
you've set it by default - redundant here and in :hover
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 work! 🔥
placeholder="Try “Los Angeles“" | ||
/> | ||
<body class="body"> | ||
<div class="search-panel"> |
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.
Redundant wrapper
<div class="search-panel"> |