-
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
Moyo header #5730
base: master
Are you sure you want to change the base?
Moyo header #5730
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 |
---|---|---|
|
@@ -15,8 +15,99 @@ | |
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a | ||
href="#" | ||
class="logo" | ||
> | ||
<img | ||
src="./images/logo.png" | ||
alt="logo Moyo" | ||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul class="nav_list"> | ||
<li class="nav_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 |
||
class="nav_link is-active" | ||
> | ||
Apple | ||
</a> | ||
</li> | ||
|
||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
|
||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link" | ||
> | ||
Smartphones | ||
</a> | ||
</li> | ||
|
||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_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="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link" | ||
> | ||
Gadgets | ||
</a> | ||
</li> | ||
|
||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link" | ||
> | ||
Tablets | ||
</a> | ||
</li> | ||
|
||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link" | ||
> | ||
Photo | ||
</a> | ||
</li> | ||
|
||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link" | ||
> | ||
Video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,78 @@ | ||
:root { | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
font-weight: 500; | ||
margin: 0; | ||
|
||
--active-link-color: #00acdc; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
.header { | ||
box-sizing: border-box; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 100%; | ||
padding: 0 50px; | ||
} | ||
|
||
.logo { | ||
width: 40px; | ||
height: 40px; | ||
} | ||
|
||
.nav_list { | ||
margin: 0; | ||
padding: 0; | ||
height: 60px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.nav_item { | ||
list-style: none; | ||
line-height: 60px; | ||
margin-right: 20px; | ||
} | ||
|
||
.nav_link { | ||
color: #000; | ||
font-size: 12px; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
text-decoration: none; | ||
display: flex; | ||
} | ||
|
||
a:hover { | ||
color: var(--active-link-color); | ||
text-decoration: none; | ||
} | ||
|
||
.is-active { | ||
color: var(--active-link-color); | ||
position: relative; | ||
} | ||
|
||
.is-active::after { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
background-color: var(--active-link-color); | ||
height: 4px; | ||
width: 100%; | ||
border-radius: 8px; | ||
bottom: 0; | ||
} | ||
|
||
.nav_link .is-active { | ||
color: var(--active-link-color); | ||
} | ||
Comment on lines
+72
to
+74
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 selector |
||
|
||
.nav_item:last-child { | ||
margin-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 for the logo link is set to '#', which is a placeholder. Consider providing a valid URL or using JavaScript to handle the click event if it's meant to be interactive.