From 6f443c2ba62544a11486dc8de463fdb5b28a6934 Mon Sep 17 00:00:00 2001 From: Yevheniia Biliaieva Date: Tue, 27 Aug 2024 15:34:30 +0300 Subject: [PATCH] add solution --- readme.md | 4 +-- src/index.html | 36 +++++++++++++++++------- src/style.css | 74 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 101 insertions(+), 13 deletions(-) diff --git a/readme.md b/readme.md index b635aa290b..ad8eb3ad14 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://yevheniia-biliaieva.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://yevheniia-biliaieva.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..af97eb403c 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,32 @@ /> - +
+ +
- +
+ +
diff --git a/src/style.css b/src/style.css index a63fa10d43..836c90c94c 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,73 @@ -/* add styles here */ +/* #region normalize css */ +input { + margin: 0; + padding: 0; + border: none; + border-radius: 0; + box-shadow: none; + background: transparent; + font: inherit; + color: inherit; + box-sizing: border-box; + outline: none; +} + +/* #endregion */ + +@font-face { + font-family: Avenir, sans-serif; + font-weight: 300; + src: url(./fonts/Avenir-Book.ttf); +} + +@font-face { + font-family: Avenir, sans-serif; + font-weight: bold; + src: url(./fonts/Avenir-Heavy.ttf); +} + +.search-bar { + font-family: Avenir, sans-serif; + display: block; + width: 100%; + margin-top: 20px; + box-sizing: border-box; + border: 1px solid #e1e7ed; + border-radius: 5px; + color: #3d4e61; + background-color: #fff; + background-image: url(/src/images/Search.svg); + background-repeat: no-repeat; + background-position: left center; +} + +.search-bar::placeholder { + color: #3d4e61; +} + +.search-bar--big { + height: 70px; + font-size: 16px; + padding-left: 62px; + background-size: 19px; + background-position: left 26px center; +} + +.search-bar--small { + height: 42px; + font-size: 14px; + padding-left: 33px; + background-size: 11px; + background-position: left 13px center; +} + +.search-bar:hover { + box-shadow: 0 3px 8px rgba(61, 78, 97, 0.2); +} + +.search-bar:focus { + border-color: #e1e7ed; + font-weight: bold; + text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); +}