-
Notifications
You must be signed in to change notification settings - Fork 6k
adds moyo header #7272
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?
adds moyo header #7272
Changes from 1 commit
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 | ||
| rel="stylesheet" | ||
| href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
| /> | ||
| <meta charset="UTF-8" /> | ||
| <meta | ||
| name="viewport" | ||
|
|
@@ -17,6 +21,85 @@ | |
| /> | ||
| </head> | ||
| <body> | ||
| <h1>Moyo header</h1> | ||
| <header class="header"> | ||
| <a | ||
| href="#" | ||
| class="logo" | ||
| > | ||
| <img | ||
| src="images/logo.png" | ||
| alt="Moyo logo" | ||
| /> | ||
| </a> | ||
|
|
||
| <nav> | ||
| <ul class="nav_list"> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link active" | ||
| href="#" | ||
| > | ||
| Apple | ||
| </a> | ||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| Samsung | ||
| </a> | ||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| Smartphones | ||
| </a> | ||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| Laptops & Computers | ||
| </a> | ||
|
Comment on lines
62
to
68
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 link is missing the required |
||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| Gadgets | ||
| </a> | ||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| tablets | ||
| </a> | ||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| photo | ||
| </a> | ||
| </li> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| video | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </header> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,65 @@ | ||
| html { | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| margin: 0; | ||
| padding: 0; | ||
| font-family: Roboto, sans-serif; | ||
| font-weight: 500; | ||
| font-style: normal; | ||
| } | ||
|
|
||
| .header { | ||
| background-color: #fff; | ||
| padding: 0 40px; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
|
|
||
| .nav_list { | ||
| display: flex; | ||
| margin: 0; | ||
| padding: 0; | ||
| align-items: center; | ||
| list-style: none; | ||
| } | ||
| .nav_item { | ||
| margin-right: 30px; | ||
| } | ||
| .nav_item:last-child { | ||
| margin-right: 0; | ||
| } | ||
| .nav_link { | ||
| display: flex; | ||
| text-decoration: none; | ||
| color: #000; | ||
| height: 60px; | ||
| text-transform: uppercase; | ||
| position: relative; | ||
| align-items: center; | ||
| } | ||
| .logo { | ||
| height: 40px; | ||
| width: 40px; | ||
| } | ||
| .nav_link:hover { | ||
| color: #00a8ff; | ||
|
||
| } | ||
| .nav_link.active { | ||
|
||
| color: #00a8ff; | ||
| } | ||
|
|
||
| .nav_link.nav_link.active::after { | ||
|
||
| content: ''; | ||
| height: 2px; | ||
| width: 100%; | ||
| background-color: #00a8ff; | ||
| border-bottom: 3.5px solid #00a8ff; | ||
|
||
| border-radius: 10px; | ||
| position: absolute; | ||
| left: 0; | ||
| right: 0; | ||
| bottom: 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 requirement is to use the class name
is-activefor the active link, butactiveis used here. Please update the class name to match the specification.