-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 the challenger search-bar airbnb #4604
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,31 @@ | |
/> | ||
</head> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
|
||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<div class="inputs"> | ||
<form | ||
class="inputs__form" | ||
action="index.html" | ||
data-qa="keypress" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
> | ||
<input | ||
class="inputs__bigInput" | ||
type="text" | ||
data-qa="big" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
</form> | ||
<form | ||
class="inputs__form" | ||
action="index.html" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
data-qa="small" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
> | ||
<input | ||
class="inputs__smallInput" | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
</form> | ||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,90 @@ | ||
/* add styles here */ | ||
/* stylelint-disable font-family-no-missing-generic-family-keyword */ | ||
/* stylelint-disable font-family-name-quotes */ | ||
@font-face { | ||
font-family: 'Avenir'; | ||
src: url(fonts/Avenir.ttc); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Avenir'; | ||
src: url(fonts/Avenir-Heavy.ttf); | ||
font-weight: 900; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Avenir'; | ||
src: url(fonts/Avenir-Book.ttf); | ||
font-weight: 400; | ||
} | ||
|
||
html { | ||
font-family: 'Avenir'; | ||
font-weight: 300; | ||
} | ||
|
||
.inputs { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
margin-top: 20px; | ||
} | ||
|
||
.inputs__bigInput { | ||
width: 100%; | ||
font-family: 'Avenir'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the |
||
font-size: 16px; | ||
line-height: 150%; | ||
height: 70px; | ||
color: #3d4e61; | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
background-size: 19px 19px; | ||
border: 1px solid #e1e7ed; | ||
border-radius: 4px; | ||
box-sizing: border-box; | ||
background-position: 25px; | ||
padding: 0 0 0 62px; | ||
outline: none; | ||
} | ||
|
||
.inputs__bigInput:hover { | ||
box-shadow: 0 4px 4px 0 #00000040; | ||
} | ||
|
||
.inputs__bigInput:focus { | ||
font-weight: 900; | ||
box-shadow: 0 4px 4px 0 #00000040; | ||
text-shadow: 0 4px 4px 0 #00000040; | ||
} | ||
|
||
.inputs__smallInput { | ||
width: 100%; | ||
font-family: 'Avenir'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the |
||
font-size: 14px; | ||
font-weight: 400; | ||
line-height: 150%; | ||
height: 42px; | ||
color: #3d4e61; | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
background-size: 11px 11px; | ||
border: 1px solid #e1e7ed; | ||
border-radius: 4px; | ||
box-sizing: border-box; | ||
background-position: 13px; | ||
padding: 0 0 0 33px; | ||
outline: none; | ||
} | ||
|
||
input::placeholder { | ||
color: #3d4e61; | ||
} | ||
|
||
.inputs__smallInput:hover { | ||
box-shadow: 0 4px 4px 0 #00000040; | ||
} | ||
|
||
.inputs__smallInput:focus { | ||
font-weight: 900; | ||
} |
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
action
attribute is set to 'index.html', which is not a valid URL for form submission. Consider changing it to a proper URL or leaving it empty if the form submission is managed by JavaScript.