Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 2.26 KB

File metadata and controls

85 lines (60 loc) · 2.26 KB

Frontend Mentor - Social proof section solution

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.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the section depending on their device's screen size

Design preview for the Social proof section coding challenge

Screenshot

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

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";
}

Useful resources

Author