Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Tuhusova committed Jun 2, 2024
1 parent afacaf6 commit 216202e
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 13 deletions.
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://tuhusova.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://tuhusova.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
34 changes: 24 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,30 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<div class="search-bar">
<form
class="search-bar-top"
data-qa="big"
>
<input
class="search-bar-input search-bar-input--top"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
class="search-bar-down"
data-qa="small"
>
<input
class="search-bar-input search-bar-input--down"
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
</form>
</div>
</body>
</html>
74 changes: 73 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,73 @@
/* add styles here */
@font-face {
font-family: Avenir;
src: url('./fonts/Avenir-Book.ttf');
src: url('./fonts/Avenir-Heavy.ttf');
src: url('./fonts/Avenir.ttc');
font-style: normal;
font-weight: normal;
color: rgba(61, 78, 97, 1);
}

* {
font-family: Avenir, Arial, Helvetica, sans-serif;
box-sizing: border-box;
font-weight: 300px;
}

body {
margin: 0;
padding: 0;
}

.search-bar-input {
box-sizing: border-box;
border-radius: 4px;
background-image: url(/src/images/Search.svg);
background-repeat: no-repeat;
width: 100%;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1);
line-height: 21.86px;
}

.search-bar-input--top {
display: inline-block;
margin: 20px 0;
color: #3d4e61;
font-size: 16px;
padding: 0;
height: 70px;
padding-left: 62px;
background-size: 19px 19px;
background-position: 26px center;
}

.search-bar-input--down {
margin: 0;
padding: 0;
display: inline-block;
font-size: 14px;
border-radius: 5;
height: 42px;
padding-left: 33px;
background-size: 11px 11px;
background-position: 13px center;
}

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

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

.search-bar-input :focus {
box-shadow: 0 4px 4px 0;
color: rgba(0, 0, 0, 0.25);
font-size: 16px;
line-height: 21.86px;
text-align: left;
font-family: Avenir-Heavy, sans-serif;
}

0 comments on commit 216202e

Please sign in to comment.