diff --git a/readme.md b/readme.md index e72b8051e7..b35173930b 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,5 @@ # Moyo header + Create HTML page with the header using `flexbox` based on the [Figma Mockup](https://www.figma.com/file/1sog2rmfyCjnVxkeZ3ptnc/MOYO-%2F-Header?node-id=0%3A1&mode=dev). The page should match the design Pixel Perfect: all the sizes, colors and distanced MUST be the same as on the design. @@ -27,8 +28,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://Larysa1387.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://Larysa1387.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..dd09a59bf6 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,112 @@ content="ie=edge" /> Moyo header + + + -

Moyo header

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