-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Solution #5813
base: master
Are you sure you want to change the base?
Solution #5813
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 |
---|---|---|
|
@@ -11,12 +11,67 @@ | |
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:ital,wght@0,400;0,700;1,400&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header> | ||
<div class="header-logo"> | ||
<a href="/"> | ||
<img | ||
src="images/logo.png" | ||
alt="Moyo 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> | ||
</div> | ||
<nav class="navigation"> | ||
<ul class="nav-link-list"> | ||
<li class="link-item"> | ||
<a href="/">Apple</a> | ||
</li> | ||
<li class="link-item"> | ||
<a href="/">Samsung</a> | ||
</li> | ||
<li class="link-item"> | ||
<a href="/">Smartphones</a> | ||
</li> | ||
<li class="link-item"> | ||
<a | ||
href="/" | ||
data-qa="hover" | ||
class="is-active" | ||
> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
<li class="link-item"> | ||
<a href="/">Gadgets</a> | ||
</li> | ||
<li class="link-item"> | ||
<a href="/">Tablets</a> | ||
</li> | ||
<li class="link-item"> | ||
<a href="/">Photo</a> | ||
</li> | ||
<li class="link-item"> | ||
<a href="/">Video</a> | ||
Comment on lines
+34
to
+71
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,61 @@ | ||
:root { | ||
--main-blue-color: #00acdc; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 40px; | ||
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 adding a |
||
} | ||
|
||
.navigation { | ||
margin: 0; | ||
} | ||
|
||
.nav-link-list { | ||
display: flex; | ||
margin: 0; | ||
} | ||
|
||
.link-item { | ||
list-style: none; | ||
line-height: 60px; | ||
position: relative; | ||
} | ||
|
||
.link-item:not(:last-child) { | ||
margin-right: 20px; | ||
margin-left: 20px; | ||
} | ||
|
||
.link-item a { | ||
text-decoration: none; | ||
color: #000; | ||
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 for the links is set to |
||
text-transform: uppercase; | ||
font-size: 12px; | ||
font-family: Roboto, sans-serif; | ||
font-weight: 500; | ||
} | ||
|
||
.link-item a:hover, | ||
.link-item a.is-active, | ||
.link-item a:active{ | ||
color: var(--main-blue-color); | ||
} | ||
|
||
.link-item a:hover::after, | ||
.link-item a:active::after { | ||
Comment on lines
+45
to
+52
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 |
||
content: ''; | ||
position: absolute; | ||
bottom: 0; | ||
border-bottom: 4px solid var(--main-blue-color); | ||
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 |
||
border-radius: 8px; | ||
display: block; | ||
z-index: 1; | ||
width: 100%; | ||
} |
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.
Consider providing a more descriptive
alt
attribute for the logo image. This will improve accessibility for users who rely on screen readers.