Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add task solution #4384

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@mate-academy/backstop-config": "latest",
"@mate-academy/bemlint": "latest",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^1.7.3",
"@mate-academy/scripts": "^1.8.5",
"@mate-academy/stylelint-config": "latest",
"backstopjs": "6.2.2",
"jest": "^29.7.0",
Expand Down
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://Anton777148.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://Anton777148.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
38 changes: 27 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,39 @@
http-equiv="X-UA-Compatible"
content="ie=edge"
/>
<title>Document</title>
<title>Search bar airbnb</title>
<link
rel="stylesheet"
href="style.css"
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
method="post"
id="big"
class="search-bar"
data-qa="big"
>
<input
class="search-bar__input search-bar__input--big"
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
</form>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
method="post"
id="small"
class="search-bar"
data-qa="small"
>
<input
class="search-bar__input search-bar__input--small"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>
</body>
</html>
71 changes: 71 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,72 @@
/* add styles here */
@font-face {
font-family: Avenir;
src: url(/src/fonts/Avenir.ttc);
}

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

.search-bar {
margin-top: 20px;
}

.search-bar__input {
width: 100%;
box-sizing: border-box;
box-shadow: 0 3px 8px 0 rgba(61, 78, 97, 0.1);
cursor: pointer;
border: 1px solid rgba(225, 231, 237, 1);
border-radius: 4px;
font-family: inherit;
color: rgba(61, 78, 97, 1);
}

.search-bar__input--big {
height: 70px;
padding-left: 62px;
font-size: 16px;
background: url(images/Search.svg) 26px 50% no-repeat;
background-size: 19px;
}

.search-bar__input--big:focus {
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
background: url(images/Search.svg) 26px 50% no-repeat;
background-size: 19px;
}

.search-bar__input--small {
height: 42px;
padding-left: 33px;
font-size: 14px;
background: url(images/Search.svg) 13px 50% no-repeat;
background-size: 11px;
}

.search-bar__input--small:focus {
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
background: url(images/Search.svg) 13px 50% no-repeat;
background-size: 11px;
}

.search-bar__input:focus {
outline: none;
font-weight: 800;
border-radius: 3px;
}

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

.search-bar__input::placeholder {
font-family: inherit;
color: rgba(61, 78, 97, 1);
font-weight: 300;
}

.small::placeholder {
font-size: 14px;
}
Loading