-
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
develop #5604
base: master
Are you sure you want to change the base?
develop #5604
Changes from 1 commit
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 |
---|---|---|
|
@@ -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" | ||
/> | ||
|
||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a | ||
class="logo" | ||
href="dr" | ||
> | ||
<img | ||
src="./images/logo.png" | ||
alt="logo" | ||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul class="nav-list"> | ||
<li class="nav-item"> | ||
<a | ||
class="nav-link is-active" | ||
href="Apple" | ||
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="nav-item"> | ||
<a | ||
class="nav-link" | ||
href="Samsung" | ||
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="nav-item"> | ||
<a | ||
class="nav-link" | ||
href="Smartphones" | ||
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="nav-item"> | ||
<a | ||
class="nav-link" | ||
data-qa="hover" | ||
href="Laptops & Computers" | ||
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 | ||
class="nav-link" | ||
href="Gadgets" | ||
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="nav-item"> | ||
<a | ||
class="nav-link" | ||
href="Tablets" | ||
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="nav-item"> | ||
<a | ||
class="nav-link" | ||
href="Photo" | ||
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="nav-item"> | ||
<a | ||
class="nav-link" | ||
href="Video" | ||
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,77 @@ | ||
:root { | ||
--active-color: #00acdc; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
html { | ||
font-family: Roboto, Arial, sans-serif; | ||
font-size: 12px; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
position: relative; | ||
box-shadow: 0 2px 4px 0 #0000000d; | ||
padding: 0 50px; | ||
} | ||
|
||
.nav-list { | ||
list-style-type: none; | ||
display: flex; | ||
margin: 0; | ||
padding-left: 0; | ||
} | ||
|
||
.nav-link { | ||
display: flex; | ||
position: relative; | ||
align-items: center; | ||
height: 60px; | ||
margin-left: 20px; | ||
color: black; | ||
text-decoration: none; | ||
} | ||
|
||
.nav-item { | ||
cursor: default; | ||
justify-content: center; | ||
} | ||
|
||
.is-active { | ||
margin-left: 0; | ||
color: var(--active-color); | ||
} | ||
|
||
.nav__link: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 selector |
||
color: var(--active-color); | ||
} | ||
|
||
.logo { | ||
display: flex; | ||
width: 40px; | ||
height: 40px; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.is-active::after { | ||
content: ''; | ||
display: block; | ||
width: 100%; | ||
height: 4px; | ||
background-color: var(--active-color); | ||
position: absolute; | ||
bottom: 0; | ||
border-radius: 8px; | ||
} | ||
|
||
: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 |
||
color: var(--active-color); | ||
} |
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 'dr', which seems incorrect. It should be a valid URL or path. Consider updating it to the correct destination.