From a93a31b850188b416e1ab7e3ed512e41e8e3ca59 Mon Sep 17 00:00:00 2001 From: roman-logos-frontend Date: Fri, 14 Jun 2024 20:31:57 +0300 Subject: [PATCH] add task solution --- readme.md | 4 +-- src/index.html | 27 ++++++++++++-------- src/style.css | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index b635aa290b..1967ccaded 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://roman-logos-frontend.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://roman-logos-frontend.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..59ce78ada2 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,23 @@ /> - +
+ - + +
diff --git a/src/style.css b/src/style.css index a63fa10d43..f393c78d10 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,70 @@ /* add styles here */ +@font-face { + font-family: Avenir-Book; + src: url(fonts/Avenir-Book.ttf); + font-family: Avenir-Heavy; + src: url(fonts/Avenir-Heavy.ttf); +} + +body { + font-weight: 300; +} + +.input { + box-sizing: border-box; + width: 100%; + border-radius: 4px; + border: 1px solid #e1e7ed; + color: #3d4e61; + box-shadow: 0 1px 8px 0 #3d4e611a; + background-image: url(images/Search.svg); + background-repeat: no-repeat; + font-weight: 300; + font-family: Avenir-Book, Arial, Helvetica, sans-serif; +} + +.input:focus { + background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + outline: none; + background-image: url(images/Search.svg); + background-repeat: no-repeat; + font-family: Avenir-Heavy, Arial, Helvetica, sans-serif; +} + +.input--big { + background-position: 26px 25px; + height: 70px; + margin: 12px 0 20px; + font-size: 16px; + line-height: 22px; + padding-left: 62px; +} + +.input--big:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; +} + +.input--big:focus { + box-shadow: 0 4px 4px 0 #00000040; + text-shadow: 0 4px 4px 0 #00000040; + background-position: 26px 25px; +} + +.input--small { + height: 42px; + padding-left: 33px; + font-size: 14px; + line-height: 19px; + background-position: 12px 14px; + background-size: 11px; +} + +.input--small:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; + text-shadow: 0 4px 4px 0 #00000040; +} + +.input--small:focus { + background-position: 12px 14px; + background-size: 11px; +}