Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
osidanych committed Sep 26, 2024
1 parent b64f3c5 commit ce813e2
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 12 deletions.
33 changes: 22 additions & 11 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“"
/>

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

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

body {
font-family: Avenir, sans-serif;
color: #3d4e61;
}

.search-bar {
width: 100%;
border: 1px solid #e1e7ed;
border-radius: 4px;
box-shadow: 0 1px 8px 0 #3d4e611a;
margin-top: 20px;
box-sizing: border-box;
}

.search-bar__logo {
width: 19px;
height: 19px;
top: 25px;
padding-left: 26px;
}

.search-bar__logo--small {
width: 11px;
height: 11px;
top: 15px;
padding-left: 13px;
}

.search-bar:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
}

.search-bar__input {
box-sizing: border-box;
width: 100%;
background-image: url('./images/Search.svg');
background-repeat: no-repeat;
font-family: inherit;
border: none;
}

.search-bar__input::placeholder {
font-size: 16px;
color: #3d4e61;
}

.search-bar__input:focus {
font-weight: 800;
color: #3d4e61;
outline: none;
}

.search-bar__input--small::placeholder {
font-size: 14px;
font-weight: 400;
}

.search-bar__input--small {
padding: 11px 33px;
background-size: 11px 11px;
background-position: 13px center;
}

.search-bar__input--big {
padding: 26px 62px 22px;
background-position: 26px center;
background-size: 19px 19px;
}

.search-bar--big {
height: 70px;
box-shadow: 0 1px 8px 0 #3d4e611a;
}

.search-bar--small {
height: 42px;
text-shadow: 0 4px 4px 0 #00000040;
}

0 comments on commit ce813e2

Please sign in to comment.