This is a solution to the Social proof section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the section depending on their device's screen size
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I learned about CSS Grid and how to give background images to the top-left & bottom-right of the page.
To see how you can add code snippets, see below:
html {
background: url("images/bg-pattern-top-mobile.svg") left top no-repeat;
}
body {
margin: 0;
font-family: "League Spartan", Courier, monospace;
background: url("images/bg-pattern-bottom-mobile.svg") right bottom no-repeat;
}
.review .user-1,
.review .user-2,
.review .user-3 {
padding: 2.5em 2em;
margin-bottom: 1em;
border-radius: 10px;
background-color: var(--clr-primary-review-bg);
display: grid;
grid-template-areas:
"photo username ..."
"photo status ..."
"caption caption caption";
}- Example resource 1 - This helped me for solving the background pattern issue.

