Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaMandzii committed Jun 18, 2024
1 parent afacaf6 commit 21a651a
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 12 deletions.
Binary file added src/images/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 25 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- #region head -->
<!doctype html>
<html lang="en">
<head>
Expand All @@ -16,17 +17,30 @@
href="style.css"
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<!-- #endregion -->
<body class="body">
<form
action="#"
data-qa="big"
>
<input
class="input input__big"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

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

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

* {
box-sizing: border-box;
}

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

.input {
display: block;
width: 100%;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
border: 1px solid #e1e7ed;
border-radius: 4px;
box-shadow: 0 1px 8px 0 #3d4e611a;
color: #3d4e61;
margin-top: 20px;
}

.input__big {
height: 70px;
background-size: 19px 19px;
background-position: 26px center;
padding-left: 62px;
font-family: Avenir, sans-serif;
font-size: 16px;
}

.input__small {
height: 42px;
background-size: 11px 11px;
background-position: 12px 14px;
padding-left: 33px;
font-family: Avenir, sans-serif;
font-size: 14px;
}

.input__big::placeholder {
font-family: Avenir, sans-serif;
font-weight: 400;
}

.input__small::placeholder {
font-family: Avenir, sans-serif;
font-weight: 400;
}

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

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

.input__big:focus {
color: #3d4e61;
text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.25);
outline: none;
font-weight: 900;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.input__small:focus {
color: #3d4e61;
text-shadow: none;
outline: none;
font-weight: 900;
}

0 comments on commit 21a651a

Please sign in to comment.