From 897fd18e58242a6ea49bdcfe3907c2c984f9e196 Mon Sep 17 00:00:00 2001 From: ValentynaD Date: Tue, 26 Nov 2024 20:55:38 +0200 Subject: [PATCH 1/5] add task solution --- readme.md | 4 +-- src/index.html | 43 ++++++++++++++++++++++++- src/style.css | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..d65a892365 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://ValentynaD.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://ValentynaD.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..f20e293d8a 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..7c40027709 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,90 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + body { + font-family: Roboto, sans-serif; +} + +header { + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + display: flex; + align-items: center; + padding-bottom: 20px; + margin-left: 50px; +} + +.logo img { + display: flex; + align-items: center; + height: 40px; margin: 0; } + +nav { + display: flex; + align-items: center; + margin-right: 50px; +} + +nav a { + height: 60px; + line-height: 60px; + color: #000; + text-decoration: none; + font-family: Roboto, sans-serif; + font-weight: 500; + font-size: 12px; +} + +nav ul { + display: flex; + list-style: none; + align-items: center; + gap: 20px; +} + +nav ul li { + display: flex; + align-items: center; + padding-bottom: 20px; +} + +nav ul li:first-child { + margin-left: 0; +} + +nav ul li:last-child { + margin-right: 0; +} + +nav a:hover { + color: #00acdc; +} + +nav a.is-active { + color: #00acdc; + text-transform: uppercase; + position: relative; +} + +nav a.is-active::after { + content: ''; + display: block; + width: 37px; + height: 4px; + background-color: #00acdc; + border-radius: 8px; + position: absolute; + bottom: 0; + left: 50%; + transform: translateX(-50%); +} From 7fda226459f332d94d8dd7113dc7a6edef574da7 Mon Sep 17 00:00:00 2001 From: ValentynaD Date: Wed, 27 Nov 2024 13:27:45 +0200 Subject: [PATCH 2/5] css alt img aria-label --- src/index.html | 11 ++++++----- src/style.css | 11 +++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/index.html b/src/index.html index f20e293d8a..8ed396a351 100644 --- a/src/index.html +++ b/src/index.html @@ -21,23 +21,24 @@ /> +

Moyo header

-