diff --git a/readme.md b/readme.md index e72b8051e7..303c84ce2c 100644 --- a/readme.md +++ b/readme.md @@ -27,8 +27,8 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan ❗️ Replace `` with your Github username and copy the links to `Pull Request` description: -- [DEMO LINK](https://.github.io/layout_moyo-header/) -- [TEST REPORT LINK](https://.github.io/layout_moyo-header/report/html_report/) +- [DEMO LINK](https://vladislav-tsybuliak1.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://vladislav-tsybuliak1.github.io/layout_moyo-header/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 b39fe97123..a86677f98f 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,109 @@ content="ie=edge" /> Moyo header + + + -

Moyo header

+
+ + + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..c2889fa85e 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,69 @@ body { margin: 0; + + --main-color: #00acdc; +} + +.header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 50px; + + background: #fff; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); +} + +.img__logo { + height: 40px; + width: 40px; + display: block; +} + +.nav__list { + display: flex; + list-style-type: none; + margin: 0; + padding: 0; +} + +.nav__item { + margin-left: 20px; + height: 60px; + display: flex; + align-content: center; +} + +.nav__link { + font-family: Roboto, serif; + font-weight: 500; + text-transform: uppercase; + font-size: 12px; + color: #000; + align-content: center; + text-decoration: none; +} + +.nav__item:first-child { + margin-left: 0; +} + +.nav__link:hover { + color: var(--main-color); +} + +.is-active { + color: var(--main-color); + position: relative; +} + +.is-active::after { + content: ''; + background-color: var(--main-color); + position: absolute; + height: 4px; + border-radius: 8px; + bottom: 0; + left: 0; + width: 100%; }