-
Notifications
You must be signed in to change notification settings - Fork 1.7k
add task solution #1916
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?
add task solution #1916
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 |
|---|---|---|
|
|
@@ -17,35 +17,35 @@ | |
| </head> | ||
| <body> | ||
| <header class="header"> | ||
| <a class="header__logo" href=""> | ||
| <a class="header__logo" href="home"> | ||
| <img src="./images/logo.png" alt="Moyo logo"> | ||
| </a> | ||
|
|
||
| <nav class="nav"> | ||
| <ul class="nav__list"> | ||
| <li class="nav__item nav__item--is-active"> | ||
| <a href="" class="nav__link">Apple</a> | ||
| <a href="Apple" class="nav__link">Apple</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.
change this for the rest links also |
||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Samsung</a> | ||
| <a href="Samsung" class="nav__link">Samsung</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Smartphones</a> | ||
| <a href="Smartphones" class="nav__link">Smartphones</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Laptops & computers</a> | ||
| <a href="Laptops & computers" class="nav__link">Laptops & computers</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Gadgets</a> | ||
| <a href="Gadgets" class="nav__link">Gadgets</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Tablets</a> | ||
| <a href="Tablets" class="nav__link">Tablets</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Photo</a> | ||
| <a href="Photo" class="nav__link">Photo</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="" class="nav__link">Video</a> | ||
| <a href="Video" class="nav__link">Video</a> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,6 @@ | ||||||||||
| .catalog { | ||||||||||
| display: flex; | ||||||||||
| flex-wrap: wrap; | ||||||||||
|
|
||||||||||
| display: grid; | ||||||||||
| gap: 48px; | ||||||||||
|
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. you can add here also |
||||||||||
| max-width: 944px; | ||||||||||
| margin: 0 auto; | ||||||||||
|
|
||||||||||
|
|
@@ -20,3 +19,21 @@ | |||||||||
| margin-right: 48px; | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| @media (min-width: 488px) { | ||||||||||
|
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 all @media styling should be placed in
Suggested change
|
||||||||||
| .catalog { | ||||||||||
| grid-template-columns: repeat(2, 200px); | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| @media (min-width: 768px) { | ||||||||||
| .catalog { | ||||||||||
| grid-template-columns: repeat(3, 200px); | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| @media (min-width: 1024px) { | ||||||||||
| .catalog { | ||||||||||
| grid-template-columns: repeat(4, 200px); | ||||||||||
| } | ||||||||||
| } | ||||||||||
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 href value for the header__logo link should start with a '/' to indicate the root directory (e.g. '/home')