This is a solution to the Stats preview card component challenge on Frontend Mentor.
This challenge is to build out this card component and get it looking as close to the design as possible.
Users should be able to:
- View the optimal layout depending on their device's screen size
- Write with semantic markup.
- Set all root figures and font.
- Plan the layout.
- Go through validators.
- Write CSS for general tags.
- Write classes' and ids' style.
- Responsive design
- Get all CSS done, check on both desktop and mobile.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Overlay color on background image
.imgBox {
background-image: linear-gradient(
to bottom,
hsla(277, 64%, 61%, 0.3),
hsla(277, 64%, 61%, 0.3)
), url(./images/image-header-desktop.jpg);
width: 100%;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.overlay {
width: 100%;
height: 100%;
background-color: var(--violet);
opacity: 0.8;
mix-blend-mode: multiply;
}
- Mark elements
<p class="fig"><mark>10k+</mark> companies</p>
- CTA buttons
- Special effect on displaying figures
- Codepen - TingHueiChen
- Frontend Mentor - @hejkeikei
- Twitter - @hej_keikei