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 all 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
34 changes: 23 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,28 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

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

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

@font-face {
font-family: Avenir;
src: url('fonts/Avenir.ttc');
font-weight: 300;
}

input::placeholder {
color: #3d4e61;
}

.big-search-bar {
margin: 20px auto;
display: flex;
align-content: center;
height: 70px;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 #3d4e611a;
box-sizing: border-box;
border-radius: 4px;
align-items: center;
}

.big-search-bar:hover {
border: 1px solid #e1e7ed;
box-shadow: 0 4px 4px 0 #00000040;
}

.big-search-bar:focus {
border: none;
box-shadow: 0 4px 4px 0 #00000040;
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.big-search-bar--icon {
background-image: url(images/Search.svg);
background-repeat: no-repeat;
background-size: cover;
height: 19px;
width: 19px;
margin-right: 17px;
margin-left: 25px;
transform: translateY(-1px);
}

.big-search-bar--bar {
border: none;
padding: 1px;
font-family: Avenir, serif;
font-size: 16px;
color: #3d4e61;
font-weight: 400;
}

.big-search-bar--bar:focus {
border: 1px solid #e1e7ed;
box-shadow: 0 3px 8px 0 #3d4e6133;
text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.25);
font-family: 'Avenir heavy', serif;
color: #3d4e61;
}

.small-search-bar {
margin: 20px 0;
display: flex;
align-content: center;
height: 42px;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 #3d4e611a;
border-radius: 4px;
box-sizing: border-box;
align-items: center;
}

.small-search-bar:hover {
border: 1px solid #e1e7ed;
box-shadow: 0 3px 8px 0 #3d4e6133;
}

.small-search-bar:focus {
border: none;
box-shadow: 0 4px 4px 0 #00000040;
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.small-search-bar--bar {
border: none;
padding: 1px;
font-family: Avenir, serif;
font-size: 14px;
color: #3d4e61;
font-weight: 400;
}

.small-search-bar--icon {
background-image: url(images/Search.svg);
background-repeat: no-repeat;
background-size: cover;
height: 11px;
width: 11px;
margin-right: 9px;
margin-left: 12px;
transform: translateY(-1px);
}

.small-search-bar--bar:focus {
border: 1px solid #e1e7ed;
box-shadow: 0 3px 8px 0 #3d4e6133;
text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.25);
font-family: 'Avenir heavy', serif;
color: #3d4e61;
}
Loading