From ce7694456641375fb85a3285f113ec5c377fc099 Mon Sep 17 00:00:00 2001 From: dimon <80713na@gmail.com> Date: Mon, 3 Jun 2024 20:24:08 +0300 Subject: [PATCH] search bar --- readme.md | 4 +-- src/index.html | 38 +++++++++++++++++-------- src/style.css | 77 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 105 insertions(+), 14 deletions(-) diff --git a/readme.md b/readme.md index b635aa290b..864ea15634 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:///DmytroPAvlichenko.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https:///DmytroPAvlichenko.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..c0e7cbf303 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,32 @@ /> - - - +
+ icons + +
+
+ icons + +
diff --git a/src/style.css b/src/style.css index a63fa10d43..99fef986b6 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,76 @@ -/* add styles here */ +@font-face { + font-family: Avenir; + src: url(fonts/Avenir-Book.ttf); + src: url(fonts/Avenir-Heavy.ttf); + src: url(fonts/Avenir.ttc); +} + +* { + font-family: Avenir, Arial, Helvetica, sans-serif; + font-weight: 300px; +} + +body { + margin-top: 0; +} + +.large { + display: flex; + position: relative; +} + +.large__imeges { + position: absolute; + width: 19px; + height: 19px; + top: 50%; + left: 26px; + color: #687c94; +} + +.large__text { + width: 100%; + height: 70px; + box-sizing: border-box; + font-size: 16px; + color: #3d4e61; + margin-top: 20px; + padding-left: 62px; + border: 1px solid #e1e7ed; + border-radius: 4px; +} + +.serch { + display: flex; + position: relative; +} + +.serch__text { + width: 100%; + height: 42px; + box-sizing: border-box; + font-size: 14px; + color: #3d4e61; + margin-top: 20px; + padding-left: 33px; + border: 1px solid #e1e7ed; + border-radius: 4px; +} + +.serch__images { + position: absolute; + width: 11px; + height: 11px; + color: #687c94; + top: 57%; + left: 13px; +} + +.large__text:hover { + box-shadow: 4px 4px #00000040; +} + +.large__text:focus { + box-shadow: 4px 4px #00000040; + text-shadow: 2px 2px #00000040; +}