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 #4465

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

Develop #4465

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
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://ievgen-nikiforov.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://ievgen-nikiforov.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
32 changes: 21 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,32 @@
content="ie=edge"
/>
<title>Document</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“"
/>
<form data-qa="big" class="big-form">
<div class="large-input-wrapper">
<input
class="search-bar search-bar-large"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</div>
</form>
<form data-qa="small">
<div class="small-input-wrapper">
<input
class="search-bar search-bar-small"
type="text"
placeholder='Try "Los Angeles"'
data-qa="small"
/>
</div>
</form>
</body>
</html>
97 changes: 97 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,98 @@
/* add styles here */
@font-face {
font-family: 'Avenir';
src: url('./fonts/Avenir-Book.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}

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

html {
font-family: "Avenir", Helvetica, sans-serif;
font-size: 16px;
font-weight: 300;
}

body {
margin: 0 8px;
}



.search-bar {
color: #3d4e61;
box-sizing: border-box;
width: 100%;
border-radius: 4px;
border: 1px solid #e1e7ed;
position: static;
outline: none;
font-size: 16px;
font-family: "Avenir", Helvetica, sans-serif;
}

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

.search-bar:focus {
border: 1px solid #e1e7ed;
box-shadow: 0px 4px 4px 0px #00000040;
text-shadow: 0px 4px 4px 0px #00000040;
font-weight: 900;
}

.big-form{
margin: 20px 0;
}

.search-bar-large {
height: 70px;
padding-left: 62px;

}

.large-input-wrapper,
.small-input-wrapper {
position: relative;
width: 100%;
}

.large-input-wrapper::before {
content: '';
position: absolute;
top: 50%;
left: 26px;
transform: translateY(-50%);
height: 19px; /* Adjust this based on the image */
width: 19px;
background-image: url('./images/Search.svg');
background-size: contain; /* This keeps the aspect ratio of the image */
background-repeat: no-repeat;
}

.search-bar-small {
height: 42px;
padding-left: 33px;
font-size: 14px;
font-weight: 400;
}

.small-input-wrapper::before {
content: '';
position: absolute;
top: 50%;
left: 13px;
transform: translateY(-50%);
height: 11px; /* Adjust this based on the image */
width: 11px;
background-image: url('./images/Search.svg');
background-size: contain; /* This keeps the aspect ratio of the image */
background-repeat: no-repeat;
}
Loading