Create a page with product card using flexbox
, BEM
and SCSS
based on this mockup.
Here are the Layout Tasks Instructions
- reset the 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 it should start with../images
.- Rewrite the
stars
block from the Stars task with SCSS and use it - Find the required font on google fonts and use.
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.
- there 2 BEM blocks
card
andstars
each in their 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 ❗️