diff --git a/readme.md b/readme.md index b635aa290b..108214baf3 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://mForkosh.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://mForkosh.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..a0979c9363 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..ecae54b3db 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,110 @@ -/* add styles here */ +@font-face { + font-family: Avenir; + src: url(fonts/Avenir-Book.ttf); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: Avenir; + src: url(fonts/Avenir-Heavy.ttf); + font-weight: 900; + font-style: normal; +} + +body { + margin-top: 20px; +} + +/* #region form */ + +.form { + display: flex; + position: relative; + flex-direction: column; + gap: 20px; +} + +.form__bar { + /* element settings */ + box-sizing: border-box; + border: 1px solid #e1e7ed; + border-radius: 4px; + font-family: Avenir, Helvetica, sans-serif; + + /* content ssetings */ + color: #3d4e61; + font-weight: 400; +} + +.form__bar--big { + height: 70px; + padding-left: 62px; + font-size: 16px; + box-shadow: 0 1px 8px 0 #3d4e611a; +} + +.form__bar--small { + height: 42px; + padding-left: 33px; + font-size: 14px; + box-shadow: 0 1px 8px 0 #3d4e611a; +} + +.form__bar--big::placeholder { + font-weight: 400; + color: #3d4e61; +} + +.form__bar--small::placeholder { + font-weight: 400; + color: #3d4e61; +} + +.form__bar--big:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; +} + +.form__bar--small:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; +} + +.form__bar--big:focus { + outline: none; + background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + box-shadow: (0 4px 4px #3d4e6133); + font-weight: 900; +} + +.form__bar--small:focus { + background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + box-shadow: none; + outline: none; + font-weight: 900; +} + +.form__label-big { + position: absolute; + top: 25px; + left: 26px; + height: 19px; + width: 19px; + z-index: 1; + background-image: url(images/Search.svg); + background-repeat: no-repeat; + background-size: contain; +} + +.form__label-small { + position: absolute; + top: 105px; + left: 13px; + height: 11px; + width: 11px; + z-index: 1; + background-image: url(images/Search.svg); + background-repeat: no-repeat; + background-size: contain; +} + +/* #endregion */