├── images ├── image-anne.jpg ├── image-irene.jpg ├── favicon-32x32.png ├── image-colton.jpg ├── icon-star.svg ├── bg-pattern-top-mobile.svg ├── bg-pattern-top-desktop.svg ├── bg-pattern-bottom-mobile.svg └── bg-pattern-bottom-desktop.svg ├── design ├── desktop-design.jpg ├── mobile-design.jpg └── desktop-preview.jpg ├── .gitignore ├── style-guide.md ├── README.md ├── style.css └── index.html /images/image-anne.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/images/image-anne.jpg -------------------------------------------------------------------------------- /images/image-irene.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/images/image-irene.jpg -------------------------------------------------------------------------------- /design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/design/desktop-design.jpg -------------------------------------------------------------------------------- /design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/design/mobile-design.jpg -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/images/favicon-32x32.png -------------------------------------------------------------------------------- /images/image-colton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/images/image-colton.jpg -------------------------------------------------------------------------------- /design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnMwendwa/social-proof-section/HEAD/design/desktop-preview.jpg -------------------------------------------------------------------------------- /images/icon-star.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Avoid accidental Sketch file upload 2 | ############################################### 3 | ## Please do not remove line 5 - thanks! 🙂 ## 4 | ############################################### 5 | *.sketch 6 | 7 | # Avoid accidental XD or Figma upload if you convert the design file 8 | ####################################################### 9 | ## Please do not remove lines 11 and 12 - thanks! 🙂 ## 10 | ####################################################### 11 | *.xd 12 | *.fig 13 | 14 | # Avoid your project being littered with annoying .DS_Store files! 15 | .DS_Store 16 | -------------------------------------------------------------------------------- /images/bg-pattern-top-mobile.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/bg-pattern-top-desktop.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/bg-pattern-bottom-mobile.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/bg-pattern-bottom-desktop.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | ## Colors 11 | 12 | ### Primary 13 | 14 | Very Dark Magenta: hsl(300, 43%, 22%) 15 | Soft Pink: hsl(333, 80%, 67%) 16 | 17 | ### Neutral 18 | 19 | Dark Grayish Magenta: hsl(303, 10%, 53%) 20 | Light Grayish Magenta: hsl(300, 24%, 96%) 21 | White: hsl(0, 0%, 100%) 22 | 23 | ## Typography 24 | 25 | ### Body Copy 26 | 27 | - Font size: 15px 28 | 29 | ### Font 30 | 31 | - Family: [League Spartan](https://fonts.google.com/specimen/League+Spartan) 32 | - Weights: 400, 500, 700 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Frontend Mentor - Social proof section solution 2 | 3 | This is a solution to the [Social proof section challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/social-proof-section-6e0qTv_bA). Frontend Mentor challenges help you improve your coding skills by building realistic projects. 4 | 5 | ## Table of contents 6 | 7 | - [Overview](#overview) 8 | - [The challenge](#the-challenge) 9 | - [Screenshot](#screenshot) 10 | - [Links](#links) 11 | - [My process](#my-process) 12 | - [Built with](#built-with) 13 | - [Author](#author) 14 | 15 | ## Overview 16 | 17 | ### The challenge 18 | 19 | Users should be able to: 20 | 21 | - View the optimal layout for the section depending on their device's screen size 22 | 23 | ### Screenshot 24 | 25 | ![Project screenshot](design/desktop-preview.jpg) 26 | 27 | ### Links 28 | 29 | - Solution URL: [https://github.com/JohnMwendwa/social-proof-section](https://github.com/JohnMwendwa/social-proof-section) 30 | - Live Site URL: [https://johnmwendwa.github.io/social-proof-section](https://johnmwendwa.github.io/social-proof-section/) 31 | 32 | ## My process 33 | 34 | ### Built with 35 | 36 | - Semantic HTML5 markup 37 | - CSS custom properties 38 | - Flexbox 39 | - CSS Grid 40 | - Mobile-first workflow 41 | 42 | ## Author 43 | 44 | - Website - [John Mwendwa](https://johnmwendwa.vercel.app/) 45 | - Frontend Mentor - [@JohnMwendwa](https://www.frontendmentor.io/profile/JohnMwendwa) 46 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap"); 2 | 3 | *, 4 | *::after, 5 | *::before { 6 | margin: 0; 7 | padding: 0; 8 | box-sizing: border-box; 9 | } 10 | 11 | :root { 12 | /* Primary */ 13 | --very-dark-magenta: hsl(300, 43%, 22%); 14 | --soft-pink: hsl(333, 80%, 67%); 15 | 16 | /* Neutral */ 17 | --dark-grayish-magenta: hsl(303, 10%, 53%); 18 | --light-grayish-magenta: hsl(300, 24%, 96%); 19 | --white: hsl(0, 0%, 100%); 20 | } 21 | 22 | body { 23 | font-family: "League Spartan", sans-serif; 24 | font-size: 0.9375rem; 25 | background-image: url(images/bg-pattern-top-desktop.svg), 26 | url("images/bg-pattern-bottom-desktop.svg"); 27 | background-repeat: no-repeat; 28 | background-position: left top, right bottom; 29 | background-attachment: local; 30 | display: grid; 31 | place-content: center; 32 | min-height: 100vh; 33 | padding: 4rem 2rem; 34 | } 35 | 36 | @media screen and (min-width: 1440px) { 37 | body { 38 | padding: 8rem; 39 | } 40 | } 41 | 42 | main { 43 | max-width: 1440px; 44 | width: 100%; 45 | } 46 | 47 | .container__one { 48 | display: grid; 49 | grid-template-columns: 1fr; 50 | } 51 | 52 | @media screen and (min-width: 768px) { 53 | .container__one { 54 | grid-template-columns: 1fr 1fr; 55 | justify-items: start; 56 | } 57 | } 58 | 59 | .main__header { 60 | max-width: 450px; 61 | text-align: center; 62 | margin: auto; 63 | } 64 | 65 | .main__header h1 { 66 | color: var(--very-dark-magenta); 67 | font-size: 3rem; 68 | font-weight: 700; 69 | letter-spacing: -0.07rem; 70 | line-height: 0.8; 71 | margin-bottom: 1.5rem; 72 | } 73 | 74 | .main__header p { 75 | color: var(--dark-grayish-magenta); 76 | font-size: 1.125rem; 77 | font-weight: 400; 78 | } 79 | 80 | @media screen and (min-width: 768px) { 81 | .main__header { 82 | margin: unset; 83 | text-align: start; 84 | } 85 | 86 | .main__header h1 { 87 | font-size: 3.5rem; 88 | } 89 | } 90 | 91 | p { 92 | line-height: 1.35; 93 | } 94 | 95 | .rating__card { 96 | display: flex; 97 | flex-direction: column; 98 | align-items: center; 99 | gap: 0.3rem; 100 | padding: 0.75rem 1.5rem; 101 | background-color: var(--light-grayish-magenta); 102 | border-radius: 0.5rem; 103 | width: 100%; 104 | margin-top: 1rem; 105 | } 106 | .rating__card p { 107 | font-weight: 700; 108 | color: var(--very-dark-magenta); 109 | } 110 | 111 | @media screen and (min-width: 768px) { 112 | .rating__card { 113 | gap: 1rem; 114 | flex-direction: row; 115 | max-width: 400px; 116 | } 117 | .rating__card:nth-of-type(2) { 118 | margin-left: 2rem; 119 | } 120 | 121 | .rating__card:nth-of-type(3) { 122 | margin-left: 4rem; 123 | } 124 | } 125 | 126 | .container__two { 127 | margin-top: 2rem; 128 | display: flex; 129 | flex-direction: column; 130 | justify-content: center; 131 | gap: 1rem; 132 | } 133 | 134 | .card { 135 | background-color: var(--very-dark-magenta); 136 | padding: 2rem; 137 | border-radius: 0.5rem; 138 | align-self: flex-start; 139 | } 140 | 141 | @media screen and (min-width: 768px) { 142 | .container__two { 143 | margin-top: 4rem; 144 | flex-direction: row; 145 | gap: 2rem; 146 | } 147 | 148 | .card { 149 | max-width: 320px; 150 | } 151 | .card:nth-of-type(2) { 152 | margin-top: 1.5rem; 153 | } 154 | .card:nth-of-type(3) { 155 | margin-top: 3rem; 156 | } 157 | } 158 | 159 | .card__image img { 160 | border-radius: 50%; 161 | width: 3rem; 162 | aspect-ratio: 1/1; 163 | } 164 | 165 | .card__header { 166 | display: flex; 167 | align-items: center; 168 | gap: 1rem; 169 | } 170 | 171 | .card__header__text h2 { 172 | color: var(--white); 173 | font-size: 1.125rem; 174 | font-weight: 400; 175 | } 176 | 177 | .card__header__text p { 178 | color: hsla(333, 80%, 67%, 0.8); 179 | font-size: 1rem; 180 | } 181 | 182 | .card__body p { 183 | margin-top: 2rem; 184 | color: var(--white); 185 | } 186 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 | Frontend Mentor | Social proof section 18 | 19 | 20 |
21 |
22 |
23 |

10,000+ of our users love our products.

24 |

25 | We only provide great products combined with excellent customer 26 | service. See what our satisfied customers are saying about our 27 | services. 28 |

29 |
30 |
31 |
32 |
33 | star 34 | star 35 | star 36 | star 37 | star 38 |
39 |

Rated 5 Stars in Reviews

40 |
41 |
42 |
43 | star 44 | star 45 | star 46 | star 47 | star 48 |
49 |

Rated 5 Stars in Report Guru

50 |
51 |
52 |
53 | star 54 | star 55 | star 56 | star 57 | star 58 |
59 |

Rated 5 Stars in BestTech

60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | avatar 68 |
69 |
70 |

Colton Smith

71 |

Verified Buyer

72 |
73 |
74 |
75 |

76 | "We needed the same printed design as the one we had ordered a 77 | week prior. Not only did they find the original order, but we also 78 | received it in time. Excellent!" 79 |

80 |
81 |
82 |
83 |
84 |
85 | avatar 86 |
87 |
88 |

Irene Roberts

89 |

Verified Buyer

90 |
91 |
92 |
93 |

94 | "Customer service is always excellent and very quick turn around. 95 | Completely delighted with the simplicity of the purchase and the 96 | speed of delivery." 97 |

98 |
99 |
100 |
101 |
102 |
103 | avatar 104 |
105 |
106 |

Anne Wallace

107 |

Verified Buyer

108 |
109 |
110 |
111 |

112 | "Put an order with this company and can only praise them for the 113 | very high standard. Will definitely use them again and recommend 114 | them to everyone!" 115 |

116 |
117 |
118 |
119 |
120 | 121 | 122 | --------------------------------------------------------------------------------