diff --git a/readme.md b/readme.md index e72b8051e7..ab68231caf 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://miroshnykow.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://miroshnykow.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..2fe865cfee 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,106 @@ content="ie=edge" /> Moyo header + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..5b3caf77ca 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,78 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; + list-style: none; +} + body { margin: 0; + padding: 0; +} + +.header { + max-width: 1200px; + display: flex; + justify-content: space-between; + align-items: center; + font-family: Roboto, system-ui; + font-size: 12px; + font-weight: 500; + position: relative; + padding: 0 50px; + margin: 0 auto; + + --nav-link-color: #00acdc; +} + +.logo { + display: block; + height: 40px; + width: 40px; +} + +.nav__list { + display: flex; + align-items: center; + justify-content: space-between; + text-align: center; + padding: 0; +} + +.nav__item { + list-style: none; + line-height: 60px; +} + +.nav__link { + display: block; + height: 60px; + text-decoration: none; + color: #000; + text-transform: uppercase; + position: relative; +} + +.is-active { + color: var(--nav-link-color); +} + +.is-active::after { + position: absolute; + left: 0; + bottom: 0; + content: ''; + display: block; + width: 100%; + height: 4px; + background-color: var(--nav-link-color); + border-radius: 2px; +} + +.nav__item:not(:last-child) { + margin-right: 20px; +} + +.nav__link:hover { + color: var(--nav-link-color); }