From 4affb49a281e1be8b7ee3df178f818bebb479e67 Mon Sep 17 00:00:00 2001 From: Dmytro Ostapenko Date: Tue, 10 Dec 2024 10:17:32 +0200 Subject: [PATCH 1/2] add task solution --- readme.md | 4 +-- src/index.html | 91 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 69 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 161 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..2bdac347cf 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://DSOst.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://DSOst.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..33f480ffa0 100644 --- a/src/index.html +++ b/src/index.html @@ -10,6 +10,14 @@ http-equiv="X-UA-Compatible" content="ie=edge" /> + + Moyo header -

Moyo header

+
+ + + + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..619de62c5b 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,72 @@ +html { + --main-color: #00acdc; +} + body { + font-family: Roboto, sans-serif; + margin: 0; +} + +.header { + padding-right: 50px; + display: flex; + background-color: #fff; + justify-content: space-between; + align-items: center; + box-sizing: border-box; +} + +.logo { + display: block; + width: 40px; + height: 40px; + padding: 10px 0 10px 50px; +} + +.nav { + display: inline-block; +} + +.nav_list { + list-style: none; + display: flex; margin: 0; + padding: 0; +} + +.nav_link { + height: 60px; + line-height: 60px; + font-weight: 500; + font-size: 12px; + text-align: center; + text-transform: uppercase; + color: #000; + text-decoration: none; + display: inline-block; + position: relative; +} + +.nav_item:not(:last-child) { + margin-right: 20px; +} + +.nav_link:hover { + color: var(--main-color); +} + +.is-active { + position: relative; + color: var(--main-color); +} + +.is-active::after { + content: ''; + height: 4px; + width: 100%; + background: var(--main-color); + bottom: 0; + left: 0; + position: absolute; + border-radius: 8px; } From 5d4c3a45d61140b164cff843312d6b6c603bd669 Mon Sep 17 00:00:00 2001 From: Dmytro Ostapenko Date: Tue, 10 Dec 2024 11:04:21 +0200 Subject: [PATCH 2/2] replace / --- src/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 33f480ffa0..0e8ad24b41 100644 --- a/src/index.html +++ b/src/index.html @@ -25,13 +25,14 @@ /> +

Moyo header