diff --git a/readme.md b/readme.md index b635aa290b..a56348b1f2 100644 --- a/readme.md +++ b/readme.md @@ -25,8 +25,8 @@ ___ ❗️ Replace `` with your Github username and copy the links to `Pull Request` description: -- [DEMO LINK](https://.github.io/layout_search-bar-airbnb/) -- [TEST REPORT LINK](https://.github.io/layout_search-bar-airbnb/report/html_report/) +- [DEMO LINK](https://veronikamaliar.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://veronikamaliar.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. diff --git a/src/index.html b/src/index.html index abe507e10c..16cd248b23 100644 --- a/src/index.html +++ b/src/index.html @@ -10,23 +10,41 @@ http-equiv="X-UA-Compatible" content="ie=edge" /> - Document + Search-bar + - - - +
+ +
+
+ +
diff --git a/src/style.css b/src/style.css index a63fa10d43..c8b651e205 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,81 @@ -/* add styles here */ +@font-face { + font-family: 'Avenir Book'; + src: url('./fonts/Avenir-Book.ttf') format('truetype'); + font-weight: 300; +} + +@font-face { + font-family: 'Avenir Heavy'; + src: url('./fonts/Avenir-Heavy.ttf') format('truetype'); + font-weight: bold; +} + +body { + font-family: Avenir, Arial, Helvetica, sans-serif; +} + +.search-bar { + font-family: Avenir, sans-serif; + width: 100%; + display: block; + margin-top: 20px; + background: #fff; + border: 1px solid #e1e7ed; + border-radius: 5px; + box-shadow: 0 1px 8px 0 #3d4e611a; + box-sizing: border-box; +} + +.search-bar--big { + height: 70px; + font-size: 16px; + padding-left: 62px; + background-image: url(images/Search.svg); + background-repeat: no-repeat; + background-size: 19px; + background-position: left 26px center; + background-color: #fff; +} + +.search-bar--small { + height: 42px; + font-size: 14px; + padding-left: 33px; + background-image: url(images/Search.svg); + background-repeat: no-repeat; + background-size: 11px; + background-position: left 13px center; + background-color: #fff; +} + +.search-bar:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; +} + +.search-bar--big:focus { + font-weight: bold; + background: + url('./images/Search.svg') no-repeat, + linear-gradient(180deg, transparent, #f6f6f7); + background-size: 19px; + background-position: left 26px center; + border: 1px solid #e1e7ed; + box-shadow: 0 4px 4px 0 #00000040; + outline: none; +} + +.search-bar--small:focus { + font-weight: bold; + background: + url('./images/Search.svg') no-repeat, + linear-gradient(180deg, transparent, #f6f6f7); + background-size: 11px; + background-position: left 13px center; + border: 1px solid #e1e7ed; + box-shadow: 0 4px 4px 0 #00000040; + outline: none; +} + +.search-bar::placeholder { + color: #3d4e61; +}