-
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
solution #3896
base: master
Are you sure you want to change the base?
solution #3896
Conversation
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.
Pls add links to deployed version of your project and deployed test report to the description of the pr (README 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.
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.
src/index.html
Outdated
|
||
|
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.
plz remove all unnecessary spaces
src/index.html
Outdated
<input class="form__input--small" | ||
type="text" | ||
placeholder="Try “Los Angeles”" | ||
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.
<input class="form__input--small" | |
type="text" | |
placeholder="Try “Los Angeles”" | |
data-qa="keypress" | |
> | |
<input | |
class="form__input--small" | |
type="text" | |
placeholder="Try “Los Angeles”" | |
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.
Before sending the review again, try to pass all the tests as it's clear from there that you have mojor difference in your styles
readme.md
Outdated
- [DEMO LINK](https://<your_account>.github.io/layout_search-bar-airbnb/) | ||
- [TEST REPORT LINK](https://<your_account>.github.io/layout_search-bar-airbnb/report/html_report/) | ||
- [DEMO LINK](https://<Mariana-VV>.github.io/layout_search-bar-airbnb/) | ||
- [TEST REPORT LINK](https://<Mariana-VV>.github.io/layout_search-bar-airbnb/report/html_report/) |
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.
- [TEST REPORT LINK](https://<Mariana-VV>.github.io/layout_search-bar-airbnb/report/html_report/) | |
- [TEST REPORT LINK](https://Mariana-VV.github.io/layout_search-bar-airbnb/report/html_report/) |
src/index.html
Outdated
<input | ||
class="form__input--small" | ||
type="text" | ||
placeholder="Try “Los Angeles”" | ||
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.
<input | |
class="form__input--small" | |
type="text" | |
placeholder="Try “Los Angeles”" | |
data-qa="keypress" | |
> | |
<input | |
class="form__input--small" | |
type="text" | |
placeholder="Try “Los Angeles”" | |
data-qa="keypress" | |
> |
src/style.css
Outdated
.form__input--big:focus { | ||
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | ||
} | ||
|
||
.form__input--small:focus { | ||
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | ||
} |
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.
.form__input--big:focus { | |
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | |
} | |
.form__input--small:focus { | |
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | |
} | |
.form__input--big:focus, | |
.form__input--small:focus { | |
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | |
} |
src/style.css
Outdated
.form__input--big:hover { | ||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.form__input--small:hover { | ||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); | ||
} |
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.
same here
src/style.css
Outdated
color: #3D4E61; | ||
font-family: Avenir, sans-serif; | ||
src: url(../src/fonts/Avenir.ttc); | ||
font-size: 14px; |
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.
src/style.css
Outdated
.form__input--big { | ||
display: block; | ||
width: 100%; | ||
border-radius: 4px; | ||
border: 1px solid #E1E7ED; | ||
background: #FFF; | ||
padding: 27px 63px; | ||
|
||
box-shadow: 0 1px 7px 0 rgba(61, 78, 97, 0.10); | ||
|
||
} | ||
|
||
.form__input--small { | ||
display: block; | ||
width: 100%; | ||
|
||
border-radius: 4px; | ||
border: 1px solid #E1E7ED; | ||
background: #FFF; | ||
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.10); | ||
|
||
padding:12px 32px; | ||
} |
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.
create some general class form__input
and move all duplicate styles there
src/style.css
Outdated
.form__icon--big { | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
position: absolute; | ||
left: 27px; | ||
top: 24px; | ||
width: 19px; | ||
height: 19px; | ||
|
||
} | ||
|
||
.form__icon--small { | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
position: absolute; | ||
left: 14px; | ||
top: 14px; | ||
width: 11px; | ||
height: 11px; |
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.
make it everywhere
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.
src/style.css
Outdated
position: relative; | ||
margin: 20px 8px 10px; | ||
padding: 0; |
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.
position: relative; | |
margin: 20px 8px 10px; | |
padding: 0; | |
position: relative; | |
margin: 20px 8px 10px; | |
padding: 0; |
src/style.css
Outdated
display: block; | ||
width: 100%; | ||
border-radius: 4px; | ||
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.
It is a good practice to make all colors variable
src/style.css
Outdated
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; |
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.
Combine it with background property
src/style.css
Outdated
font-family: Avenir, sans-serif; | ||
src: url(../src/fonts/Avenir.ttc); | ||
font-size: 14px; | ||
font-style: normal; |
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.
Remove redundant default styles
font-style: normal; |
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
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.
src/index.html
Outdated
placeholder="Try “Los Angeles”" | ||
> | ||
|
||
<span class="form__icon--big form__icon"></span> |
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.
Span is redundant here, add icon as a background image
<span class="form__icon--big form__icon"></span> |
src/style.css
Outdated
padding: 0; | ||
} | ||
|
||
.form:last-child(){ |
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.
.form:last-child(){ | |
.form:last-child { |
src/style.css
Outdated
src: url(./src/fonts/Avenir.ttc); | ||
font-size: 14px; | ||
font-weight: 300; | ||
line-height: normal; |
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.
Default value, so you can just remove it
line-height: normal; |
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.
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.
Nicely done!
Check height of small input and use the right quotes i explained in fe_chat
Then you can pass all tests
font-size: 16px; | ||
font-weight: 300; | ||
|
||
font-family: Avenir, 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.
set it for html and use inherit value
|
||
.form__input--big::placeholder { | ||
font-size: 16px; | ||
font-weight: 300; |
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.
for small the same, so set it for common form__input
DEMO LINK
TEST REPORT LINK
[ x] Icon implemented using background-image CSS property
[x ] Inputs are written inside of 'form' tag with correctly passed attributes
[ x] All
Typical Mistakes
fromBEM
lesson theory are checked.[x ] Code follows all the Code Style Rules ❗️