-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
add task solution #6090
base: master
Are you sure you want to change the base?
add task solution #6090
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 |
---|---|---|
|
@@ -4,19 +4,107 @@ | |
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
content="width=device-width, initial-scale=1.0" | ||
/> | ||
<meta | ||
http-equiv="X-UA-Compatible" | ||
content="ie=edge" | ||
<title>Menu</title> | ||
<link | ||
rel="stylesheet" | ||
href="style.css" | ||
/> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.googleapis.com" | ||
/> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.gstatic.com" | ||
/> | ||
<title>Moyo header</title> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header> | ||
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 | ||
href="/" | ||
class="logo" | ||
Comment on lines
+29
to
+31
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 an 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 name |
||
aria-label="Logo of the company" | ||
> | ||
<img | ||
class="Moyo1" | ||
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 name |
||
src="images/logo.png" | ||
alt="Logo" | ||
/> | ||
</a> | ||
<nav> | ||
<ul> | ||
<li> | ||
<a | ||
href="#" | ||
class="Apple is-active" | ||
Comment on lines
+43
to
+45
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 name 'is-active' suggests that this menu item is currently active. Ensure that this class is dynamically updated based on the current page or section to provide accurate context to users. 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. What exactly do you mean? 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 names |
||
> | ||
Apple | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="Samsung" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="Smartphones" | ||
> | ||
Smartphones | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="LaptopsComputers" | ||
> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="Gadgets" | ||
> | ||
Gadgets | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="Tablets" | ||
> | ||
Tablets | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="Photo" | ||
> | ||
Photo | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="#" | ||
class="Video" | ||
> | ||
Video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,80 @@ | ||
:root { | ||
--blue-color: #00acdc; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: Roboto, Arial, sans-serif; | ||
background: white; | ||
} | ||
|
||
header { | ||
display: flex; | ||
justify-content: space-between; | ||
min-width: 1024px; | ||
max-width: 1200px; | ||
Comment on lines
+16
to
+17
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. Avoid using fixed widths like |
||
height: 60px; | ||
} | ||
|
||
.logo { | ||
margin-top: 10px; | ||
margin-left: 50px; | ||
} | ||
|
||
.Moyo1 { | ||
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 name |
||
width: 40px; | ||
height: 40px; | ||
} | ||
|
||
nav { | ||
margin-right: 50px; | ||
} | ||
|
||
nav ul { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
display: inline-flex; | ||
} | ||
|
||
li { | ||
padding-right: 20px; | ||
} | ||
|
||
li:last-child { | ||
padding-right: 0; | ||
} | ||
|
||
nav a { | ||
font-size: 12px; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
color: black; | ||
text-decoration: none; | ||
display: block; | ||
position: relative; | ||
height: 60px; | ||
text-align: center; | ||
line-height: 60px; | ||
} | ||
|
||
nav a:hover { | ||
color: var(--blue-color); | ||
} | ||
|
||
.is-active { | ||
color: var(--blue-color); | ||
} | ||
|
||
nav a.is-active::after { | ||
content: ''; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
height: 4px; | ||
background-color: var(--blue-color); | ||
border-radius: 8px; | ||
} |
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.
Ensure that the title of the page is descriptive and relevant to the content. 'Menu' might not be the most descriptive title for the page.