-
Notifications
You must be signed in to change notification settings - Fork 6k
finished task #7278
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?
finished task #7278
Changes from 2 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,95 @@ | |
| content="ie=edge" | ||
| /> | ||
| <title>Moyo header</title> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| <link | ||
| rel="stylesheet" | ||
| href="./style.css" | ||
| /> | ||
| </head> | ||
| <body> | ||
| <h1>Moyo header</h1> | ||
| <header class="header"> | ||
| <a | ||
| href="#" | ||
| class="logo" | ||
| > | ||
| <img | ||
| src="./images/logo.png" | ||
| alt="moyo company logo" | ||
| /> | ||
| </a> | ||
| <nav> | ||
| <ul class="nav__list"> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link is-active" | ||
| > | ||
| Apple | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link" | ||
| > | ||
| Samsung | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link" | ||
| > | ||
| Smartphones | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| data-qa="hover" | ||
| class="nav__link" | ||
| > | ||
| Laptops & Computers | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link" | ||
| > | ||
| Gadgets | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link" | ||
| > | ||
| Tablets | ||
| </a> | ||
|
Comment on lines
+80
to
+83
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 media query reintroduces an issue from the previous review. Setting a fixed Additionally, |
||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link" | ||
| > | ||
| Photo | ||
| </a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a | ||
| href="#" | ||
| class="nav__link" | ||
| > | ||
| Video | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </header> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,77 @@ | ||
| :root { | ||
| --color-blue: #00acdc; | ||
| } | ||
|
|
||
| body { | ||
| margin: 0; | ||
| padding: 0; | ||
| font-family: Roboto, sans-serif; | ||
| font-weight: 500; | ||
| } | ||
|
|
||
| .header { | ||
| display: flex; | ||
| width: 100%; | ||
| justify-content: space-between; | ||
| box-sizing: border-box; | ||
| align-items: center; | ||
| padding: 0 50px; | ||
| } | ||
|
|
||
| .logo { | ||
| display: block; | ||
| height: 40px; | ||
| width: 40px; | ||
| } | ||
|
|
||
| .nav__list { | ||
| display: flex; | ||
| list-style: none; | ||
| padding: 0; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .nav__item { | ||
| margin-left: 20px; | ||
| } | ||
|
|
||
| .nav__item:first-child { | ||
| margin: 0; | ||
| } | ||
|
|
||
| .nav__link { | ||
| display: block; | ||
| padding: 0; | ||
| line-height: 60px; | ||
| font-size: 12px; | ||
| text-decoration: none; | ||
| color: #000; | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| .nav__link:hover { | ||
| color: var(--color-blue); | ||
| } | ||
|
|
||
| .nav__link.is-active { | ||
| color: var(--color-blue); | ||
| position: relative; | ||
| } | ||
|
|
||
| .nav__link.is-active::after { | ||
| content: ''; | ||
| position: absolute; | ||
| border-radius: 8px; | ||
| height: 4px; | ||
| width: 100%; | ||
| left: 0; | ||
| bottom: 0; | ||
| background-color: var(--color-blue); | ||
| } | ||
|
|
||
| @media (max-width: 1024px) { | ||
| .header { | ||
| width: 1024px; | ||
| height: 60px; | ||
|
||
| } | ||
| } | ||
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 line slightly exceeds the 80-character limit. Please ensure all lines of code respect the maximum length as per the project's style guide.