From 90533da68f80f68a438f0785914edf7c064cfdc0 Mon Sep 17 00:00:00 2001 From: Vladyslav Serikov Date: Mon, 6 May 2024 20:20:06 +0200 Subject: [PATCH 1/6] add task solution --- readme.md | 5 +-- src/index.html | 85 +++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 174 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..d1b4a0ecb7 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,5 @@ # Moyo header + Create HTML page with the header using `flexbox` based on the [Figma Mockup](https://www.figma.com/file/1sog2rmfyCjnVxkeZ3ptnc/MOYO-%2F-Header?node-id=0%3A1&mode=dev). The page should match the design Pixel Perfect: all the sizes, colors and distanced MUST be the same as on the design. @@ -27,8 +28,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://ell10tt.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://ell10tt.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..e45eaaf80a 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,91 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ + + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..2035db3f98 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,90 @@ body { margin: 0; } + +header { + font-size: 12px; + text-transform: uppercase; + box-sizing: border-box; + width: 100vw; + background-color: #ffff; + display: flex; + align-items: center; + justify-content: space-between; + + padding: 0 50px; +} + +.logo-link { + display: block; + width: 40px; + height: 40px; +} + +.logo { + width: 40px; + height: 40px; +} + +ul { + display: flex; + padding: 0; + margin: 0; + list-style: none; +} + +.page-link { + margin-left: 20px; + position: relative; + display: flex; + align-items: center; + height: 60px; + text-decoration: none; + color: #000; +} + +.page-link:first-child { + margin-left: 0; +} + +.page-link:hover { + color: #00acdc; +} + +.is-active { + color: #00acdc; +} + +.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + right: 0; + width: 37px; + height: 4px; + border-radius: 8px; + background-color: #00acdc; +} + +/* #REGION start */ + +.roboto-regular { + font-family: Roboto, sans-serif; + font-weight: 400; + font-style: normal; +} + +.roboto-medium { + font-family: Roboto, sans-serif; + font-weight: 500; + font-style: normal; +} + +.roboto-bold { + font-family: Roboto, sans-serif; + font-weight: 700; + font-style: normal; +} + +/* #REGION end */ From 0f8849faa700162bbb5d98e976010ef27eb8e03d Mon Sep 17 00:00:00 2001 From: Vladyslav Serikov Date: Tue, 7 May 2024 18:41:48 +0200 Subject: [PATCH 2/6] redacted all of mistakes --- src/index.html | 4 ++-- src/style.css | 48 ++++++++++++++++-------------------------------- 2 files changed, 18 insertions(+), 34 deletions(-) diff --git a/src/index.html b/src/index.html index e45eaaf80a..fde1e3c7bc 100644 --- a/src/index.html +++ b/src/index.html @@ -29,7 +29,7 @@ /> -
+
diff --git a/src/style.css b/src/style.css index bdf3358533..18881ae865 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,7 @@ +:root { + --link-color: #00acdc; +} + * { font-size: 12px; text-transform: uppercase; @@ -41,24 +45,28 @@ body { list-style: none; } -.page-link { +.nav__item { font-weight: 500; margin-left: 20px; position: relative; display: flex; align-items: center; height: 60px; +} + +.nav__link { + line-height: 60px; text-decoration: none; color: #000; } -.page-link:first-child { +.nav__item:first-child { margin-left: 0; } -.page-link:hover, +.nav__link:hover, .is-active { - color: #00acdc; + color: var(--link-color); } .is-active::after { @@ -70,5 +78,5 @@ body { width: 37px; height: 4px; border-radius: 8px; - background-color: #00acdc; + background-color: var(--link-color); } From 262378d694e4e5c96d02ec0be352a9510aa90a1f Mon Sep 17 00:00:00 2001 From: Vladyslav Serikov Date: Thu, 9 May 2024 18:14:36 +0200 Subject: [PATCH 6/6] provided links to all categories in navigation-bar --- src/index.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/index.html b/src/index.html index bd0226e50a..a73db5ec8e 100644 --- a/src/index.html +++ b/src/index.html @@ -40,68 +40,76 @@ class="logo" /> +