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

implement two search bars #4624

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://galina-palyukh.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://galina-palyukh.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
31 changes: 21 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,27 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
action="/"
class="search-form"
>
<div class="search-form__box">
<input
class="search-form__input input input--big"
type="text"
data-qa="big"
placeholder="Try “Los Angeles“"
/>
</div>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<div class="search-form__box">
<input
class="search-form__input input input--small"
type="text"
data-qa="small"
placeholder="Try “Los Angeles“"
/>
</div>
</form>
</body>
</html>
76 changes: 75 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,75 @@
/* add styles here */
@font-face {
font-family: Avenir;
src: url(../src/fonts/Avenir-Book.ttf);
}

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

html {
font-family: Avenir, sans-serif;
font-weight: 300;
}

body {
margin: 0;
}

.search-form {
padding-inline: 15px;
padding-top: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}

.search-form__box {
display: flex;
}

.input {
background-image: url(../src/images/Search.svg);
font-family: Avenir, sans-serif;
background-repeat: no-repeat;
width: 100%;
color: #3d4e61;
background-color: #fff;
background-size: 12px;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 #3d4e611a;
transition: all 0.2s;
}

.input::placeholder {
font-weight: 400;
}

.input:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
cursor: pointer;
font-weight: 400;
}

.input:focus {
font-weight: 900;
outline: none;
}

.input--big {
height: 70px;
font-size: 16px;
background-position: 26px center;
padding-inline: 62px 26px;
background-size: 19px;
}

.input--small {
height: 42px;
font-size: 14px;
background-position: 11px center;
padding-inline: 32px 12px;
background-size: 11px;
}
Loading