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>
<section id="price-section">
<div class="container">
<div class="row justify-content-center gapsectionsecond">
<div class="col-lg-7 text-center">
<div class="title-big pb-3 mb-3">
<h3>SERVICE PRICES</h3>
</div>
<p class="description-p text-muted pe-0 pe-lg-0">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus quas optio reiciendis deleniti voluptatem facere sequi, quia, est sed dicta aliquid quidem facilis culpa iure perferendis? Dolor ad quia deserunt.
</p>
</div>
</div>
<div class="row pt-5">
<div class="col-lg-4 pb-5 pb-lg-0">
<div class="wrap-price">
<div class="price-innerdetail text-center">
<h5>MINIMUM BASIC SERVICE</h5>
<p class="prices">150$</p>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Photoshoot duration </span>
<span class="float-right">4 Hours</span>
</div>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Number photo</span>
<span class="float-right">50 - 200</span>
</div>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Consultation</span>
<span class="float-right">Style</span>
</div>
<a href="#/" class="btn btn-secondary mt-5">Schedule</a>
</div>
</div>
</div>
<div class="col-lg-4 pb-5 pb-lg-0">
<div class="wrap-price center-wrap">
<div class="price-innerdetail text-center">
<h5>PRO SERVICE</h5>
<p class="prices">350$</p>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Photoshoot duration </span>
<span class="float-right">4 Hours</span>
</div>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Number photo</span>
<span class="float-right">50 - 200</span>
</div>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Consultation</span>
<span class="float-right">Style</span>
</div>
<a href="#/" class="btn btn-secondary mt-5">Schedule</a>
</div>
</div>
</div>
<div class="col-lg-4 pb-5 pb-lg-0">
<div class="wrap-price">
<div class="price-innerdetail text-center">
<h5>STANDART SERVICE</h5>
<p class="prices">250$</p>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Photoshoot duration </span>
<span class="float-right">4 Hours</span>
</div>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Number photo</span>
<span class="float-right">50 - 200</span>
</div>
<div class="detail-pricing">
<span class="float-left"> <i class="bi bi-check2-circle"></i> Consultation</span>
<span class="float-right">Style</span>
</div>
<a href="#/" class="btn btn-secondary mt-5">Schedule</a>
</div>
</div>
</div>
</div>
</div>
</section>
</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;}
.price-innerdetail h5 {
font-weight: 400;
letter-spacing: 2px;
font-size: 15px;
}
.price-innerdetail p {
font-size: 50px;
}
.detail-pricing {
border-bottom: 1px solid;
padding: 30px 0 30px 0;
}
.detail-pricing .float-left {
padding: 0 0 0 40px;
}
.detail-pricing .float-left i {
position: absolute;
left: 0;
font-size: 20px;
}
.detail-pricing span {
display: inline-block;
position: relative;
font-weight: 400;
}
.wrap-price {
background: rgba(32, 33, 36, .1);
padding: 50px 20px 50px;
border-radius: 10px;
}
.center-wrap {
background: #070707;
color: #fff;
}