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

Develop #4330

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Develop #4330

Show file tree
Hide file tree
Changes from 3 commits
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.1",
"@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://kimmladshii.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://kimmladshii.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: 34 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,40 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
class="search-form search-form--big"
data-qa="big"
>
<img
src="/src/images/Search.svg"
alt="loupe-icon"
class="search-form__icon search-form__icon--big"
/>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
class="search-form__input search-form__input--big"
/>
</form>

<form
class="search-form search-form--small"
data-qa="small"
>
<img
src="/src/images/Search.svg"
alt="loupe-icon"
class="search-form__icon search-form__icon--small"
/>

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

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

.search-form {
margin: 20px 0;
border-radius: 4px;
box-sizing: border-box;
}

.search-form__icon {
position: absolute;
}

.search-form__icon--big {
top: 46px;
left: 33px;
}

.search-form__icon--small {
height: 11px;
width: 11px;
top: 125px;
left: 21px;
}

.search-form__input {
width: 100%;
box-sizing: border-box;

background: #fff;
border: 1px solid #e1e7ed;
border-radius: 4px;
box-shadow: 0 1px 8px 0 #ffffff1a;

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

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

.search-form__input:focus {
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
box-shadow: 0 4px 4px 0 #00000040;
border-radius: 3px;
font-weight: bold;
}

.search-form__input--big {
padding-left: 62px;
height: 70px;
font-size: 16px;
line-height: 21.86px;
}

.search-form__input--small {
padding-left: 33px;
height: 42px;
font-size: 14px;
line-height: 19.12px;
}
Loading