diff --git a/readme.md b/readme.md index e72b8051e7..5d5768ba5e 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://AllanCordella.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://AllanCordella.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..2d6ee37f0d 100644 --- a/src/index.html +++ b/src/index.html @@ -10,13 +10,107 @@ http-equiv="X-UA-Compatible" content="ie=edge" /> - Moyo header + + + + MOYO Header -

Moyo header

+
+ + moyologo + + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..10b62168ba 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,99 @@ +html { + margin: 0; + font-family: roboto, sans-serif; +} + body { margin: 0; } + +a { + text-decoration: none; + color: #000; +} + +ul { + padding: 0; + list-style: none; +} + +li { + list-style: none; +} + +.img { + position: absolute; + top: 10px; + left: 50px; +} + +.header { + display: flex; + + background-color: #fff; + + justify-content: end; + align-items: center; +} + +.nav { + /* background-color: chartreuse; */ + + width: 639px; + height: 60px; + display: flex; + align-items: center; + margin-right: 50px; +} + +.nav__list { + display: flex; + width: 100%; + align-items: center; + + /* background-color: blueviolet; */ + + justify-content: space-between; +} + +.nav__item { + /* background-color: beige; */ + display: flex; + align-items: center; + flex-direction: row; + justify-content: center; +} + +.nav__link { + /* background-color: cyan; */ + height: 60px; + display: flex; + font-weight: 500; + color: #000; + font-size: 12px; + text-transform: uppercase; + align-items: center; +} + +.nav__link:hover { + color: #00acdc; +} + +.is-active { + color: #00acdc; + display: flex; + align-items: center; + position: relative; +} + +.is-active::after { + content: ''; + + background-color: #00acdc; + border: solid #00acdc 1px; + height: 2px; + border-radius: 8px; + position: absolute; + bottom: 0; + width: 36px; +}