diff --git a/readme.md b/readme.md index e72b8051e7..a0ddd0ed75 100644 --- a/readme.md +++ b/readme.md @@ -27,15 +27,15 @@ 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://anna-poplavska.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://anna-poplavska.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. -- [ ] Header height is set in 1 place (for the links) -- [ ] Content is vertically centered (for any header height) -- [ ] CSS is used to show all letters in Uppercase (don't type them in HTML) -- [ ] Logo is an image wrapped with a link -- [ ] **CSS Variable** is used for a blue color -- [ ] Pseudo-element is used for a blue line below the active link -- [ ] Code follows all the [Code Style Rules ❗️](./checklist.md) +- [x] Header height is set in 1 place (for the links) +- [x] Content is vertically centered (for any header height) +- [x] CSS is used to show all letters in Uppercase (don't type them in HTML) +- [x] Logo is an image wrapped with a link +- [x] **CSS Variable** is used for a blue color +- [x] Pseudo-element is used for a blue line below the active link +- [x] Code follows all the [Code Style Rules ❗️](./checklist.md) diff --git a/src/index.html b/src/index.html index b39fe97123..5946d19ae9 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,101 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ + Moyo logo + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..1153fcf273 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,71 @@ body { + --primary-link-color: #000; + --highlight-link-color: #00acdc; + margin: 0; } + +.header { + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo__link { + margin-left: 50px; +} + +.logo__img { + display: block; + width: 40px; + height: 40px; +} + +.nav { + margin-right: 50px; +} + +.nav__list { + display: flex; + align-items: center; + padding: 0; + margin: 0; + list-style: none; +} + +.nav__link { + display: flex; + align-items: center; + position: relative; + height: 60px; + text-transform: uppercase; + font-family: Roboto, serif; + font-size: 12px; + font-weight: 500; + color: var(--primary-link-color); + text-decoration: none; +} + +.nav__item:not(:last-child) { + margin-right: 20px; +} + +.nav__link:hover { + color: var(--highlight-link-color); +} + +.is-active { + color: var(--highlight-link-color); +} + +.is-active::after { + content: ''; + position: absolute; + bottom: 0; + width: 100%; + left: 0; + height: 4px; + border-radius: 8px; + background-color: var(--highlight-link-color); +}