This is a solution to the Profile card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- Built out the project for both mobile and desktop screen sizes of 1440px and 375px
- Solution URL: GitHub
- Live Site URL: Profile-card-component website
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Desktop-first workflow
During this project build up I did try different styling that I have not tried before and they include the use of the ::before pseudo-element, the transform scale key / value to the applied CSS property.
To see how you can add code snippets, see below:
.card::before{
content: "";
position: absolute;
top: 0;
min-width: 100%;
min-height: 35%;
background: url(images/bg-pattern-card.svg) no-repeat;
background-size: cover;
border-top-right-radius: 1em;
border-top-left-radius: 1em;
z-index: -1;
}
Still working on the use of Block Element Modifiers method for my naming convention during my web page build up.
-
Mutiple background - This helped me to understand how to use two or more different background-images together with a background-color.
-
Multiple Backgrounds - This is an amazing article which helped me finally understand the use of mutiple background. I'd recommend it to anyone still learning this concept.
- csstricks.com
- w3schools.com
- developer.mozilla.org