diff --git a/readme.md b/readme.md index e72b8051e7..236cc89562 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://Remdigger.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://Remdigger.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..4134c71b65 100644 --- a/src/index.html +++ b/src/index.html @@ -1,6 +1,18 @@ + + + -

Moyo header

+
+ + +
diff --git a/src/logo.png b/src/logo.png new file mode 100644 index 0000000000..9ea6299ec2 Binary files /dev/null and b/src/logo.png differ diff --git a/src/style.css b/src/style.css index 293d3b1f13..907b105b8c 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,82 @@ +html { + --link-color: #00acdc; +} + body { margin: 0; + font-family: Roboto, sans-serif; + font-size: 12px; + font-weight: 500; + font-style: normal; + box-sizing: border-box; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 50px; +} + +.logo { + /* display: block; + padding: 10px 0; */ + height: 40px; +} + +.nav-list { + display: flex; + align-items: center; + list-style: none; + margin: 0; + padding: 0; +} + +li { + /* display: flex; + text-align: center; + height: 60px; + line-height: 60px; */ + margin-left: 20px; +} + +a { + display: flex; + height: 100%; + text-decoration: none; +} + +nav a { + display: block; + height: 60px; + line-height: 60px; + text-align: center; + text-decoration: none; + text-transform: uppercase; + color: #000; + width: 100%; +} + +li:first-child { + margin-left: 0; +} + +nav a:hover { + color: var(--link-color); +} + +nav a.is-active { + position: relative; + color: var(--link-color); +} + +nav a.is-active::after { + position: absolute; + content: ''; + border-radius: 8px; + background-color: var(--link-color); + bottom: 0; + left: 0; + width: 100%; + height: 4px; }