diff --git a/readme.md b/readme.md index e72b8051e7..0fdbcb6cd6 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://pvnovikova.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://pvnovikova.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..3657f6b620 100644 --- a/src/index.html +++ b/src/index.html @@ -1,3 +1,4 @@ + @@ -6,6 +7,19 @@ name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> + + + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..ce6244e750 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,85 @@ +html { + font-family: Roboto, sans-serif; + + --active-color: #00acdc; + --size: 40px; +} + body { margin: 0; } + +.header { + display: flex; + justify-content: space-between; + align-items: center; + + padding: 0 50px; + + background: white; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); +} + +.header__logo { + display: flex; + height: var(--size); + width: var(--size); +} + +.header__logo--image { + height: 100%; + width: 100%; +} + +.nav__list { + display: flex; + margin: 0; + padding: 0; + list-style-type: none; +} + +.nav__item { + margin-left: 20px; +} + +.nav__item:first-child { + margin-left: 0; +} + +.nav__link { + position: relative; + display: flex; + align-items: center; + + height: 60px; + + font-family: Roboto, sans-serif; + text-decoration: none; + text-transform: uppercase; + font-size: 12px; + font-weight: 500; + color: #000; + white-space: nowrap; + + transition: color 0.3s; +} + +.nav__link:hover { + color: var(--active-color); +} + +.nav__link.is-active { + color: var(--active-color); +} + +.nav__link.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + right: 0; + + background-color: var(--active-color); + height: 4px; + border-radius: 2px; +}