Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Ga1dar committed Sep 27, 2024
1 parent b64f3c5 commit 345b721
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 16 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://Ga1dar.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://Ga1dar.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
44 changes: 30 additions & 14 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<!doctype html>
<html lang="en">
<html
lang="en"
class="html"
>
<head>
<meta charset="UTF-8" />
<meta
Expand All @@ -13,20 +16,33 @@
<title>Document</title>
<link
rel="stylesheet"
href="style.css"
href="/src/style.css"
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<body class="body">
<form
action="#"
class="form"
data-qa="big"
>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
class="form__searchBar form__searchBar--big"
/>
</form>
<form
action="#"
data-qa="small"
class="form"
>
<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
class="form__searchBar form__searchBar--small"
/>
</form>
</body>
</html>
69 changes: 69 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,70 @@
/* add styles here */
.html {
font-family: Avenir, sans-serif;
}

@font-face {
font-family: Avenir, sans-serif;
src: url(./src/fonts/Avenir-Book.ttf) format(ttf);
src: url(./src/fonts/Avenir-Heavy.ttf) format(ttf);
src: url(./src/fonts/Avenir.ttc) format(ttf);
font-weight: normal;
font-style: normal;
}

.body {
font-family: Avenir, sans-serif;
margin: 0;
padding: 0;
}

.form {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding-inline: 5px;
}

.form__searchBar {
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
background-image: url('/src/images/Search.svg'); /* Добавляем иконку */
background-repeat: no-repeat;
background-position: 25px center; /* Позиционируем иконку */
background-size: 19px 19px;
padding: 20px 20px 20px 60px;
margin: 20px;
box-sizing: border-box;
border: 1px solid rgba(144, 122, 231, 0.25);
border-radius: 2px;
color: rgba(61, 78, 97, 1);
}

.form > .form__searchBar:hover {
box-shadow: 1px 4px 4px 1px rgba(0, 0, 0, 0.25);
}

.form > .form__searchBar:focus {
font-weight: bold;
box-shadow: 1px 4px 4px 1px rgba(0, 0, 0, 0.25);
border: none;
}

.form__searchBar--big {
height: 70px;
font-weight: 16px;


}

.form__searchBar--small {
height: 42px;
margin-top: 0;
background-position: 15px center;
background-size: 11px 11px;
font-weight: 14px;
padding-left: 33px;
}

0 comments on commit 345b721

Please sign in to comment.