diff --git a/readme.md b/readme.md index e72b8051e7..0d8c4d2b9f 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://D0dgerJ.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://D0dgerJ.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..167fb1844d 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,22 @@ + + + - Moyo header -

Moyo header

+
+ + + + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..748a3f2d93 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,89 @@ -body { +:root { + --main-color: #00acdc; +} + +ul, +ol { + padding: 0; +} + +body, +h1, +h2, +h3, +h4, +p, +ul, +ol, +li, +figure, +figcaption, +blockquote, +dl, +dd { margin: 0; + list-style: none; +} + +html { + font-family: Roboto, Arial, sans-serif; +} + +.logo { + display: block; + width: 40px; + height: 40px; +} + +.nav__item { + margin-right: 20px; +} + +.nav__item:last-child { + margin-right: 0; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 50px; +} + +.nav__list { + list-style: none; + display: flex; +} + +.nav__link { + height: 60px; + display: flex; + justify-content: center; + align-items: center; + text-align: center; + font-weight: 500; + font-size: 12px; + text-transform: uppercase; + color: #000; + text-decoration: none; +} + +.nav__link:hover { + color: var(--main-color); +} + +.is-active { + color: var(--main-color); + position: relative; +} + +.is-active::after { + display: block; + position: absolute; + content: ''; + bottom: 0; + height: 4px; + width: 100%; + border-radius: 8px; + background-color: var(--main-color); }