Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-logos-frontend committed Jun 14, 2024
1 parent afacaf6 commit a93a31b
Show file tree
Hide file tree
Showing 3 changed files with 88 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://roman-logos-frontend.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://roman-logos-frontend.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
27 changes: 17 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
action="#"
class="form"
>
<input
class="input input--big"
type="text"
data-qa="big"
placeholder="Try “Los Angeles“"
/>

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

body {
font-weight: 300;
}

.input {
box-sizing: border-box;
width: 100%;
border-radius: 4px;
border: 1px solid #e1e7ed;
color: #3d4e61;
box-shadow: 0 1px 8px 0 #3d4e611a;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
font-weight: 300;
font-family: Avenir-Book, Arial, Helvetica, sans-serif;
}

.input:focus {
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
outline: none;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
font-family: Avenir-Heavy, Arial, Helvetica, sans-serif;
}

.input--big {
background-position: 26px 25px;
height: 70px;
margin: 12px 0 20px;
font-size: 16px;
line-height: 22px;
padding-left: 62px;
}

.input--big:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
}

.input--big:focus {
box-shadow: 0 4px 4px 0 #00000040;
text-shadow: 0 4px 4px 0 #00000040;
background-position: 26px 25px;
}

.input--small {
height: 42px;
padding-left: 33px;
font-size: 14px;
line-height: 19px;
background-position: 12px 14px;
background-size: 11px;
}

.input--small:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
text-shadow: 0 4px 4px 0 #00000040;
}

.input--small:focus {
background-position: 12px 14px;
background-size: 11px;
}

0 comments on commit a93a31b

Please sign in to comment.