diff --git a/YandexSansDisplay-Thin.ttf b/YandexSansDisplay-Thin.ttf new file mode 100644 index 0000000..199c690 Binary files /dev/null and b/YandexSansDisplay-Thin.ttf differ diff --git a/form.css b/form.css new file mode 100644 index 0000000..f624a90 --- /dev/null +++ b/form.css @@ -0,0 +1,34 @@ +.form +{ + grid-area: form; + background-color: white; + padding: 0 30px 30px; + margin: 10px 10px 0; +} + +.field +{ + clear: both; + text-align: right; + margin-bottom: 16px; +} + +label +{ + float: left; + margin-right: 160px; +} + +.form__wrap +{ + float: left; +} + +@media screen and (max-width: 1200px) and (min-width: 720px) +{ + .form + { + margin: 0 125px; + } + +} diff --git a/header.css b/header.css new file mode 100644 index 0000000..dbea301 --- /dev/null +++ b/header.css @@ -0,0 +1,87 @@ +.header +{ + padding: 15px; +} + +.header__name +{ + font: 50px 'YandexSans'; + display: inline-block; + font-weight: bold; +} + +.header__input +{ + display: inline-block; + position: absolute; + padding-top: 18px; + padding-left: 20px; + width: 65%; +} + +.input__search +{ + width: 85%; + height: 35px; + outline: none; + border: 2px solid #dcdcdc; +} + +.input__button +{ + height: 41px; + width: 10%; + margin-left: -5px; + background-color: #dcdcdc; + outline: none; + box-shadow: 0; +} + +.input__icon_hidden +{ + display: none; + outline: none; + vertical-align: middle; +} + +@media screen and (max-width: 1200px) and (min-width: 720px) +{ + .input__button + { + display: none; + } + + .input__icon_search + { + display: inline-block; + } + + .input__search + { + border: none; + } + + .input__search:focus + { + border: 2px solid #dcdcdc; + } +} + +@media screen and (max-width: 720px) +{ + .input__icon_hamburger + { + display: inline-block; + } + + .input__search + { + display: block; + } + + .input__button, + .input__icon_search + { + display: none; + } +} diff --git a/icons/hamburger.png b/icons/hamburger.png new file mode 100644 index 0000000..ae9d9c5 Binary files /dev/null and b/icons/hamburger.png differ diff --git a/icons/magnifier.png b/icons/magnifier.png new file mode 100644 index 0000000..d2eae5b Binary files /dev/null and b/icons/magnifier.png differ diff --git a/images/img.png b/images/img.png new file mode 100644 index 0000000..999f9ae Binary files /dev/null and b/images/img.png differ diff --git a/index.css b/index.css index e69de29..a5edaa2 100644 --- a/index.css +++ b/index.css @@ -0,0 +1,72 @@ +@import './header.css'; +@import './nav.css'; +@import './items.css'; +@import './popularItems.css'; +@import './form.css'; + +@font-face +{ + font-family: 'YandexSans'; + src: url(YandexSansDisplay-Thin.ttf); +} + +body +{ + font: 18px Helvetica, sans-serif; +} + +a +{ + text-decoration: none; + color: #4169e0; +} + +.wrapper +{ + margin: 20px 0 60px; + background-color: #dcdcdc; + padding: 45px 0; + display: grid; +} + +@media screen and (min-width: 1200px) +{ + + .wrapper + { + grid-template-columns: 30px 230px auto 230px 30px; + grid-template-rows: auto; + grid-gap: 15px; + grid-template-areas: '. nav items popular .' + '. . items . .' + '. . form . .'; + } +} + +@media screen and (max-width: 1200px) and (min-width: 720px) +{ + .wrapper + { + grid-template-columns: 15px auto 15px; + grid-template-rows: auto; + grid-gap: 30px; + grid-template-areas: '. nav .' + '. items .' + '. popular .' + '. form .'; + } + +} + +@media screen and (max-width: 720px) +{ + .wrapper + { + grid-template-columns: 1fr 450px 1fr; + grid-template-rows: auto; + grid-gap: 30px; + grid-template-areas: '. popular .' + '. items .' + '. form .'; + } +} diff --git a/index.html b/index.html index 97f19ec..2d6da11 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,162 @@ +
+