Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Danylo-Kachaniuk committed Aug 24, 2024
1 parent afacaf6 commit 240e41f
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 12 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://Danylo-Kachaniuk.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://Danylo-Kachaniuk.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
32 changes: 22 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,28 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
class="search"
data-qa="big"
>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
class="search__bar"
/>
</form>

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

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

body {
font-family: Avenir, sans-serif;
padding: 0;
}

.search {
margin-top: 20px;
}

.search__bar {
display: flex;
width: 100%;
height: 70px;
padding-left: 62px;
font-size: 16px;

border-radius: 4px;
border: 1px solid #e1e7ed;
box-sizing: border-box;
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1);

background-image: url(/src/images/Search.svg);
background-repeat: no-repeat;
background-position: 23px 24px;
line-height: 21.86px;
}

.search__bar::placeholder {
font-family: Avenir, sans-serif;
color: #3d4e61;
font-weight: 300;
opacity: 0.9;
}

.small-search__bar {
height: 42px;
font-size: 14px;
padding-left: 33px;
padding-bottom: 3px;
line-height: 19.12px;

background-size: 11px;
background-position: 12px 14px;
}

.search__bar:hover {
box-shadow: 0 4px 4px 0 #00000040;
}

.search__bar:focus {
box-shadow: 0 4px 4px 0 #00000040;
background-color: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
border-radius: 3px;
font-weight: 600;
outline: none;
}

0 comments on commit 240e41f

Please sign in to comment.