Skip to content

danrare/social-proof-section

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Designing a social proof section using visual guides.

The challenge

The challenge was to build a social proof section using any tools you like and getting it to look as close to the given design on mobile and desktop.

Users should be able to:

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

Screenshot

social-proof-design social-proof-design

The above are the screen shots of my design.

Links

My process

Building the social-proof-section was an interesting challenge. Firstly, I approached the design with mobile first work flow. For the mobile design I grouped the contents in to three divs, the top container, middle container and bottom container, all inside a container div. The first container housed the h1 and p tag, while the middle container housed the ratings and the bottom containers housed the testimonials. Although, I had to adjust the layout for larger screens, I did this by creating a sub container div and grouping my top container div and middle container div with another div named top. The design for mobile was very straight forward, just a few adjustments for the h1, p and the star image to get it to look as close to the design.

Secondly, I approached the design for larger screen sizes. It was quite challenging trying to get the layouts. For larger screen sizes I grouped the top and middle container with a div named top, this was so in order for me to implement the display flex property, then I gave it a value of role to make them appear side by sides, but I had to tweak the width of both divs using percentages to get my design close to the given design. The ratings inside the middle container was adjusted by setting the display property to absolute and the parent to relative, this enabled me to adjust the first and second rating effectively. Also, for the testimonial section I gave the parent div that is the bottom container a display of flex, with the value row to get each testimonial div to appear on the same line, I then used the position absolute property to position them as seen in the design.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • chrome developer tools

What I learned

From this challenge I learnt how to make use of morethan one background images and more about responsive design. it was indeed fun.

To see how you can add code snippets, see below:

<h1>Some HTML code I'm proud of</h1>
body{
    background-color: hsl(0, 0%, 100%);
    background-image: url("/images/bg-pattern-top-mobile.svg"),
    url("/images/bg-pattern-bottom-mobile.svg");
    background-repeat: no-repeat;
    background-position: top left, bottom right;
    background-size: 100%, 100%;
}

If you want more help with writing markdown, we'd recommend checking out The Markdown Guide to learn more.

Note: Delete this note and the content within this section and replace with your own learnings.

Continued development

I think I will like to focus on css arts and animations for now.

  • background-images - This is an amazing article which helped me finally understand background-images. I'd recommend it to anyone still learning this concept.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published