From 700bef220fd79448f5d63d1016a4d56fb016309f Mon Sep 17 00:00:00 2001 From: D0dgerJ Date: Wed, 18 Sep 2024 16:52:59 +0300 Subject: [PATCH 1/2] task solution --- readme.md | 4 +- src/index.html | 100 ++++++++++++++++++++++++++++++++++++++++++++++--- src/style.css | 71 ++++++++++++++++++++++++++++++++++- 3 files changed, 166 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..0d8c4d2b9f 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://D0dgerJ.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://D0dgerJ.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..1f39d686b2 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,22 @@ + + + - Moyo header -

Moyo header

+
+ + + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..16b5ad066d 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,72 @@ -body { +:root { + --main-color: #00acdc; +} + +* { margin: 0; + padding: 0; + box-sizing: border-box; +} + +html { + font-family: Roboto, sans-serif; +} + +.logo { + display: block; + width: 40px; + height: 40px; +} + +.nav__item { + margin-right: 20px; +} + +.nav__item:last-child { + margin-right: 0; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 50px; +} + +.nav__list { + list-style: none; + display: flex; +} + +.nav__link { + height: 60px; + display: flex; + justify-content: center; + align-items: center; + text-align: center; + font-weight: 500; + font-size: 12px; + text-transform: uppercase; + color: #000; + text-decoration: none; +} + +.nav__link:hover { + color: var(--main-color); +} + +.is-active { + color: var(--main-color); + position: relative; +} + +.is-active::after { + display: block; + position: absolute; + content: ''; + bottom: 0; + height: 4px; + width: 100%; + border-radius: 8px; + background-color: var(--main-color); } From 897bdf58f7159d525ba5642f67ff6337fda3e4ae Mon Sep 17 00:00:00 2001 From: D0dgerJ Date: Wed, 18 Sep 2024 17:28:33 +0300 Subject: [PATCH 2/2] corrections --- src/index.html | 19 ++++++++++--------- src/style.css | 25 +++++++++++++++++++++---- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/index.html b/src/index.html index 1f39d686b2..167fb1844d 100644 --- a/src/index.html +++ b/src/index.html @@ -32,15 +32,16 @@ > +