Create an HTML page with a catalog. Develop semantic page structure as shown on the mockup.
- use
Header,StarsandCardblocks from previous tasks but rewrite them using BEM and SCSS - remove old
data-qaattributes - add
data-qa="nav-hover"(not justhover) to the 4th nav link for testing (Laptops & computers) - add
data-qa="card"to the first card - add
data-qa="card-hover"(not justhover) to the linkBuyinside the first card - nav links color is not
blackanymore (nav links should have#060b35color) - add the class
is-activeto the first link (Apple) in the navigation - use
<main>tag for cards container - use the grid for cards with different numbers of columns:
- 1 for the smaller screens
- 2 starting at
488px - 3 starting from
768px - 4 starting from
1024px
- cards have fixed width -
200px - the gap between cards should be -
46pxhorizontally and48pxvertically - cards container(catalog) have fixed paddings (
50pxvertically and40pxhorizontally)
Make all the changes smooth on hover (during 300ms):
- increase the card by 20 percent (neighboring cards should not be affected)
- change the card title text color to
#34568bwhen the card is hovered (.card:hover .card__title) - change navigation link text color to
#00acdc - change the button background to
#fffand text color to#00acdcon hover
Here are the Layout Tasks Instructions
Important note: In this task, you are allowed to link *.scss files directly in HTML <link> tags using href attribute.
This is possible because we use the Parcel library to bundle your solution's source code.
❗️ Replace <your_account> with your GitHub username and copy the links to the Pull Request description:
❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.
- All components follow BEM and use SCSS
- Repeated sizes and special colors are put to variables
- Grid is used for the columns
- Cards are shown in 1, 2, 3, or 4 columns based on screen resolution
- All changes on
:hoverare smooth - Code follows all the Code Style Rules ❗️