diff --git a/readme.md b/readme.md index e72b8051e7..c6f1e975a8 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://AndrewT98.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://AndrewT98.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..4f401dee2d 100644 --- a/src/index.html +++ b/src/index.html @@ -4,7 +4,8 @@ + + + -

Moyo header

+
+ + MOYO Logo image + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..35482084aa 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,102 @@ body { margin: 0; + padding: 0; + box-sizing: border-box; + font-family: Roboto, Arial, sans-serif; + background-color: grey; +} + +:root { + --blue-color: #00acdc; +} + +.nav { + display: flex; + justify-content: center; + align-items: center; + text-align: center; + line-height: 60px; + height: 60px; + margin-right: 50px; +} + +@media (width: 1200px) { + .img-link { + margin-right: 419px; + } +} + +@media (width: 1024px) { + .img-link { + margin-right: 243px; + } +} + +.header { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + background-color: white; + text-transform: uppercase; + height: 60px; +} + +.img { + display: flex; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; + margin-top: 10px; + margin-bottom: 10px; +} + +.img-link { + padding-left: 50px; +} + +.box { + font-family: Roboto, sans-serif; + font-size: 12px; + text-align: center; + text-underline-position: from-font; + text-decoration: none; + font-weight: 500; + color: #000; + margin-right: 20px; + flex-grow: 0; + flex-shrink: 1; + white-space: nowrap; +} + +.box-8 { + margin: 0; + padding: 0; +} + +.box:hover { + color: var(--blue-color); +} + +.is-active { + position: relative; + color: var(--blue-color); + display: flex; + justify-content: center; + align-items: center; + text-decoration: none; +} + +.is-active::after { + content: ''; + position: absolute; + bottom: -0.2px; + left: 0; + right: 0; + margin: 0 auto; + width: 37px; + height: 4px; + background-color: var(--blue-color); + border-radius: 8px; }