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

layout_search-bar-airbnb #4460

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
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://SerhiiSemennikov.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://SerhiiSemennikov.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
3 changes: 3 additions & 0 deletions src/body.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.body {
margin: 8px;
}
Comment on lines +1 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default value, pls remove it

Suggested change
.body {
margin: 8px;
}

37 changes: 25 additions & 12 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,36 @@
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“"
/>

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

<form
class="searchbar"
data-qa="small"
>
<input
type="text"
data-qa="hover"
class="searchbar small__searchbar"
placeholder="Try “Los Angeles“"
/>
</form>
</body>
</html>
9 changes: 9 additions & 0 deletions src/searchbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.searchbar {
margin-top: 20px;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 #3d4e611a;
border-radius: 4px;
font-weight: 300;
font-size: 16px;
color: #3d4e61;
}
92 changes: 92 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,93 @@
/* add styles here */

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

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

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

.searchbar {
box-sizing: border-box;
margin-top: 20px;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 #3d4e611a;
border-radius: 4px;
font-weight: 300;
font-size: 16px;
color: #3d4e61;
}

.big__searchbar {
margin: 0;
width: 100%;
height: 70px;
line-height: 22px;
padding-left: 62px;
background-image: url('images/Search.svg');
background-repeat: no-repeat;
background-size: 19px 19px;
background-position: 26px 25px;
}

.big__searchbar:hover {
box-shadow: 0 4px 4px 0 #00000040;
}

.big__searchbar:focus {
border: 1px solid black;
font-family: AvenirHeavy, sans-serif;
box-shadow: 0 4px 4px 0 #53484840;
background-image: url('images/Search.svg');
background-repeat: no-repeat;
text-shadow: 0 4px 4px 0 #00000040;
}

.small__searchbar {
margin: 0;
height: 42px;
width: 100%;
line-height: 20px;
font-size: 14px;
padding-left: 33px;
background-image: url('images/Search.svg');
background-repeat: no-repeat;
background-size: 11px 11px;
background-position: 13px 15px;
font-weight: 400;
}

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

.small__searchbar:focus {
border: 1px solid black;
font-family: AvenirHeavy, sans-serif;
background-image: url('images/Search.svg');
background-repeat: no-repeat;
text-shadow: 0 4px 4px 0 #00000040;
}

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

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

:focus::placeholder {
color: transparent;
text-shadow: none;
}
Loading