From f2f56c72b16c6772a6d05fd39a6d20ccb950fc1a Mon Sep 17 00:00:00 2001 From: Olia Shymanska Date: Thu, 7 Mar 2024 17:01:30 +0200 Subject: [PATCH] creat header --- readme.md | 4 +- src/index.html | 103 ++++++++++++++++++++++++++++++++++++++++++++- src/normalized.css | 3 ++ src/style.css | 57 +++++++++++++++++++++++++ 4 files changed, 164 insertions(+), 3 deletions(-) create mode 100644 src/normalized.css diff --git a/readme.md b/readme.md index 878beb2f85..83bf28fe7c 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://oliaShymanska.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://oliaShymanska.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..0580b5ed58 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,109 @@ rel="stylesheet" href="./style.css" /> + + + + -

Moyo header

+
+ + MOYO + + + +
diff --git a/src/normalized.css b/src/normalized.css new file mode 100644 index 0000000000..293d3b1f13 --- /dev/null +++ b/src/normalized.css @@ -0,0 +1,3 @@ +body { + margin: 0; +} diff --git a/src/style.css b/src/style.css index 293d3b1f13..c90908f88f 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,60 @@ body { + --color-link: #00acdc; + --height-header: 60px; +} + +.header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 50px; +} + +.nav__list { + display: flex; margin: 0; + padding: 0; + list-style: none; +} + +.nav__link { + font-family: Roboto, sans-serif; + font-size: 12px; + color: #000; + text-decoration: none; + text-transform: uppercase; + display: flex; + + height: var(--height-header); + align-items: center; +} + +.nav__item:not(:first-child) { + margin-left: 20px; +} + +.logo__image { + width: 40px; + height: 40px; + display: block; +} + +.nav__link:hover { + color: var(--color-link); +} + +.is-active { + color: var(--color-link); + position: relative; +} + +.is-active::after { + width: 100%; + background-color: var(--color-link); + border-radius: 8px; + content: ''; + display: block; + height: 4px; + position: absolute; + bottom: 0; }