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

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..1fe2fbb2c2 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,84 @@ -body { +:root { + --black-color: #000; + --cyan-color: #00acdc; +} + +html, +body, +div, +header, +ul, +li, +a, +img { margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: Roboto, sans-serif; + font-weight: 500; + font-size: 12px; +} + +ul, +li { + list-style: none; +} + +a { + text-decoration: none; +} + +.header { + display: flex; + max-width: 1200px; + width: 100%; + margin: 0 auto; + align-items: center; + justify-content: space-between; + padding: 0 50px; +} + +.header__logo img { + display: block; + width: 40px; + height: 40px; +} + +.nav__list { + display: flex; +} + +.nav__item:not(:last-child) { + margin-right: 20px; +} + +.nav__link { + display: flex; + align-items: center; + position: relative; + height: 60px; + color: var(--black-color); + text-transform: uppercase; +} + +.nav__link:hover { + color: var(--cyan-color); +} + +.is-active { + color: var(--cyan-color); +} + +.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + height: 4px; + width: 100%; + border-radius: 8px; + background-color: var(--cyan-color); }