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

commit message #4613

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

commit message #4613

wants to merge 14 commits into from

Conversation

Humenyuk1991
Copy link

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 a great effort, there are a few critical issues that need to be addressed to meet the core requirements of the task:

  1. Font Usage: The task specifies using @font-face for fonts, but the current implementation uses Google Fonts for Roboto. This needs to be corrected to align with the task requirements.

  2. HTML Structure: The data-qa attribute is incorrectly set. It should be keypress for the input in the big search form, but it's currently set to hover in the small search form.

  3. CSS Class Naming: The class names search-input--big and search-input--small do not follow BEM naming conventions, which is a requirement.

  4. 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.

  5. 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;

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;

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;

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;

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;.

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.



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:

  1. Font Usage:

    • The Roboto font should be included using @font-face, similar to Avenir. 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.
  2. HTML Structure:

    • The data-qa attribute for the small search form is incorrectly set to hover. It should be small.
  3. 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 the preconnect link should be a URL to a domain, not a local path.
  4. CSS Class Naming:

    • Your use of BEM naming conventions for class names like search__input--big and search__input--small is correct. Keep this consistency across all class names.

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"

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"

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"

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"

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"

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"

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);

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;

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);

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);

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.

Copy link

@SanyaBratashchuk SanyaBratashchuk left a comment

Choose a reason for hiding this comment

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

  1. all tests are failed. Try to pass them if you have any difficulties do not hesitate to ask in chat

@TarasHoliuk
Copy link

Now tests result seems outdated:

image

Page:

image

Re-run tests again and redeploy (it will also update test report link).

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 👍
A few more suggestions to improve your code

Also, redeploy tests results

src/style.css Outdated
Comment on lines 41 to 43
padding-top: 25px;
padding-left: 62px;
padding-bottom: 26px;

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;

Choose a reason for hiding this comment

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

Suggested change
font-weight: 300px;
font-weight: 300;

px is wrong unit for font-weight

src/style.css Outdated
Comment on lines 72 to 74
width: 100%;
gap: 20px;
opacity: 1;

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;

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

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! 🔥

placeholder="Try “Los Angeles“"
/>
<body class="body">
<div class="search-panel">

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="search-panel">

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.

5 participants