-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 #5875
base: master
Are you sure you want to change the base?
Develop #5875
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 |
---|---|---|
|
@@ -6,17 +6,110 @@ | |
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
/> | ||
<meta | ||
http-equiv="X-UA-Compatible" | ||
content="ie=edge" | ||
/> | ||
<title>Moyo header</title> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.googleapis.com" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
href="style.css" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a | ||
class="logo" | ||
href="#" | ||
> | ||
<img | ||
src="images/logo.png" | ||
alt="MOYO" | ||
class="logo_img" | ||
/> | ||
</a> | ||
|
||
<nav class="nav"> | ||
<ul class="menu"> | ||
<li class="element"> | ||
<a | ||
class="link is-active" | ||
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 |
||
> | ||
Apple | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<a | ||
class="link" | ||
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 |
||
> | ||
Samsung | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<a | ||
class="link" | ||
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 |
||
> | ||
Smartphones | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<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 |
||
class="link" | ||
data-qa="hover" | ||
> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<a | ||
class="link" | ||
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 |
||
> | ||
Gadgets | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<a | ||
class="link" | ||
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 |
||
> | ||
Tablets | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<a | ||
class="link" | ||
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 |
||
> | ||
Photo | ||
</a> | ||
</li> | ||
|
||
<li class="element"> | ||
<a | ||
class="link" | ||
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 |
||
> | ||
Video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,72 @@ | ||
body { | ||
--nav-color: #00acdc; | ||
|
||
margin: 0; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
background-color: #fff; | ||
padding: 0 50px; | ||
} | ||
|
||
.logo { | ||
display: block; | ||
height: 40px; | ||
width: 40px; | ||
} | ||
|
||
.logo_img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.menu { | ||
display: flex; | ||
padding: 0; | ||
margin: 0; | ||
list-style: none; | ||
} | ||
|
||
.element { | ||
margin-left: 20px; | ||
} | ||
|
||
.element:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
.link { | ||
height: 60px; | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
white-space: nowrap; | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
text-decoration: none; | ||
color: black; | ||
} | ||
|
||
.link:hover { | ||
color: var(--nav-color); | ||
} | ||
|
||
.link.is-active { | ||
color: var(--nav-color); | ||
} | ||
|
||
.link.is-active::after { | ||
content: ''; | ||
height: 4px; | ||
border-radius: 2px; | ||
position: absolute; | ||
background-color: var(--nav-color); | ||
bottom: 0; | ||
left: 0; | ||
right: 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 set to#
, which is a placeholder. Please replace it with the actual URL where the logo link should point.