From f61ee10a06e1504bef1558342907036eb25afb15 Mon Sep 17 00:00:00 2001 From: Dmytro Horbenko Date: Sat, 28 Dec 2024 04:03:19 +0200 Subject: [PATCH] add task solution --- readme.md | 4 +-- src/index.html | 43 +++++++++++++++++++++++- src/style.css | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 135 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..75997ab76a 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://143HGS.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://143HGS.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..fe80c31b7a 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,49 @@ rel="stylesheet" href="./style.css" /> + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..0029508945 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,94 @@ body { margin: 0; + padding: 0; + box-sizing: border-box; + font-family: Roboto, serif; +} + +.roboto-regular { + font-family: Roboto, serif; + font-weight: 400; + font-style: normal; +} + +.roboto-bold { + font-family: Roboto, serif; + font-weight: 700; + font-style: normal; +} + +header { + display: flex; + justify-content: space-between; + align-items: center; + background-color: #fff; + flex-direction: row; + max-height: 60px; +} + +.logo img { + position: absolute; + left: 50px; + top: 10px; +} + +nav { + display: flex; + justify-content: space-between; + align-items: center; + margin-right: 50px; +} + +a { + text-transform: uppercase; +} + +.nav-list { + text-align: center; + display: flex; + justify-content: flex-end; + list-style: none; + padding: 0; + margin: 0; +} + +.nav-list li { + margin: 0 10px; +} + +.nav-list li:first-child { + margin-left: 0; +} + +.nav-list li:last-child { + margin-right: 0; +} + +.nav-list a { + text-decoration: none; + color: #000; + font-weight: 500; + font-size: 12px; + position: relative; + display: inline-block; + line-height: 60px; +} + +.nav-list a.is-active { + color: #00acdc; +} + +.nav-list a.is-active::after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + width: 100%; + height: 4px; + background-color: #00acdc; + border-radius: 8px; +} + +.nav-list a:hover { + color: #00acdc; }