diff --git a/readme.md b/readme.md index e72b8051e7..e9cccdb58e 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://amir-al-mohamad.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://amir-al-mohamad.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..6999883e81 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,97 @@ content="ie=edge" /> Moyo header + -

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..54dc429f8f 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,82 @@ +:root { + --font-family: 'Roboto', Arial, sans-serif; +} + body { + font-family: var(--font-family); + font-weight: 500; + font-size: 12px; + color: #000; + margin: 0; + + --header-height: 60px; + --blue-color: #00acdc; +} + +.header { + padding: 0 50px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.header__logo { + height: 40px; + width: 40px; +} + +.header__img { + height: 100%; + width: 100%; + display: inline-block; +} + +.menu { + align-items: center; + display: flex; +} + +.menu__list { + padding: 0; margin: 0; + display: flex; +} + +.menu__link { + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; + text-align: center; + display: block; + color: inherit; + line-height: var(--header-height); +} + +.menu__link.is-active, +.menu__link:hover { + color: var(--blue-color); +} + +.menu__link.is-active { + position: relative; +} + +.menu__link.is-active::after { + width: 100%; + height: 4px; + border-radius: 8px; + left: 0; + background-color: var(--blue-color); + bottom: 0; + position: absolute; + content: ''; +} + +.menu__item { + margin-right: 20px; + list-style: none; +} + +.menu__item:last-child { + margin-right: 0; }