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 #4694

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ___

❗️ Replace `<your_account>` with your Github username and copy the links to `Pull Request` description:

- [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://puzzlesayn.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://puzzlesayn.github.io/layout_search-bar-airbnb/report/html_report/)

❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it.

Expand Down
Binary file added src/Search/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 24 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,29 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<div class="search-bar__container">
<form
class="search-bar top-search-bar"
data-qa="big"
>
<input
class="search-bar-input search-bar-input--top"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>
<form
class="search-bar bottom-search-bar"
data-qa="small"
>
<input
class="search-bar-input search-bar-input--bottom"
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
</form>
</div>
</body>
</html>
68 changes: 68 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,69 @@
/* add styles here */
@font-face {
font-family: Avenir;
src: url(./fonts/Avenir-Book.ttf);
}

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

* {

Choose a reason for hiding this comment

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

Using the universal selector '*' can negatively impact performance as it applies styles to all elements. Consider using more specific selectors to target only the elements that need these styles.

font-family: Avenir, Arial, Helvetica, sans-serif;
font-weight: 300;
font-style: normal;
color: rgba(61, 78, 97, 1);
box-sizing: border-box;
}

.search-bar {
background-color: #fff;
margin-top: 20px;
}

.top-search-bar {
height: 70px;
}

.bottom-search-bar {
height: 42px;
}

.search-bar-input {
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-image: url(./images/Search.svg);
border: 1px solid #e1e7ed;
border-radius: 4px;
box-shadow: 0 1px 8px 0 #3d4e611a;
}

.search-bar-input--top {
background-size: 19px 19px;
background-position: 26px center;
padding-left: 62px;
font-size: 16px;
}

.search-bar-input--bottom {
background-size: 11px 11px;
background-position: 13px center;
padding-left: 33px;
font-size: 14px;
}

.search-bar-input::placeholder {
color: #3d4e61;
}

.search-bar-input:hover {
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.search-bar-input:focus {
outline: none;
font-family: Avenir, sans-serif;
}
Loading