-
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 #5835
base: master
Are you sure you want to change the base?
Develop #5835
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,13 +10,74 @@ | |
http-equiv="X-UA-Compatible" | ||
content="ie=edge" | ||
/> | ||
<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" | ||
/> | ||
<title>Moyo header</title> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<!-- <h1>Moyo header</h1> --> | ||
<header class="header"> | ||
<a | ||
href="index.html" | ||
class="logo" | ||
> | ||
<img | ||
src="images/logo.png" | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
alt="MOYOlogo" | ||
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. Consider providing a more descriptive |
||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul class="nav-links"> | ||
<li class="link"> | ||
<a | ||
href="index.html" | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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="is-active" | ||
> | ||
apple | ||
</a> | ||
</li> | ||
<li class="link"> | ||
<a href="index.html">samsung</a> | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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 |
||
</li> | ||
<li class="link"> | ||
<a href="index.html">smartphones</a> | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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 |
||
</li> | ||
<li class="link"> | ||
<a | ||
href="index.html" | ||
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 |
||
data-qa="hover" | ||
> | ||
laptops & computers | ||
</a> | ||
</li> | ||
<li class="link"> | ||
<a href="index.html">gadgets</a> | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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 |
||
</li> | ||
<li class="link"> | ||
<a href="index.html">tablets</a> | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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 |
||
</li> | ||
<li class="link"> | ||
<a href="index.html">photo</a> | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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 |
||
</li> | ||
<li class="link last"> | ||
<a href="index.html">video</a> | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
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 |
||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,82 @@ | ||
:root { | ||
--primary-color: #00acdc; | ||
} | ||
|
||
html, | ||
body { | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
h1 { | ||
margin: 38px 0; | ||
redkeyKA42 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
.header { | ||
justify-content: space-between; | ||
display: flex; | ||
align-items: center; | ||
padding: 0 50px; | ||
} | ||
|
||
.logo { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.nav { | ||
height: 60px; | ||
display: flex; | ||
} | ||
|
||
.nav-links { | ||
display: flex; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
display: flex; | ||
height: 100%; | ||
align-items: center; | ||
color: #000; | ||
font-size: 12px; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
} | ||
|
||
a:hover { | ||
color: var(--primary-color); | ||
} | ||
|
||
.is-active { | ||
color: var(--primary-color); | ||
|
||
position: relative; | ||
} | ||
|
||
.link { | ||
text-decoration: none; | ||
list-style: none; | ||
margin-right: 20px; | ||
} | ||
|
||
.is-active::after { | ||
width: 100%; | ||
content: ''; | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
height: 4px; | ||
background-color: var(--primary-color); | ||
|
||
border-radius: 8px; | ||
} | ||
|
||
.last { | ||
margin: 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 'index.html'. If this link is intended to navigate to a different section or page, please ensure thehref
attribute is correctly set to the respective URL.