Skip to content

Commit

Permalink
search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
dimon committed Jun 3, 2024
1 parent afacaf6 commit ce76944
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 14 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:///DmytroPAvlichenko.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https:///DmytroPAvlichenko.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
38 changes: 27 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,32 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<div class="large">
<img
class="large__imeges"
src="images/Search.svg"
alt="icons"
/>
<input
class="large__text"
type="text"
data-qa="big"
data="keypress"
placeholder="Try “Los Angeles“"
/>
</div>
<div class="serch">
<img
class="serch__images"
src="images/Search.svg"
alt="icons"
/>
<input
class="serch__text"
type="text"
data-qa="small"
placeholder="Try “Los Angeles“"
/>
</div>
</body>
</html>
77 changes: 76 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,76 @@
/* 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-family: Avenir, Arial, Helvetica, sans-serif;
font-weight: 300px;
}

body {
margin-top: 0;
}

.large {
display: flex;
position: relative;
}

.large__imeges {
position: absolute;
width: 19px;
height: 19px;
top: 50%;
left: 26px;
color: #687c94;
}

.large__text {
width: 100%;
height: 70px;
box-sizing: border-box;
font-size: 16px;
color: #3d4e61;
margin-top: 20px;
padding-left: 62px;
border: 1px solid #e1e7ed;
border-radius: 4px;
}

.serch {
display: flex;
position: relative;
}

.serch__text {
width: 100%;
height: 42px;
box-sizing: border-box;
font-size: 14px;
color: #3d4e61;
margin-top: 20px;
padding-left: 33px;
border: 1px solid #e1e7ed;
border-radius: 4px;
}

.serch__images {
position: absolute;
width: 11px;
height: 11px;
color: #687c94;
top: 57%;
left: 13px;
}

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

.large__text:focus {
box-shadow: 4px 4px #00000040;
text-shadow: 2px 2px #00000040;
}

0 comments on commit ce76944

Please sign in to comment.