diff --git a/npm b/npm new file mode 100644 index 0000000000..e69de29bb2 diff --git a/package-lock.json b/package-lock.json index 2bf24b2629..3e4a3eafd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -995,9 +995,9 @@ "dev": true }, "@mate-academy/scripts": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/@mate-academy/scripts/-/scripts-1.7.3.tgz", - "integrity": "sha512-5cqlZbgbwIxiicQsjP7OR0cR/QBZTipfe4Eh/6VLn0dvP9yAhnZBu3ZN3PjS/1swlVthnIFrNL7xzU4gbPu3dQ==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@mate-academy/scripts/-/scripts-1.8.1.tgz", + "integrity": "sha512-zRhcI3uiflwWXeODuyELMqh1j4s438nTRiXXQ+v6Cs95kWMrfUDuzmg6ZqqJuIPZtmpg0KTLghGBf38vKalW/g==", "dev": true, "requires": { "@octokit/rest": "^17.11.2", diff --git a/package.json b/package.json index 431baa9059..ba53b32302 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@mate-academy/backstop-config": "latest", "@mate-academy/bemlint": "latest", "@mate-academy/linthtml-config": "latest", - "@mate-academy/scripts": "^1.7.3", + "@mate-academy/scripts": "^1.8.1", "@mate-academy/stylelint-config": "latest", "backstopjs": "6.2.2", "jest": "^29.7.0", diff --git a/readme.md b/readme.md index e72b8051e7..4205c3995b 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://maristella12.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://maristella12.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..aa1fea3855 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,109 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+ "" +
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..6100ea05a0 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,96 @@ +html { + --bluecolor: #00acdc; + --blackcolor: #000; +} + body { + margin: 0 auto; + font-family: Roboto, sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 500; + line-height: normal; + text-transform: uppercase; +} + +.header { + display: flex; + min-width: 1024px; + align-items: center; + justify-content: space-between; margin: 0; } + +.nav { + margin-right: 50px; +} + +.nav__logo { + height: 40px; + margin-left: 50px; +} + +.nav__list { + display: flex; + list-style-type: none; + margin: 0; + padding: 0; +} + +.nav__item { + margin: 0 0 0 20px; +} + +.nav__item:first-child { + margin-left: 0; +} + +.nav__item:last-child { + margin-right: 0; +} + +.nav__link { + text-decoration: none; + display: inline-block; + height: 60px; + line-height: 60px; +} + +.nav__link:link { + color: var(--blackcolor); +} + +.nav__link:visited { + color: var(--blackcolor); +} + +.nav__link:hover { + color: var(--bluecolor); +} + +.nav__link:active { + color: var(--bluecolor); +} + +.is-active { + position: relative; + color: var(--bluecolor); +} + +.is-active:link { + color: var(--bluecolor); +} + +.is-active:visited { + color: var(--bluecolor); +} + +.is-active::after { + content: ''; + display: block; + position: relative; + bottom: 4px; + height: 4px; + border-radius: 8px; + background-color: var(--bluecolor); +}