-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 files for test #5392
base: master
Are you sure you want to change the base?
add files for test #5392
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
|
@@ -18,5 +22,94 @@ | |
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a | ||
href="/" | ||
class="logo" | ||
> | ||
|
||
<img | ||
src="images/logo.png" | ||
alt="Company Logo" | ||
/> | ||
Comment on lines
+26
to
+34
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. Add empty lines between multiline sibling blocks of HTML to add some 'air' and simplify reading. There should be an empty line before and after the tag containing the logo. |
||
|
||
</a> | ||
<nav> | ||
<ul class="nav__list"> | ||
<li class="nav__item"> | ||
<a | ||
href="apple" | ||
class="nav__link is-active" | ||
> | ||
APPLE | ||
</a> | ||
Comment on lines
+40
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. Don't use spaces in tag's |
||
</li> | ||
|
||
<li class="nav__item"> | ||
<a | ||
href="samsung" | ||
class="nav__link" | ||
> | ||
SAMSUNG | ||
</a> | ||
Comment on lines
+49
to
+54
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. For the |
||
</li> | ||
|
||
<li class="nav__item"> | ||
<a | ||
href="smartphones" | ||
class="nav__link" | ||
> | ||
SMARTPHONES | ||
</a> | ||
Comment on lines
+58
to
+63
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. Make sure to use |
||
</li> | ||
|
||
<li class="nav__item"> | ||
<a | ||
href="laptops" | ||
class="nav__link" | ||
data-qa="hover" | ||
> | ||
LAPTOPS & COMPUTERS | ||
</a> | ||
Comment on lines
+67
to
+73
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="nav__item"> | ||
<a | ||
href="gadgets" | ||
class="nav__link hover" | ||
> | ||
GADGETS | ||
</a> | ||
Comment on lines
+77
to
+82
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="nav__item"> | ||
<a | ||
href="tablets" | ||
class="nav__link" | ||
> | ||
TABLETS | ||
</a> | ||
Comment on lines
+86
to
+91
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. Use |
||
</li> | ||
|
||
<li class="nav__item"> | ||
<a | ||
href="photo" | ||
class="nav__link" | ||
> | ||
PHOTO | ||
</a> | ||
Comment on lines
+95
to
+100
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="nav__item"> | ||
<a | ||
href="video" | ||
class="nav__link" | ||
> | ||
VIDEO | ||
</a> | ||
Comment on lines
+104
to
+109
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. Anchor links in |
||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
Comment on lines
+25
to
+113
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. Remember about correct indentation between parent and child elements. The block should be indented with 2 spaces from the tag. |
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,67 @@ | ||
html { | ||
font-family: Roboto, Arial, sans-serif; | ||
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 fallback font family in case the specified font 'Roboto' is not available. For example, 'font-family: Roboto, Arial, sans-serif;' can be written as 'font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;' to provide better cross-platform compatibility. |
||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 50px; | ||
} | ||
|
||
.logo { | ||
display: flex; | ||
margin: 0; | ||
padding: 0; | ||
justify-content: center; | ||
} | ||
|
||
.nav__list { | ||
display: flex; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.nav__item { | ||
font-size: 12px; | ||
line-height: 14px; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
margin-left: 20px; | ||
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. Be consistent with your vertical margins. It's recommended to add only top or only bottom margin, but not both. In your case, |
||
} | ||
|
||
.nav__item:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
.nav__link { | ||
display: block; | ||
line-height: 60px; | ||
color: black; | ||
text-decoration: none; | ||
} | ||
|
||
.is-active { | ||
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 |
||
position: relative; | ||
color: #00acdc; | ||
} | ||
|
||
.is-active::after { | ||
display: block; | ||
position: absolute; | ||
bottom: 0; | ||
content: ''; | ||
width: 100%; | ||
height: 4px; | ||
border-radius: 8px; | ||
background-color: #00acdc; | ||
} | ||
|
||
.nav__link:hover { | ||
color: #00acdc; | ||
} |
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
alt
attribute should describe the image content. Instead of a generic 'Company Logo', provide a more descriptive alternative text that describes the logo or the company it represents.