Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Krrampuss committed Sep 27, 2024
1 parent ccf14b1 commit 3dc6a9c
Show file tree
Hide file tree
Showing 3 changed files with 124 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://Krrampuss.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://Krrampuss.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“"
/>
<form
data-qa="big"
action="#"
>
<input
class="big form"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

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

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

@font-face {
font-family: Avenir;
src: url('./fonts/Avenir.ttc');
font-weight: 400;
font-style: normal;
}

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

.form {
font-family: Avenir, sans-serif;
display: block;
margin-top: 20px;
outline: none;
color: #3d4e61;
border: 1px solid #e1e7ed;
border-radius: 4px;
box-shadow: 0 1px 8px 0 #3d4e611a;
width: 100%;
box-sizing: border-box;
}

.big {
font-size: 16px;
background: url(images/Search.svg) no-repeat;
background-size: 19px;
box-sizing: border-box;
background-position: 26px center;
height: 70px;
padding-left: 62px;
background-color: #ffff;
}

.small {
font-size: 14px;
box-shadow: 0 1px 8px 0 #3d4e611a;
background: url(images/Search.svg) no-repeat 13px center/11px 11px;
height: 42px;
padding-left: 33px;
}

.form::placeholder {
color: #3d4e61;
}

.form:focus {
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
background-image: url(images/Search.svg);
background-repeat: no-repeat;
background-size: contain;
text-shadow: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.form:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
background-position: 26px center;
}

.big:focus {
text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
background:
url(images/Search.svg) no-repeat 26px 25px/19px 19px,
linear-gradient(180deg, transparent, #f6f6f7);
}

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

.small:focus {
border: 1px solid #e1e7ed;
text-shadow: none;
background:
url(images/Search.svg) no-repeat 13px center/11px 11px,
linear-gradient(180deg, transparent, #f6f6f7);
}

.small:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
text-shadow: none;
background-position: 13px;
}

0 comments on commit 3dc6a9c

Please sign in to comment.