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 task solution #4496

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

Conversation

YaroslavaSemyda
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • Icon implemented using background-image CSS property

  • Inputs are written inside of 'form' tag with correctly passed attributes

  • [ X] All Typical Mistakes from BEM lesson theory are checked.

  • [X ] 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.

Great job on the Pull Request! There are a few minor issues like class naming and responsive design considerations, but none of these critically impact the functionality or security of your code. Remember to use meaningful class names and keep an eye on responsive design principles for future projects. Keep up the good work! 👍💻

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

src/index.html Outdated
<html lang="en">
<html
lang="en"
class="paige"

Choose a reason for hiding this comment

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

The class attribute value 'paige' does not represent the meaning of the content, it seems to represent a style or tag name. Consider using a class name that reflects the content or purpose of the element.

src/index.html Outdated
Comment on lines 34 to 40
<input
type="text"
id="big-search"
placeholder="Try 'Los Angeles'"
class="search-bar__input 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 class name 'big' does not represent the meaning of the content, it seems to represent a style. Use class names that reflect the content or function rather than the appearance.

src/index.html Outdated
Comment on lines 53 to 58
<input
type="text"
id="small-search"
placeholder="Try 'Los Angeles'"
class="search-bar__input small"
/>

Choose a reason for hiding this comment

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

Similarly to the previous input, the class name 'small' is not descriptive of the content or function. Consider using a more meaningful class name.

}

.paige__body {
font-family: Avenir, sans-serif;

Choose a reason for hiding this comment

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

Consider adding a fallback font-family. While 'Avenir' is specified, it's a good practice to provide a generic family in case the primary font is not available, for example, 'font-family: Avenir, sans-serif;'.

src/style.css Outdated
font-style: normal;
}

.paige {

Choose a reason for hiding this comment

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

The class name '.paige' seems to be a typo or not meaningful. Ensure class names represent the meaning of the content or the role of the element within your design.

src/style.css Outdated
background-size: 19px 19px;
}

.search-bar__input.big {

Choose a reason for hiding this comment

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

Setting a fixed 'min-width' can cause content overflow on smaller screens or devices with lower resolution. Consider using responsive units like percentages or viewport units, or employ media queries to handle different screen sizes.

src/style.css Outdated
background-position: left 26px center;
}

.search-bar__input.small {

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, setting a fixed 'min-width' here can cause layout issues on smaller screens. It's better to use responsive design techniques to ensure the input field scales appropriately.

src/style.css Outdated
.search-bar__input:focus {
background-color: #fff;
border-radius: 3px;
font-family: Avenir-Heavy, sans-serif;

Choose a reason for hiding this comment

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

The font-family 'Avenir-Heavy' is not defined in any @font-face rule and may not be loaded correctly. You might want to use 'Avenir' and adjust the 'font-weight' property instead.

}

.paige {
margin: 0;

Choose a reason for hiding this comment

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

Be consistent with your margins. It's recommended to add only top or bottom margins but not both to avoid potential margin collapse issues.

src/index.html Outdated
<html lang="en">
<html
lang="en"
class="paige"

Choose a reason for hiding this comment

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

Suggested change
class="paige"
class="page"

typo

src/index.html Outdated
type="text"
id="small-search"
placeholder="Try 'Los Angeles'"
class="search-bar__input small"

Choose a reason for hiding this comment

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

Suggested change
class="search-bar__input small"
class="search-bar__input search-bar__input--small"

small is not a separate class - make it a BEM modificator

src/style.css Outdated
}

.search-bar__input.big {
min-width: 900px;

Choose a reason for hiding this comment

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

It seems it's redundant, I guess you can safely remove it

width: 100%;
}

.search-bar__input {

Choose a reason for hiding this comment

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

Note that placeholder styles might be overwritten with browser default styles:

image

Use ::placeholder pseudo-class to define styles for placeholder (you can use inherit value for some properties)
https://devtoolstips.org/tips/en/inspect-user-agent-dom/

}

.search-bar__input.small:focus {
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.

src/style.css Outdated
.search-bar__input:focus {
background-color: #fff;
border-radius: 3px;
font-family: Avenir-Heavy, sans-serif;

Choose a reason for hiding this comment

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

Suggested change
font-family: Avenir-Heavy, sans-serif;
font-family: Avenir, sans-serif;

image

Copy link

@vadiimvooo vadiimvooo 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, but you have to pass all tests. Please feel free to ask for help in fe_chat.

font-weight: 700;
font-style: normal;
}

Choose a reason for hiding this comment

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

Suggested change
body {
margin: 0 8px;
}

Comment on lines +33 to +35
.search-bar {
width: 100%;
}

Choose a reason for hiding this comment

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

Suggested change
.search-bar {
width: 100%;
}
.search-bar {
width: 100%;
margin-top: 20px;
}

src/style.css Outdated
Comment on lines 37 to 48
.search-bar__input {
width: 100%;
outline: none;
text-align: left;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
color: #3d4e61;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1);
border-radius: 4px;
background-size: 19px 19px;
}

Choose a reason for hiding this comment

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

Suggested change
.search-bar__input {
width: 100%;
outline: none;
text-align: left;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
color: #3d4e61;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1);
border-radius: 4px;
background-size: 19px 19px;
}
.search-bar__input {
box-sizing: border-box;
width: 100%;
outline: none;
text-align: left;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
color: #3d4e61;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1);
border-radius: 4px;
background-size: 19px 19px;
}

src/style.css Outdated
}

.search-bar__input.search-bar__input--big {
margin-top: 20px;

Choose a reason for hiding this comment

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

Suggested change
margin-top: 20px;

src/style.css Outdated
font-weight: 400;
line-height: 20px;
background-size: 11px 11px;
margin-top: 20px;

Choose a reason for hiding this comment

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

Suggested change
margin-top: 20px;

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

Looks good

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