From 15da049c3cb14221d37b5080ea17746942a18f15 Mon Sep 17 00:00:00 2001 From: Dmytro Konarev Date: Thu, 28 Nov 2024 15:11:11 +0200 Subject: [PATCH] moyo header completed --- readme.md | 4 +-- src/index.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 65 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 140 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..55b872992b 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://DmytroKonarev.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://DmytroKonarev.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..1cee1e3032 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,84 @@ content="ie=edge" /> Moyo header + + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..8faa71454c 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,68 @@ +html, body { margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: Roboto, sans-serif; +} + +header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 50px; +} + +.logo img { + height: 40px; + width: 40px; + vertical-align: top; +} + +nav ul { + display: flex; + list-style: none; + margin: 0; + padding: 0; +} + +nav ul li { + margin-right: 20px; + font-weight: 500; +} + +nav ul li:last-child { + margin-right: 0; +} + +nav ul li a { + text-decoration: none; + font-size: 12px; + color: #000; + height: 60px; + display: flex; + align-items: center; + position: relative; +} + +nav ul li a:hover { + color: #00acdc; +} + +nav ul li .is-active::after { + content: ''; + width: 100%; + position: absolute; + bottom: 0; + left: 0; + height: 4px; + background-color: #00acdc; + border-radius: 8px; +} + +nav ul li a.is-active { + color: #00acdc; }