From 0b3dd4dffc6ece18aad0840f4b70f1dd3313b30a Mon Sep 17 00:00:00 2001 From: Ruslan Sydorenko Date: Tue, 17 Sep 2024 15:50:40 +0300 Subject: [PATCH 1/2] add task solution --- readme.md | 4 +- src/index.html | 104 ++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 73 +++++++++++++++++++++++++++++++++- 3 files changed, 177 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..f21604d058 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://rssydorenko.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://rssydorenko.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..f5e332c2fa 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,114 @@ content="ie=edge" /> Moyo header + + + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..c493294458 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,74 @@ -body { +* { margin: 0; + padding: 0; + box-sizing: border-box; + list-style: none; +} + +a { + text-decoration: none; + color: inherit; +} + +html { + font-size: 16px; + font-family: Roboto, sans-serif; + font-style: normal; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + max-width: 1200px; + margin: 0 auto; + padding: 0 50px; +} + +.logo { + display: block; + height: 40px; + width: 40px; +} + +.nav_list { + display: flex; +} + +.nav_item { + color: black; +} + +.nav_item:not(:last-child) { + margin-right: 20px; +} + +.nav_item:hover { + color: #00acdc; +} + +.nav_link { + position: relative; + display: flex; + align-items: center; + height: 60px; + margin: auto; + text-transform: uppercase; + font-size: 12px; + line-height: 16px; + font-weight: 500; +} + +.is-active { + color: #00acdc; +} + +.is-active::after { + content: ''; + position: absolute; + width: 100%; + height: 4px; + bottom: 0; + left: 0; + background-color: #00acdc; } From 61ad6e6b94042a404e517cd68a197b38e00a2a73 Mon Sep 17 00:00:00 2001 From: Ruslan Sydorenko Date: Wed, 18 Sep 2024 11:58:38 +0300 Subject: [PATCH 2/2] corrected the code --- src/index.html | 34 +++++++++++++++++----------------- src/style.css | 31 +++++++++++++++++++------------ 2 files changed, 36 insertions(+), 29 deletions(-) diff --git a/src/index.html b/src/index.html index f5e332c2fa..0c93fae3dc 100644 --- a/src/index.html +++ b/src/index.html @@ -44,75 +44,75 @@