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

add solution #4740

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

add solution #4740

wants to merge 2 commits into from

Conversation

MartaKurdylo
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 task! 😊 While your solution meets many of the requirements, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Font Files: Ensure that the font files specified in the @font-face rules are correctly placed in the fonts directory. This is crucial for the fonts to load properly.

  2. Search Icon: Verify that the path to the Search.svg image is correct and that the image exists in the specified directory. This will ensure the search icon appears as expected.

  3. Placeholder Text: The placeholder text for the input fields should be distinct if they are meant to serve different purposes. Consider differentiating the placeholder text to reflect the intended use of each search bar.

  4. Data-QA Attributes: The task description requires the implementation of two search bars with specific data-qa attributes for testing purposes. Ensure that these attributes are correctly set and used in your testing framework.

Please address these issues to ensure full compliance with the task requirements. Once these are resolved, we can proceed with approval. Keep up the great work, and don't hesitate 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.

Comment on lines +16 to +38
<div class="search-container">
<form
class="search-bar search--big"
data-qa="big"
>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
class="search-bar search--small"
data-qa="small"
>
<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
</form>
</div>

Choose a reason for hiding this comment

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

The task description requires the implementation of two search bars with specific data-qa attributes for testing purposes. Ensure that these attributes are correctly set and used in your testing framework.

Comment on lines +21 to +25
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

Choose a reason for hiding this comment

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

The placeholder text for the input fields should be distinct if they are meant to serve different purposes. Consider differentiating the placeholder text to reflect the intended use of each search bar.

Comment on lines +32 to +36
<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>

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, ensure that the placeholder text is distinct if the search bars are intended for different functionalities.

src/style.css Outdated
Comment on lines 1 to 20
@font-face {
font-family: Avenir;
src: url(fonts/Avenir-Book.ttf);
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: Avenir;
src: url(fonts/Avenir-Heavy.ttf);
font-weight: 900;
font-style: normal;
}

@font-face {
font-family: Avenir;
src: url(fonts/Avenir.ttc);
font-weight: 300;
font-style: normal;
}

Choose a reason for hiding this comment

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

Ensure that the font files specified in the @font-face rules are correctly placed in the fonts directory. This is crucial for the fonts to load properly.

src/style.css Outdated

.search-bar::before {
content: '';
background-image: url('../src/images/Search.svg');

Choose a reason for hiding this comment

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

Verify that the path to the Search.svg image is correct and that the image exists in the specified directory. This will ensure the search icon appears as expected.

Comment on lines +86 to +92
.search-bar input {
flex: 1;
border: none;
outline: none;
background-color: #fff;
padding-left: 50px;
}

Choose a reason for hiding this comment

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

The padding-left for the input fields is set to accommodate the search icon. Ensure that this padding aligns well with the icon's position for both search bar sizes.

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 some of the previous issues! 🎉 While there are still a few points to improve, such as ensuring the font files (Avenir-Book.ttf, Avenir-Heavy.ttf, Avenir.ttc) are correctly placed in the fonts directory and verifying the path to the Search.svg image, your progress is commendable. Additionally, make sure the placeholder text for the search bars is distinct to meet the task requirements. Remember, these adjustments are crucial for the functionality and user experience of your project. Keep up the good work, and use this opportunity to refine your skills further! 🚀

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

<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"

Choose a reason for hiding this comment

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

The placeholder text for this input field is the same as the one in the other search bar. Consider differentiating the placeholder text to reflect the intended use of each search bar, as per the task requirements.

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"

Choose a reason for hiding this comment

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

The placeholder text for this input field is identical to the one in the other search bar. Ensure that the placeholder text is distinct for each search bar to meet the task requirements.

/* add styles here */
@font-face {
font-family: Avenir;
src: url('fonts/Avenir-Book.ttf');

Choose a reason for hiding this comment

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

Ensure that the 'Avenir-Book.ttf' font file is correctly placed in the 'fonts' directory. This is crucial for the font to load properly.


@font-face {
font-family: Avenir;
src: url('fonts/Avenir-Heavy.ttf');

Choose a reason for hiding this comment

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

Ensure that the 'Avenir-Heavy.ttf' font file is correctly placed in the 'fonts' directory. This is crucial for the font to load properly.


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

Ensure that the 'Avenir.ttc' font file is correctly placed in the 'fonts' directory. This is crucial for the font to load properly.


.search-bar::before {
content: '';
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.

Verify that the path to the 'Search.svg' image is correct and that the image exists in the 'images' directory. This will ensure the search icon appears as expected.

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.

2 participants