diff --git a/readme.md b/readme.md index e72b8051e7..c372e8943d 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://Sahardi.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://Sahardi.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..c7fd25c2b8 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,101 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..f8a09cd6d8 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,74 @@ -body { +.body { margin: 0; } + +.header { + display: flex; + min-width: 1024px; + max-width: 1200px; + justify-content: space-between; + font-family: Roboto, serif; + font-size: 12px; + line-height: 14px; + background-color: #fff; + padding-left: 50px; + padding-right: 50px; +} + +.image { + display: flex; + justify-self: start; + align-items: center; + height: 40px; + width: 40px; + margin-top: 10px; +} + +.nav { + display: flex; +} + +.nav__list { + display: flex; + list-style-type: none; + margin: 0; + padding: 0; +} + +.nav__item { + display: block; +} + +.nav__item:nth-child(n + 2) { + margin-left: 20px; +} + +.nav__link { + display: flex; + text-transform: uppercase; + text-decoration: none; + color: #000; + height: 60px; + align-items: center; + justify-content: center; +} + +.nav__link:hover { + color: #00acdc; +} + +.is-active { + position: relative; + color: #00acdc; +} + +.is-active::after { + content: ''; + width: 100%; + height: 4px; + background: #00acdc; + position: absolute; + bottom: 0; + left: 0; + border-radius: 8px; +}