Skip to content

Commit

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

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

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

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

input {
display: block;
width: 100%;
margin-top: 20px;
font-family: Avenir, Arial, Helvetica, sans-serif;
border: 1px solid rgba(225, 231, 237, 1);
border-radius: 4px;
}

.big-input {
height: 70px;
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1);
box-sizing: border-box;
padding-left: 62px;
background-image: url("./images/Search.svg");
background-repeat: no-repeat;
background-position: 25px center;
font-size: 16px;
color: rgba(61, 78, 97, 1);
font-weight: bold;
}

.big-input::placeholder {
color: rgba(61, 78, 97, 1);
font-weight: normal;
}

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

.big-input:focus {
outline: none;
background-image: url("./images/Search.svg"),
linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
background-repeat: no-repeat;
background-position:
25px center,
0 0;
background-size:
19px 19px,
100% 100%;
text-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.small-input {
height: 42px;
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1);
box-sizing: border-box;
padding-left: 33px;
background-image: url("./images/Search.svg");
background-repeat: no-repeat;
background-position: 12px center;
background-size: 11px 11px;
color: rgba(61, 78, 97, 1);
font-weight: bold;
font-size: 14px;
}

.small-input::placeholder {
color: rgba(61, 78, 97, 1);
font-weight: normal;
}

.small-input:hover {
box-shadow: 0 3px 8px 0 rgba(61, 78, 97, 0.2);
}

.small-input:focus {
outline: none;
background-image: url("./images/Search.svg"),
linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
background-repeat: no-repeat;
background-position:
12px center,
0 0;
background-size:
11px 11px,
100% 100%;
text-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

0 comments on commit ad8913c

Please sign in to comment.