diff --git a/readme.md b/readme.md index 878beb2f85..feb9bf1c62 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://Teslaanazuma.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://Teslaanazuma.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..b9e4925bdb 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,106 @@ content="ie=edge" /> Moyo header + + + -

Moyo header

+
+ +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..08a6ad104e 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,72 @@ +html { + font-family: Roboto, sans-serif; + font-weight: 400; + font-style: normal; + + --active-color: #00acdc; +} + body { margin: 0; } + +.container { + max-width: 1100px; + margin: 0 auto; + padding: 0 50px; + display: flex; + align-items: center; + justify-content: space-between; +} + +.logo { + max-height: 40px; +} + +.nav__list { + list-style-type: none; + display: flex; + margin: 0; + padding: 0; + text-align: center; + align-items: center; +} + +.link { + color: #000; + display: block; + text-decoration: none; + font-size: 12px; + font-weight: 500; + text-transform: uppercase; + line-height: 60px; + height: 60px; +} + +.link:hover { + color: var(--active-color); +} + +.is-active { + position: relative; + color: var(--active-color); +} + +.is-active::after { + content: ''; + display: block; + height: 4px; + min-width: 100%; + position: absolute; + bottom: 0; + border-radius: 8px; + background-color: var(--active-color); +} + +.nav__list-item:not(.nav__list-item:first-child) { + margin-left: 10px; +} + +.nav__list-item:not(.nav__list-item:last-child) { + margin-right: 10px; +}