Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #5853

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Develop #5853

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/test.yml-template
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
"keywords": [],
"author": "Mate Academy",
"license": "GPL-3.0",
"dependencies": {},
"devDependencies": {
"@linthtml/linthtml": "^0.9.6",
"@mate-academy/backstop-config": "latest",
"@mate-academy/bemlint": "latest",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^1.8.6",
"@mate-academy/scripts": "^1.9.12",
"@mate-academy/stylelint-config": "latest",
"backstopjs": "6.3.23",
"jest": "^29.7.0",
Expand Down
18 changes: 9 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan

❗️ Replace `<your_account>` with your Github username and copy the links to `Pull Request` description:

- [DEMO LINK](https://<your_account>.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://<your_account>.github.io/layout_moyo-header/report/html_report/)
- [DEMO LINK](https://KalianaBueno.github.io/layout_moyo-header/)
- [TEST REPORT LINK](https://KalianaBueno.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.

- [ ] Header height is set in 1 place (for the links)
- [ ] Content is vertically centered (for any header height)
- [ ] CSS is used to show all letters in Uppercase (don't type them in HTML)
- [ ] Logo is an image wrapped with a link
- [ ] **CSS Variable** is used for a blue color
- [ ] Pseudo-element is used for a blue line below the active link
- [ ] Code follows all the [Code Style Rules ❗️](./checklist.md)
- [x] Header height is set in 1 place (for the links)
- [x] Content is vertically centered (for any header height)
- [x] CSS is used to show all letters in Uppercase (don't type them in HTML)
- [x] Logo is an image wrapped with a link
- [x] **CSS Variable** is used for a blue color
- [x] Pseudo-element is used for a blue line below the active link
- [x] Code follows all the [Code Style Rules ❗️](./checklist.md)
42 changes: 41 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,52 @@
content="ie=edge"
/>
<title>Moyo header</title>

<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>

<link
rel="stylesheet"
href="./style.css"
/>
</head>

<body>
<h1>Moyo header</h1>
<header class="header">
<a href="#logo">
<img
src="./images/logo.png"
alt="logo da empresa moyo"
/>
</a>
<nav class="nav--bar">
<ul class="nav--links">
<li class="nav--link is-active"><a href="#apple">Apple</a></li>
<li class="nav--link"><a href="#Samsung">Samsung</a></li>
<li class="nav--link"><a href="#Smartphones">Smartphones</a></li>
<li
class="nav--link"
data-qa="hover"
>
<a href="#Laptops">Laptops & Computers</a>
</li>
<li class="nav--link"><a href="#gadgets">Gadgets</a></li>
<li class="nav--link"><a href="#tablets">Tablets</a></li>
<li class="nav--link"><a href="#photo">Photo</a></li>
<li class="nav--link"><a href="#video">Video</a></li>
</ul>
</nav>
</header>
</body>
</html>
74 changes: 73 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
body {
* {
margin: 0;
font-family: Roboto, serif;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 50px;
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav--bar {
display: flex;
align-items: center;
justify-content: space-between;
}

img {
width: 100%;
height: 100%;

/* display: inline-block; */
}

.nav--links {
display: flex;
list-style: none;
padding: 0;
margin: 0;
}

.nav--link {
margin-left: 20px;
position: relative;
}

.nav--link a {
text-decoration: none;
color: #000;
text-transform: uppercase;
font-size: 12px;
line-height: 60px;
font-weight: 500;
}

/* .is-active a {
color: rgba(0, 172, 220, 1);

} */

.is-active a {
color: rgba(0, 172, 220, 1);

/* position: relative; */
}

.is-active a::after {
content: '';
display: block;
width: 100%;
height: 4px;
background-color: rgba(0, 172, 220, 1);
position: absolute;
left: 0;
right: 0;
bottom: 0;
border-radius: 8px;
}

.nav--link a:hover {
color: rgba(0, 172, 220, 1);
}
Loading