Customers Voice Section

Goal

  • âš¡ In this step, we're going to create a Customers Voice section.

20200607155117

Boilerplate

First, copy and paste the following code under How it works section.

<!-- Customers Voice -->
<section id="customers-voice">
<div class="container">
<div class="section-header text-center">
<h1 class="display-5 mb-4">What our customers say</h1>
<p>
Orem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore.
</p>
</div>
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4"></div>
<div class="col-md-4"></div>
</div>
</div>
</section>

Next, edit the CSS for this section and section header. Copy and paste the following CSS.

css/custom.css
/* || Customers Voice */
#customers-voice {
padding: 5rem 0;
}
#customers-voice .section-header {
margin-bottom: 5rem;
}
@media screen and (min-width: 992px) {
#customers-voice .section-header p {
max-width: 50%;
margin: 0 auto;
}
}

Prepare images

Let's prepare the images we will use in this section. Please Download the following images as small size.

Next, Move the downloaded file into the img folder.

column 1

Now, let's create a one of the column in the row. 20200607155501

Please copy and paste the following code.

<div class="col-md-4 mb-4">
<div class="card shadow" style="border: none;">
<div class="card-body">
<div class="media mb-3">
<img
src="img/man-wearing-black-zip-up-jacket-near-beach-smiling-at-the-736716.jpg"
class="mr-3 rounded-circle"
alt="..."
style="width: 40px; height: 40px;"
/>
<div class="media-body">
<h6 class="mb-0">Denny Omega</h6>
<span class="text-muted" style="font-size: 0.8rem;">
@WWF wrestler
</span>
</div>
</div>
<p class="card-text text-muted">
Rem mus tibi vero metenda ea indignitatem modo. Harum netus
fames sit eius, memorabilem magistratu ille. Magna te eget dis
quod arduas victrici.
</p>
</div>
</div>
</div>

Bootstrap refs

Here's a description of the Bootstrap classes used here

info

Copy this code to create column 2 and column 3 with different image and wording.

Column 2

<div class="col-md-4 mb-4">
<div class="card shadow" style="border: none;">
<div class="card-body">
<div class="media mb-3">
<img
src="img/adult-attractive-beautiful-beauty-415829.jpg"
class="mr-3 rounded-circle"
alt="..."
style="width: 40px; height: 40px;"
/>
<div class="media-body">
<h6 class="mb-0">Malissa May</h6>
<span class="text-muted" style="font-size: 0.8rem;">
@CEO of Zahoo
</span>
</div>
</div>
<p class="card-text text-muted">
Rem mus tibi vero metenda ea indignitatem modo. Harum netus
fames sit eius, memorabilem magistratu ille. Magna te eget dis
quod arduas victrici.
</p>
</div>
</div>
</div>

Column 3

<div class="col-md-4 mb-4">
<div class="card shadow" style="border: none;">
<div class="card-body">
<div class="media mb-3">
<img
src="img/photography-of-a-guy-wearing-green-shirt-1222271.jpg"
class="mr-3 rounded-circle"
alt="..."
style="width: 40px; height: 40px;"
/>
<div class="media-body">
<h6 class="mb-0">Sobias Luke</h6>
<span class="text-muted" style="font-size: 0.8rem;">
@CEO of thopify
</span>
</div>
</div>
<p class="card-text text-muted">
Rem mus tibi vero metenda ea indignitatem modo. Harum netus
fames sit eius, memorabilem magistratu ille. Magna te eget dis
quod arduas victrici.
</p>
</div>
</div>
</div>
</div>

Final Code

The final code looks like this.

index.html
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Font Awesome -->
<script
src="https://kit.fontawesome.com/6284da3ffd.js"
crossorigin="anonymous"
></script>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous"
/>
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.css" />
<title>Hello, world!</title>
</head>
<body>
<!-- Navbar -->
<nav
class="navbar navbar-expand-lg navbar-light bg-white shadow-sm sticky-top"
>
<a class="navbar-brand" href="#">
<img
src="img/logo.png"
alt="logo"
width="30"
height="30"
class="d-inline-block align-top"
loading="lazy"
/>
<span class="font-weight-bold">Logo</span>
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item mr-lg-4">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item mr-lg-4">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item mr-lg-4">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item mr-lg-4">
<a class="nav-link" href="#">Login</a>
</li>
<li class="nav-item">
<a class="btn btn-warning font-weight-bold px-3 py-2" href="#">
Sign up
</a>
</li>
</ul>
</div>
</nav>
<!-- Jumbotron -->
<div class="jumbotron bg-white">
<div class="container">
<div class="row">
<div class="col-lg-6 order-2 order-lg-1">
<h1 class="display-4 font-weight-bold">Learn web development</h1>
<p class="lead">
This is a simple hero unit, a simple jumbotron-style component for
calling extra attention to featured content or information.
</p>
<hr class="my-4" />
<p>
It uses utility classes for typography and spacing to space
content out within the larger container.
</p>
<div class="d-flex flex-column flex-lg-row">
<a
class="btn btn-primary font-weight-bold mb-3 mb-lg-0"
href="#"
role="button"
>
Get Started!
<i class="fas fa-arrow-alt-circle-right ml-2"></i>
</a>
<a
class="btn btn-dark font-weight-bold ml-lg-3"
href="#"
role="button"
>
Learn more
<i class="fas fa-arrow-alt-circle-right ml-2"></i>
</a>
</div>
</div>
<div class="col-lg-6 order-1 order-lg-2">
<img
src="img/undraw_static_assets_rpm6.svg"
alt="jumbotron-image"
class="img-fluid"
/>
</div>
</div>
</div>
</div>
<!-- About Us -->
<section id="about-us">
<div class="container">
<div class="section-header text-center">
<h1 class="display-5 mb-4">About Us</h1>
<p>
Orem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore.
</p>
</div>
<div class="row">
<div class="col-md-6">
<img
src="img/undraw_mobile_wireframe_euf4.svg"
class="img-fluid"
alt=""
/>
</div>
<div class="col-md-6 d-flex flex-column justify-content-center">
<h3 class="mb-4">Easy to customize</h3>
<p>
One pacifice typi tot hic successum sed nulla id orci pulvinar non
modo in minim, rem, eos quam unde germania. Quo cum per turpis
sanguinis nunc nicolae peccat.
</p>
<a href="#" class="font-weight-bold"
>See ways how to customize
<i class="ml-1 fas fa-arrow-right" aria-hidden="true"></i>
</a>
</div>
</div>
<div class="row">
<div class="col-md-6 order-md-2 mb-2">
<img src="img/undraw_breakfast_psiw.svg" class="img-fluid" alt="" />
</div>
<div
class="col-md-6 order-md-1 d-flex flex-column justify-content-center"
>
<h3 class="mb-4">Easy to make</h3>
<p>
One pacifice typi tot hic successum sed nulla id orci pulvinar non
modo in minim, rem, eos quam unde germania. Quo cum per turpis
sanguinis nunc nicolae peccat.
</p>
<a href="#" class="font-weight-bold">
See ways how to make
<i class="ml-1 fas fa-arrow-right" aria-hidden="true"></i>
</a>
</div>
</div>
<div class="row">
<div class="col-md-6">
<img
src="img/undraw_personal_notebook_sobb.svg"
class="img-fluid"
alt=""
/>
</div>
<div class="col-md-6 d-flex flex-column justify-content-center">
<h3 class="mb-4">Easy to memorize</h3>
<p>
One pacifice typi tot hic successum sed nulla id orci pulvinar non
modo in minim, rem, eos quam unde germania. Quo cum per turpis
sanguinis nunc nicolae peccat.
</p>
<a href="#" class="font-weight-bold">
See ways how to memorize
<i class="ml-1 fas fa-arrow-right" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</section>
<!-- How it works -->
<section id="how-it-works">
<div class="container">
<div class="section-header text-center">
<h1 class="display-5 mb-4">How it works</h1>
<p>
Orem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore.
</p>
</div>
<div class="row">
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="text-center">
<img
src="img/undraw_breakfast_psiw.svg"
style="width: 200px; height: 140px;"
alt=""
/>
</div>
<div class="p-3">
<h5>
<div
style="width: 22px;"
class="badge badge-primary align-top mr-2"
>
1
</div>
Make breakfast
</h5>
<p>
Cum similitudinem vero te nisi fructum sem duis Desideriis's
quis similitudinem quos. Earum class metus iis duis,
recordatione crudelitas illa.
</p>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="text-center">
<img
src="img/undraw_Cautious_dog_q83f.svg"
style="width: 200px; height: 140px;"
alt=""
/>
</div>
<div class="p-3">
<h5>
<div
style="width: 22px;"
class="badge badge-primary align-top mr-2"
>
2
</div>
Feeding
</h5>
<p>
Cum similitudinem vero te nisi fructum sem duis Desideriis's
quis similitudinem quos. Earum class metus iis duis,
recordatione crudelitas illa.
</p>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="text-center">
<img
src="img/undraw_Modern_woman_lxh7.svg"
style="width: 200px; height: 140px;"
alt=""
/>
</div>
<div class="p-3">
<h5>
<div
style="width: 22px;"
class="badge badge-primary align-top mr-2"
>
3
</div>
Dog walking
</h5>
<p>
Cum similitudinem vero te nisi fructum sem duis Desideriis's
quis similitudinem quos. Earum class metus iis duis,
recordatione crudelitas illa.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- Customers Voice -->
<section id="customers-voice">
<div class="container">
<div class="section-header text-center">
<h1 class="display-5 mb-4">What our customers say</h1>
<p>
Orem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore.
</p>
</div>
<div class="row">
<div class="col-md-4 mb-4">
<div class="card shadow" style="border: none;">
<div class="card-body">
<div class="media mb-3">
<img
src="img/man-wearing-black-zip-up-jacket-near-beach-smiling-at-the-736716.jpg"
class="mr-3 rounded-circle"
alt="..."
style="width: 40px; height: 40px;"
/>
<div class="media-body">
<h6 class="mb-0">Denny Omega</h6>
<span class="text-muted" style="font-size: 0.8rem;">
@WWF wrestler
</span>
</div>
</div>
<p class="card-text text-muted">
Rem mus tibi vero metenda ea indignitatem modo. Harum netus
fames sit eius, memorabilem magistratu ille. Magna te eget dis
quod arduas victrici.
</p>
</div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card shadow" style="border: none;">
<div class="card-body">
<div class="media mb-3">
<img
src="img/adult-attractive-beautiful-beauty-415829.jpg"
class="mr-3 rounded-circle"
alt="..."
style="width: 40px; height: 40px;"
/>
<div class="media-body">
<h6 class="mb-0">Malissa May</h6>
<span class="text-muted" style="font-size: 0.8rem;">
@CEO of Zahoo
</span>
</div>
</div>
<p class="card-text text-muted">
Rem mus tibi vero metenda ea indignitatem modo. Harum netus
fames sit eius, memorabilem magistratu ille. Magna te eget dis
quod arduas victrici.
</p>
</div>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card shadow" style="border: none;">
<div class="card-body">
<div class="media mb-3">
<img
src="img/photography-of-a-guy-wearing-green-shirt-1222271.jpg"
class="mr-3 rounded-circle"
alt="..."
style="width: 40px; height: 40px;"
/>
<div class="media-body">
<h6 class="mb-0">Sobias Luke</h6>
<span class="text-muted" style="font-size: 0.8rem;">
@CEO of thopify
</span>
</div>
</div>
<p class="card-text text-muted">
Rem mus tibi vero metenda ea indignitatem modo. Harum netus
fames sit eius, memorabilem magistratu ille. Magna te eget dis
quod arduas victrici.
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"
></script>
<!-- Custom Javascript -->
<script src="js/custom.js"></script>
</body>
</html>
css/custom.css
body {
font-family: "Poppins", sans-serif;
}
/* || Navbar */
.nav-item {
font-weight: 500;
}
.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.9);
}
/* || Jumbotron */
@media screen and (min-width: 992px) {
.jumbotron {
height: calc(100vh - 57.69px);
margin-bottom: 0;
display: flex;
align-items: center;
background-image: url(../img/jumbotron-bg.png);
background-size: cover;
}
}
@media screen and (max-width: 575.98px) {
.jumbotron h1 {
text-align: center;
font-size: 2.3rem;
margin-top: 2rem;
}
}
/* || About Us */
#about-us {
padding-top: 5rem;
}
#about-us .section-header {
margin-bottom: 5rem;
}
@media screen and (min-width: 992px) {
#about-us .section-header p {
max-width: 50%;
margin: 0 auto;
}
}
#about-us .row {
margin-bottom: 10rem;
padding: 0 1.25rem;
}
/* || How it works */
#how-it-works {
padding: 5rem 0;
background-color: #ecf5ff;
}
#how-it-works .section-header {
margin-bottom: 5rem;
}
@media screen and (min-width: 992px) {
#how-it-works .section-header p {
max-width: 50%;
margin: 0 auto;
}
}
/* || Customers Voice */
#customers-voice {
padding: 5rem 0;
}
#customers-voice .section-header {
margin-bottom: 5rem;
}
@media screen and (min-width: 992px) {
#customers-voice .section-header p {
max-width: 50%;
margin: 0 auto;
}
}