From 2bbe18b9cac3f749fd0de4daab4635068a620985 Mon Sep 17 00:00:00 2001 From: Polina Novikova Date: Fri, 3 May 2024 16:51:12 +0300 Subject: [PATCH 1/2] add moyou header New fork --- readme.md | 4 +- src/index.html | 99 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 81 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 181 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..0fdbcb6cd6 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://pvnovikova.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://pvnovikova.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..3eb66b3f7d 100644 --- a/src/index.html +++ b/src/index.html @@ -1,3 +1,4 @@ + @@ -6,6 +7,19 @@ name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> + + + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..c9e7455c67 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,84 @@ +html { + font-family: Roboto, sans-serif; + + --active-color: #00acdc; +} + body { margin: 0; } + +.header { + display: flex; + justify-content: space-between; + align-items: center; + + padding: 0 50px; + + background: #fff; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); +} + +.header__logo { + display: flex; + height: 40px; + width: 40px; +} + +.header__logo--image { + height: 100%; + width: 100%; +} + +.nav__list { + display: flex; + margin: 0; + padding: 0; + list-style-type: none; +} + +.nav__item { + margin-left: 20px; +} + +.nav__item:first-child { + margin-left: 0; +} + +.nav__link { + position: relative; + display: flex; + align-items: center; + + height: 60px; + + font-family: Roboto, sans-serif; + text-decoration: none; + text-transform: uppercase; + font-size: 12px; + font-weight: 500; + color: #000; + white-space: nowrap; + + transition: color 0.3s; +} + +.nav__link:hover { + color: var(--active-color); +} + +.nav__link.is-active { + color: var(--active-color); +} + +.nav__link.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + right: 0; + + background-color: var(--active-color); + height: 4px; + border-radius: 2px; +} From 1d31dcdfa284cf3ae05f88c63668a3df8cc0083b Mon Sep 17 00:00:00 2001 From: Polina Novikova Date: Mon, 6 May 2024 18:26:13 +0300 Subject: [PATCH 2/2] moyo header 100500attempt --- src/index.html | 7 +++++++ src/style.css | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/index.html b/src/index.html index 3eb66b3f7d..3657f6b620 100644 --- a/src/index.html +++ b/src/index.html @@ -55,6 +55,7 @@ Apple + + + + + + +