diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fe1218b7d..1f59d9be24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,16 +14,16 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm test - name: Upload HTML report(backstop data) if: ${{ always() }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: report path: backstop_data diff --git a/.github/workflows/test.yml-template b/.github/workflows/test.yml-template new file mode 100644 index 0000000000..8b5743ecb4 --- /dev/null +++ b/.github/workflows/test.yml-template @@ -0,0 +1,29 @@ +name: Test + +on: + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test + - name: Upload HTML report(backstop data) + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: report + path: backstop_data diff --git a/readme.md b/readme.md index e72b8051e7..dbb932b6a5 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://yevhen-loboda.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://yevhen-loboda.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..62c6e22e54 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..6b0a83ba06 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,83 @@ body { margin: 0; + padding: 0; +} + +html { + font-family: Roboto, Arial, sans-serif; + font-size: 12px; + font-weight: 500; + + /* line-height: 14.06px; */ + + --active-color: #00acdc; +} + +.header { + display: flex; + width: 100%; + align-items: center; + justify-content: space-between; +} + +.nav { + margin: 0 50px 0 0; +} + +.nav__list { + display: flex; + margin: 0; + padding: 0; + list-style: none; +} + +.nav__item { + display: block; + height: 60px; + line-height: 60px; + + color: #000; + text-decoration: none; + text-transform: uppercase; +} + +li { + margin-right: 20px; +} + +li:last-child { + margin-right: 0; +} + +.is-active::after { + position: absolute; + bottom: 0; + display: block; + content: ''; + height: 4px; + width: 100%; + background-color: var(--active-color); + border-radius: 8px; +} + +.logo__image { + display: block; + width: 40px; + height: 40px; + margin: 10px 0 10px 50px; +} + +a { + text-decoration: none; + padding: 0; + margin: 0; +} + +a:hover { + color: var(--active-color); +} + +.is-active { + color: var(--active-color); + position: relative; }