-
Notifications
You must be signed in to change notification settings - Fork 6k
Develop #7279
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
base: master
Are you sure you want to change the base?
Develop #7279
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 |
|---|---|---|
|
|
@@ -10,13 +10,64 @@ | |
| 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:ital,wght@0,100..900;1,100..900&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| <title>Moyo header</title> | ||
| <link | ||
| rel="stylesheet" | ||
| href="./style.css" | ||
| /> | ||
| </head> | ||
|
|
||
| <header class="header"> | ||
| <a | ||
| href="index.html" | ||
| class="logo" | ||
| > | ||
| <img | ||
| src="images/logo.png" | ||
| alt="Moyo" | ||
| /> | ||
| </a> | ||
| <nav> | ||
| <ul class="nav-list"> | ||
| <li> | ||
| <a | ||
| href="#" | ||
| class="is-active nav-item" | ||
|
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><a href="#">Samsung</a></li> | ||
| <li><a href="#">Smartphones</a></li> | ||
| <li> | ||
| <a | ||
| href="#" | ||
| data-qa="hover nav-item" | ||
|
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 value of the |
||
| > | ||
| Laptops & Computers | ||
| </a> | ||
| </li> | ||
| <li><a href="#">Gadgets</a></li> | ||
| <li><a href="#">Tablets</a></li> | ||
| <li><a href="#">Photo</a></li> | ||
| <li><a href="#">Video</a></li> | ||
| </ul> | ||
|
|
||
| <div class="nav-line"></div> | ||
|
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. This |
||
| </nav> | ||
| </header> | ||
|
Comment on lines
+32
to
+70
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 |
||
| <body> | ||
| <h1>Moyo header</h1> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,113 @@ | ||
| body { | ||
| /* margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; */ | ||
| height: 100%; | ||
|
|
||
| font-family: Roboto, sans-serif; | ||
| font-weight: 400; | ||
|
|
||
| --blue: #0070f3; | ||
| } | ||
|
|
||
| * { | ||
|
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. Using the universal selector |
||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .header { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
|
|
||
| width: 100%; | ||
| margin: 0; | ||
| padding: 0 20px; | ||
| } | ||
|
|
||
| .logo img { | ||
|
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 code style rules forbid using tag names for styling (except for |
||
| display: block; | ||
| margin: 10px 50px auto; | ||
| width: auto; | ||
| height: 40px; | ||
| } | ||
|
|
||
| .nav-list { | ||
| display: flex; | ||
| align-items: center; | ||
| list-style: none; | ||
| margin: 0; | ||
| padding: 0; | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| .nav-item { | ||
| position: relative; | ||
| margin-right: 20px; | ||
| } | ||
|
|
||
| .nav-item:first-child::before { | ||
|
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. This violates checklist item #6: 'Pseudo-element is used for a blue line below the active link'. |
||
| content: ''; | ||
| position: absolute; | ||
| bottom: -20px; | ||
| left: 0; | ||
| width: 100%; | ||
| height: 4px; | ||
| background-color: var(--blue); | ||
| border-radius: 8px; | ||
| } | ||
|
|
||
| .nav-list a { | ||
|
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. Styling elements by tag name ( |
||
| display: inline-block; | ||
| list-style: none; | ||
| height: 15px; | ||
| line-height: 15px; | ||
| text-align: center; | ||
| text-decoration: none; | ||
| position: relative; | ||
| padding: 0; | ||
| font-weight: 500; | ||
| color: #222; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .nav-list > li + li { | ||
| margin-left: 20px; | ||
| } | ||
|
|
||
| .nav-list li:first-child { | ||
| margin-left: 0; | ||
| } | ||
|
|
||
| .nav-list li:last-child { | ||
| margin-right: 0; | ||
| } | ||
|
|
||
| .nav-list a:hover::after { | ||
|
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 requirement is that the link color should change on hover. This rule only adds a blue line using |
||
| content: ''; | ||
| position: absolute; | ||
| bottom: 0; | ||
| left: 0; | ||
| width: 100%; | ||
| height: 4px; | ||
| background-color: var(--blue); | ||
| } | ||
|
|
||
| .nav-list li:first-child a, | ||
| .nav-list li:nth-child(4) a { | ||
| color: var(--blue) !important; | ||
|
Comment on lines
+97
to
+99
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. Styling elements based on their position with |
||
| } | ||
|
|
||
| @media (max-width: 480px) { | ||
| .nav-list { | ||
| flex-wrap: wrap; | ||
| } | ||
| .nav-list > li + li { | ||
| margin-left: 12px; | ||
| } | ||
| .nav-list a { | ||
| height: 15px; | ||
| line-height: 15px; | ||
| } | ||
| } | ||
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.
This violates checklist item #8: 'The Google Fonts Configuration follows requirements.' You have imported a wide range of font weights and styles, but the task requires only the roman style with medium (500) weight. Please adjust the font URL to load only the specific font variant needed.