Create a pages with product card using flexbox
, BEM
and SCSS
based on this mockup.
Here are the Layout Tasks Instructions
- reset browser's default margins
- card width is
200px
including border - use images from src/images
- change link styles on
:hover
- add
data-qa="card"
attribute to the card block - add
data-qa="hover"
attribute to the linkBUY
background-image: url()
should be relative to theindex.scss
. So should start with../images
.- Rewrite
stars
block from the Stars task with SCSS and use it - Find the required font on google fonts and use.
Note: In this task, you can directly link *.scss
files in HTML <link>
tags. This is possible because we use the Parcel library to bundle the source code.
❗️ Replace <your_account>
with your Github username and copy the links to Pull Request
description:
❗️ Copy this Checklist
to the Pull Request
description after links, and put - [x]
before each point after you checked it.
- there 2 BEM blocks
card
andstars
each in it own file - SCSS Nesting is used for
elements
,modifiers
andpseudo-classes
- SCSS Variables are used for main values and placed in a separate file
- all
stars--N
modifiers work as expected (Highlight firstN
stars) - Code follows all the Code Style Rules ❗️