From 8cb45c5f15c0207bca0482c10aa8984ac2aa30fa Mon Sep 17 00:00:00 2001 From: Daria Kondratiuk Date: Tue, 17 Dec 2024 22:38:50 -0500 Subject: [PATCH] add task solution new --- readme.md | 4 +- src/images/Rectangle 2.svg | 3 ++ src/index.html | 76 +++++++++++++++++++++++++++++++++++++- src/style.css | 59 +++++++++++++++++++++++++++++ 4 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 src/images/Rectangle 2.svg diff --git a/readme.md b/readme.md index e72b8051e7..2efb8eceab 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://kondratiukD.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://kondratiukD.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/images/Rectangle 2.svg b/src/images/Rectangle 2.svg new file mode 100644 index 0000000000..5bbad70210 --- /dev/null +++ b/src/images/Rectangle 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/index.html b/src/index.html index b39fe97123..fecba02044 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,82 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..151abc9c8e 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,62 @@ +:root { + --blue-color: #00acdc; +} + body { margin: 0; + font-family: Roboto, serif; + font-size: 12px; + font-weight: 500; + font-style: normal; +} + +.link { + display: flex; + color: black; + text-decoration: none; + text-transform: uppercase; + align-items: center; + height: 100%; + white-space: nowrap; +} + +a.link.is-active { + color: var(--blue-color) !important; + text-decoration: none; + background-image: url(./images/Rectangle\ 2.svg); + background-repeat: no-repeat; + + background-position: bottom center; + background-size: contain; +} + +a.link.is-active:hover, +a.link.hover:hover { + color: var(--blue-color) !important; +} + +.img { + display: block; + padding: 10px 0; + width: 40px; + height: 40px; +} + +.nav-bar { + display: flex; + align-items: center; + gap: 20px; + height: 60px; +} + +.navigation { + display: flex; + justify-content: space-between; + gap: 419px; + background-color: #fff; + padding: 0 50px; + + @media screen and (max-width: 1024px) { + gap: 243px; + } }