From cc4a594d2ab0455a76fdc094db3a9a6c4f3412b5 Mon Sep 17 00:00:00 2001 From: Mikhailo Koshilka Date: Mon, 30 Dec 2024 20:49:44 +0000 Subject: [PATCH] Add task solution --- readme.md | 4 +-- src/index.html | 94 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 80 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 175 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..2efd0630d0 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://mishakoshilka.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://mishakoshilka.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..22b3a99b0c 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,100 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..b98231064e 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,83 @@ body { margin: 0; + padding: 0; + box-sizing: border-box; +} + +.header { + margin: 0; + padding: 0; + padding-inline: 50px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.header__logo { + margin: 0; + margin-block: 10px; + width: 40px; + height: 40px; +} + +.header__nav { + position: relative; +} + +.header__menu { + display: flex; + list-style: none; + align-items: center; + justify-content: center; + padding: 0; + margin: 0; +} + +.header__menu li { + margin-right: 20px; +} + +.header__menu li:last-child { + margin-right: 0; +} + +.header__link { + display: flex; + align-items: center; + justify-content: center; + height: 60px; + font-family: Roboto, sans-serif; + color: #000; + position: relative; + text-transform: uppercase; + font-size: 12px; + font-weight: 500; + text-align: center; + text-underline-position: from-font; + text-decoration-skip-ink: none; + text-decoration: none; +} + +.header__link:hover { + color: #00acdc; +} + +.header__link:last-child { + margin-right: 0; +} + +.is-active { + color: #00acdc; + position: relative; +} + +.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 4px; + border-radius: 8px; + background-color: #00acdc; }