1. First, we need fresh reactjs setup, and for that, we need to run below commands into out terminal, and also we should have latest node version installed on our system:
npx create-react-app my-awesome-project
cd my-awesome-project
npm start
2. Now we need to run below commands into our project terminal to get bootstrap and related modules into our reactjs application:
npm install [email protected] --save
npm start //For start project again
3. Finally for the main output, we need to add below code into our my-awesome-project/src/App.js file or if you have fresh setup then you can replace my-awesome-project/src/App.js file code with below code:
import React from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
function App() {
return (
<div>
<div class="container">
<div class="text-center mb-2-8 mb-lg-6">
<h2 class="display-18 display-md-16 display-lg-14 font-weight-700">Why choose <strong class="text-primary font-weight-700">Us</strong></h2>
<span>The trusted source for why choose us</span>
</div>
<div class="row align-items-center">
<div class="col-sm-6 col-lg-4 mb-2-9 mb-sm-0">
<div class="pr-md-3">
<div class="text-center text-sm-right mb-2-9">
<div class="mb-4">
<img src="https://www.bootdey.com/image/80x80/FFB6C1/000000" alt="..." class="rounded-circle"/>
</div>
<h4 class="sub-info">Residential Cleaning</h4>
<p class="display-30 mb-0">Roin gravida nibh vel velit auctor aliquetenean sollicitudin, lorem qui bibendum auctor.</p>
</div>
<div class="text-center text-sm-right">
<div class="mb-4">
<img src="https://www.bootdey.com/image/80x80/87CEFA/000000" alt="..." class="rounded-circle"/>
</div>
<h4 class="sub-info">Commercial Cleaning</h4>
<p class="display-30 mb-0">Gravida roin nibh vel velit auctor aliquetenean sollicitudin, lorem qui bibendum auctor.</p>
</div>
</div>
</div>
<div class="col-lg-4 d-none d-lg-block">
<div class="why-choose-center-image">
<img src="https://www.bootdey.com/image/350x350/FF7F50/000000" alt="..." class="rounded-circle"/>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="pl-md-3">
<div class="text-center text-sm-left mb-2-9">
<div class="mb-4">
<img src="https://www.bootdey.com/image/80x80/8A2BE2/000000" alt="..." class="rounded-circle"/>
</div>
<h4 class="sub-info">Washing services</h4>
<p class="display-30 mb-0">Nibh roin gravida vel velit auctor aliquetenean sollicitudin, lorem qui bibendum auctor.</p>
</div>
<div class="text-center text-sm-left">
<div class="mb-4">
<img src="https://www.bootdey.com/image/80x80/20B2AA/000000" alt="..." class="rounded-circle"/>
</div>
<h4 class="sub-info">Carpet cleaning</h4>
<p class="display-30 mb-0">Vel proin gravida nibh velit auctor aliquetenean sollicitudin, lorem qui bibendum auctor.</p>
</div>
</div>
</div>
</div>
</div>
</div>
);
}
export default App;
4. Now we need to add below code into our my-awesome-project/src/App.css file :
body{margin-top:20px;}
.rounded-circle {
border-radius: 50% !important;
}
img {
max-width: 100%;
height: auto;
vertical-align: top;
}
.sub-info{
font-weight: 600;
font-family: 'Poppins', sans-serif;
color: #004975;
}
.display-30 {
font-size: 0.9rem;
}