From 72f0e10a0f5f610f2fa6f8d5627075d3fa226ace Mon Sep 17 00:00:00 2001 From: coroh Date: Mon, 30 Dec 2024 16:40:38 -0300 Subject: [PATCH] add task solution --- readme.md | 4 +-- src/index.html | 67 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 55 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..08727c805a 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://coroh.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://coroh.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..ce130cda95 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,73 @@ rel="stylesheet" href="./style.css" /> + -

Moyo header

+ diff --git a/src/style.css b/src/style.css index 293d3b1f13..b475d5fe6e 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,58 @@ +* { + box-sizing: border-box; +} + body { margin: 0; + font-family: Roboto, sans-serif; +} + +.menu-wraper { + display: flex; + justify-content: space-between; + padding: 0 50px; + height: 60px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); +} + +.menu-logo, +.menu-list { + display: flex; + align-items: center; +} + +.menu-item { + margin-right: 20px; + padding: 23px 0; + line-height: 14px; + text-decoration: none; + font-weight: 500; + font-size: 12px; + font-style: normal; + text-transform: uppercase; + color: #000; +} + +.menu-item:last-child { + margin-right: 0; +} + +.menu-item:hover { + color: #00acdc; +} + +.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; }