-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
add task solution #5739
base: master
Are you sure you want to change the base?
add task solution #5739
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,105 @@ | |
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:wght@500&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header> | ||
<a | ||
class="navigation__logo" | ||
href="#" | ||
> | ||
<img | ||
class="logo" | ||
src="images/logo.png" | ||
alt="Site logo" | ||
/> | ||
</a> | ||
<nav class="navigation"> | ||
<ul class="navigation__list"> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link is-active" | ||
> | ||
Apple | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
> | ||
Smartphones | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
data-qa="hover" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
> | ||
Gadgets | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
> | ||
Tablets | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
> | ||
Photo | ||
</a> | ||
</li> | ||
<li class="navigation__item"> | ||
<a | ||
href="#" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The href attribute is set to '#'. Ensure this is intentional or replace it with a valid URL. |
||
class="navigation__link" | ||
> | ||
Video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,71 @@ | ||
:root { | ||
--primary-color: #00acdc; | ||
--primary-background: #fff; | ||
--primary-background-alternative: #e5e5e5; | ||
--primary-text-color: #000; | ||
--font-family: 'Roboto', serif; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
header { | ||
background-color: var(--primary-background); | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 50px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The padding is set to a fixed value of 50px. Consider using relative units like percentages or rems for better responsiveness across different screen sizes. |
||
} | ||
|
||
.navigation__logo { | ||
display: flex; | ||
} | ||
|
||
.navigation__list { | ||
display: flex; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.navigation__item { | ||
margin-left: 20px; | ||
} | ||
|
||
.navigation__item:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
.navigation__link { | ||
height: 60px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The height is set to a fixed value of 60px. Consider using relative units or media queries to adjust this for different screen sizes. |
||
display: flex; | ||
align-items: center; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
color: var(--primary-text-color); | ||
font-family: var(--font-family); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-size: 12px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The font size is set to 12px, which might be too small for readability on some devices. Consider using relative units like em or rem for better accessibility. |
||
} | ||
|
||
.navigation__link:hover { | ||
color: var(--primary-color); | ||
} | ||
|
||
.is-active { | ||
color: var(--primary-color); | ||
position: relative; | ||
} | ||
|
||
.is-active::after { | ||
content: ''; | ||
display: block; | ||
height: 4px; | ||
width: 100%; | ||
position: absolute; | ||
border-radius: 8px; | ||
background-color: var(--primary-color); | ||
bottom: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The href attribute is currently set to '#', which is a placeholder. Consider replacing it with a valid URL or a JavaScript function if this is intended to be a clickable link.