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

Develop #4400

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

Develop #4400

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://rqwif.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://rqwif.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“"
/>
<div class="search">
<form data-qa="big">
<input
type="text"
id="search-big"
name="search-big"
data-qa="keypress"
class="search__input search__input--big"
placeholder="Try “Los Angeles“"
/>
</form>

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

@font-face {
font-family: Avenir-Heavy;
src: url('./fonts/Avenir-Heavy.ttf') format('truetype');
}

body {
font-family: Avenir-Book, sans-serif;
font-weight: 300;
padding: 0;
margin-top: 0;
height: 100vh;
}

.search {
width: 100%;
padding-top: 20px;
}

.search__input {
font-family: Avenir-Book, sans-serif;
width: 100%;
border: 1px solid #e1e7ed;
background-image: url(./images/search.svg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
display: flex;
border-radius: 4px;
box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1);
box-sizing: border-box;
margin-bottom: 20px;
padding-left: 33px;
}

.search__input--big {
height: 70px;
padding-left: 62px;
background-size: 19px;
background-position: left 26px center;
font-size: 16px;
font-weight: 100;
}

.search__input--small {
height: 42px;
font-size: 14px;
font-weight: 400;
background-size: 11px;
background-position: left 13px center;
}

.search__input::placeholder {
color: rgba(61, 78, 97, 1);
}

.search__input--big:focus {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
font-family: Avenir-Heavy, sans-serif;
outline: none;
}

.search__input--big:hover {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
outline: none;
}

.search__input--small:hover {
box-shadow: 0 3px 8px rgba(61, 78, 97, 0.2);
}

.search__input--small:focus {
background-image: url(./images/search.svg),
linear-gradient(
180deg,
rgba(246, 246, 247, 1) 100%,
rgba(255, 255, 255, 1) 100%
);
background-repeat: no-repeat, no-repeat;
background-position:
left 13px center,
center;
background-size: 11px, auto;
font-family: Avenir-Heavy, sans-serif;
outline: none;
box-shadow: 0 3px 8px rgba(61, 78, 97, 0.2);
}
Loading