diff --git a/readme.md b/readme.md index e72b8051e7..00f51899cb 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://ATkachenkoA.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://ATkachenkoA.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..6e346a7da1 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,105 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ +
+
+

Moyo header

+
diff --git a/src/style.css b/src/style.css index 293d3b1f13..88f61f9cc5 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,81 @@ +html { + color: #00acdc; +} + body { margin: 0; + box-sizing: border-box; +} + +.header__container { + padding: 0 50px; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-between; + background-color: white; + flex-wrap: wrap; + gap: 60px; + max-width: 1200px; +} + +.logo__img { + width: 100%; + height: 40px; +} + +.nav__list { + display: flex; + flex-wrap: wrap; + gap: 20px; + font-family: Roboto, sans-serif; + font-weight: 500; + font-size: 12px; + line-height: 60px; + text-transform: uppercase; + list-style: none; + height: 60px; +} + +.nav__link { + border-bottom: 4px solid transparent; + text-decoration: none; + transition: + color 0.5s, + border-color 0.5s; + color: black; +} + +.nav__link:hover { + color: #00acdc; + border-bottom: 4px solid; +} + +a.is-active { + position: relative; + color: #00acdc; +} + +a.is-active:hover { + border-bottom: 4px solid transparent; +} + +.is-active::after { + content: ''; + display: block; + width: 100%; + height: 4px; + background-color: #00acdc; + position: absolute; + border-radius: 8px; + bottom: 0; + left: 0; +} + +.nav__link:nth-child(4) { + color: #00acdc; +} + +.nav__link:last-child { + margin: 0; }