diff --git a/package.json b/package.json index 8e7390cd1c..e2569ca50e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@mate-academy/bemlint": "latest", "@mate-academy/eslint-config": "0.0.27", "@mate-academy/linthtml-config": "latest", - "@mate-academy/scripts": "^1.7.2", + "@mate-academy/scripts": "^1.7.3", "@mate-academy/stylelint-config": "latest", "@parcel/transformer-sass": "2.10.2", "backstopjs": "^6.2.2", diff --git a/readme.md b/readme.md index 878beb2f85..86c5e25777 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://yanamomot.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://yanamomot.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..06989f5d34 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,104 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..ee09f5f591 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,69 @@ -body { +html { + box-sizing: border-box; +} + +*, +*::after { + box-sizing: inherit; margin: 0; + padding: 0; +} + +body { + font-family: Roboto, sans-serif; + font-size: 12px; + font-weight: 500; +} + +.logo { + display: flex; +} + +.header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 50px; +} + +.nav__list { + display: flex; + list-style: none; + align-items: center; +} + +.nav__item { + height: 60px; + text-transform: uppercase; +} + +.nav__item:not(:last-child) { + margin-right: 20px; +} + +.nav__link { + display: inline-block; + line-height: 60px; + color: black; + text-decoration: none; +} + +.nav__link:hover { + color: rgba(0, 172, 220, 1); +} + +.is-active { + position: relative; + color: rgba(0, 172, 220, 1); +} + +.is-active::after { + position: absolute; + bottom: 0; + right: 0; + content: ''; + height: 4px; + background-color: rgba(0, 172, 220, 1); + width: 100%; + border-radius: 8px; }