-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 header #5740
base: master
Are you sure you want to change the base?
add header #5740
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 |
---|---|---|
|
@@ -15,8 +15,55 @@ | |
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
<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" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a href="https://127.0.0.1:5500/src/index.html"> | ||
<img | ||
class="img" | ||
src="images/logo.png" | ||
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. Ensure the |
||
alt="logo" | ||
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 |
||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul> | ||
<li> | ||
<a | ||
class="is-active" | ||
href="#" | ||
> | ||
apple | ||
</a> | ||
</li> | ||
<li><a href="#">samsung</a></li> | ||
<li><a href="#">smartphones</a></li> | ||
<li> | ||
<a | ||
data-qa="hover" | ||
href="#" | ||
> | ||
laptops & computers | ||
</a> | ||
</li> | ||
<li><a href="#">gadgets</a></li> | ||
<li><a href="#">tables</a></li> | ||
<li><a href="#">photo</a></li> | ||
<li><a href="#">video</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,65 @@ | ||
body { | ||
margin: 0; | ||
font-family: Roboto, sans-serif; | ||
font-weight: 700; | ||
font-style: normal; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
width: 1200px; | ||
background-color: #fff; | ||
justify-content: space-between; | ||
|
||
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. There is a missing closing bracket '}' for the '.header' class. Ensure that each CSS rule set is properly closed to avoid unexpected behavior. |
||
.img { | ||
display: block; | ||
margin-left: 50px; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
.nav { | ||
margin-right: 50px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
a { | ||
text-decoration: none; | ||
color: black; | ||
} | ||
|
||
ul { | ||
display: flex; | ||
font-size: 12px; | ||
list-style: none; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
} | ||
li:not(:last-child) { | ||
margin-right: 20px; | ||
} | ||
} | ||
|
||
.blue { | ||
color: #00acdc; | ||
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 color value |
||
} | ||
|
||
a:hover { | ||
color: #00acdc; | ||
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 color value |
||
} | ||
|
||
.is-active { | ||
color: #00acdc; | ||
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 color value |
||
position: relative; | ||
} | ||
|
||
.is-active::after { | ||
content: ''; | ||
position: absolute; | ||
left: 0; | ||
bottom: -22.5px; | ||
width: 100%; | ||
height: 4px; | ||
border-radius: 8px; | ||
background-color: #00ACDC; | ||
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 background-color value |
||
} |
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 in the anchor tag should point to the actual homepage URL rather than a local server URL likehttps://127.0.0.1:5500/src/index.html
. Consider using a relative path or the correct URL for deployment.