diff --git a/readme.md b/readme.md index e72b8051e7..0cde94573f 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://alex-marcovych.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://alex-marcovych.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..b7be8d8b8d 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,67 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..5b678f9304 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,68 @@ body { margin: 0; + font-family: Roboto, serif; +} + +:root { + --blue: #00acdc; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 50px; +} + +.header__logo { + height: 40px; +} + +.menu__list { + list-style-type: none; + display: flex; + margin: 0; + padding: 0; +} + +.menu__list-item { + margin-right: 20px; +} + +.menu__list-item a { + color: #000; + text-decoration: none; + text-transform: uppercase; + font-size: 12px; + font-weight: 500; + line-height: 60px; + position: relative; + height: 60px; + display: inline-block; +} + +.menu__list-item:last-child { + margin-right: 0; +} + +.menu__list-item a:hover { + color: #00acdc; +} + +a.is-active { + color: #00acdc; +} + +a.is-active::after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + width: 100%; + height: 4px; + background-color: #00acdc; + transform: scaleX(1); + transform-origin: center; + transition: transform 0.3s ease-in-out; + border-radius: 8px; }