From 2da2e5f496e830fb7ce00f04f13d453f6f550562 Mon Sep 17 00:00:00 2001 From: Ditiselit Date: Wed, 10 Jan 2024 14:29:24 +0200 Subject: [PATCH 1/4] add task solution --- readme.md | 4 +-- src/index.html | 27 +++++++++++++++++-- src/style.css | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 878beb2f85..135e82862f 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://ditiselit.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://ditiselit.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 f67d080ee0..a6e9ba1456 100644 --- a/src/index.html +++ b/src/index.html @@ -3,12 +3,35 @@ + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> Moyo header + + + -

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..8842050071 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,75 @@ +html { + font-family: Roboto, sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 500; + line-height: normal; + text-transform: uppercase; +} + +:root { + --main-color: black; + --active-color: #00ACDC; +} + body { margin: 0; } + +.header { + display: flex; + justify-content: space-between; + align-items: center; + padding-left: 50px; + padding-right: 50px; +} + +.logo__img { + display: block; + height: 40px; + width: 40px; +} + +.nav__list { + display: flex; + list-style: none; + padding: 0; + margin: 0; +} + +.nav__item { + display: flex; + gap: 20px; + padding: 0; + margin: 0; +} + +.nav__link { + display: block; + height: 60px; + line-height: 60px; + padding: 0; + text-decoration: none; + color: var(--main-color); +} + +.nav__link:hover { + color: var(--active-color); +} + +.is-active { + color: var(--active-color); + position: relative; +} + + +.is-active::after { + content: ""; + display: block; + height: 4px; + width: 100%; + border-radius: 8px; + background-color: var(--active-color); + position: absolute; + bottom: 0; +} From 32895d1841f1d08bce12865c436cd318aeab24ee Mon Sep 17 00:00:00 2001 From: Ditiselit Date: Wed, 10 Jan 2024 16:41:34 +0200 Subject: [PATCH 2/4] add changes --- src/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/index.html b/src/index.html index a6e9ba1456..11715f7c68 100644 --- a/src/index.html +++ b/src/index.html @@ -14,8 +14,11 @@