From 268eeba44dee7596749a3439937ba65c7ccee8d8 Mon Sep 17 00:00:00 2001 From: Yuliia Date: Sun, 27 Oct 2024 14:10:35 +0200 Subject: [PATCH 1/2] add task solution --- readme.md | 5 +-- src/index.html | 95 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 74 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 171 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..3e6ee44a3c 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://julia303920201.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://julia303920201.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..566824c487 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,105 @@ content="ie=edge" /> Moyo header + + + + + -

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..fbc1bd1d39 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,77 @@ +:root { + --active-color: #00acdc; +} + body { margin: 0; } + +html { + font-family: Roboto, Arial, sans-serif; + font-size: 12px; + font-weight: 500; + text-transform: uppercase; +} + +.header { + display: flex; + justify-content: space-between; + align-items: center; + position: relative; + box-shadow: 0 2px 4px 0 #0000000d; + padding: 0 50px; +} + +.nav-list { + list-style-type: none; + display: flex; + margin: 0; + padding-left: 0; +} + +.nav-link { + display: flex; + position: relative; + align-items: center; + height: 60px; + margin-left: 20px; + color: black; + text-decoration: none; +} + +.nav-item { + cursor: default; + justify-content: center; +} + +.is-active { + margin-left: 0; + color: var(--active-color); +} + +.nav__link:hover { + color: var(--active-color); +} + +.logo { + display: flex; + width: 40px; + height: 40px; + margin-top: 10px; + margin-bottom: 10px; +} + +.is-active::after { + content: ''; + display: block; + width: 100%; + height: 4px; + background-color: var(--active-color); + position: absolute; + bottom: 0; + border-radius: 8px; +} + +:hover { + color: var(--active-color); +} From 5138f5c7151d2aaf212b01ebcf07826b310feec2 Mon Sep 17 00:00:00 2001 From: Yuliia Date: Sun, 27 Oct 2024 15:39:53 +0200 Subject: [PATCH 2/2] add task solution --- src/index.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.html b/src/index.html index 566824c487..5ee9c9a802 100644 --- a/src/index.html +++ b/src/index.html @@ -34,7 +34,7 @@
Apple @@ -54,7 +54,7 @@