From b3bbeddd60ccfadf227c1261a5241f270e313d5f Mon Sep 17 00:00:00 2001 From: Ilona Ruslanova Date: Sun, 22 Dec 2024 21:02:21 +0200 Subject: [PATCH] add task solution --- readme.md | 6 ++-- src/index.html | 84 ++++++++++++++++++++++++++++++++++++++++++++++ src/style.css | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 177 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..3f24b75a9e 100644 --- a/readme.md +++ b/readme.md @@ -25,10 +25,10 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan ## Checklist -❗️ Replace `` with your Github username and copy the links to `Pull Request` description: +❗️ 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://IlonaRuslanova.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://IlonaRuslanova.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..453054c3cd 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,92 @@ rel="stylesheet" href="./style.css" /> +

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..3ff5fba532 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,93 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + body { + font-family: Roboto, sans-serif; + font-size: 12px; + + --blue-color: #00acdc; +} + +.header { + display: flex; + width: 100%; + justify-content: space-between; + align-items: center; + padding: 0 50px; +} + +.nav__list { + list-style-type: none; + display: flex; + padding: 0; margin: 0; + justify-content: flex-end; +} + +.nav__item { + display: inline-block; + margin-right: 20px; +} + +.nav__item:last-child { + margin-right: 0; +} + +.nav__link { + text-transform: uppercase; + text-decoration: none; + color: black; + font-style: normal; + font-weight: 500; + height: 60px; + line-height: 60px; + display: flex; + align-items: center; + position: relative; +} + +.is-active { + color: #00acdc; + position: relative; +} + +.is-active::after { + content: ''; + display: block; + background-color: #00acdc; + text-align: center; + height: 4px; + width: 100%; + border-radius: 8px; + bottom: 0; + position: absolute; + left: 0; +} + +[data-qa_hover]::after { + content: ''; + display: block; + background-color: #00acdc; + text-align: center; + height: 4px; + border-radius: 8px; + position: absolute; + bottom: 0; + left: 0; + width: 100%; +} + +.nav__link:hover { + color: #00acdc; +} + +.logo { + display: flex; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; }