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>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<div class="container">
<section class="section mb-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8 col-xl-7 text-center desc">
<h2 class="h1 mb-3">How can we help?</h2>
<p class="mx-lg-8">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa.</p>
<form class="d-flex flex-column flex-md-row mt-4"><input type="email" class="form-control me-sm-2 mb-2 mb-sm-0" placeholder="[email protected]"/> <button class="btn btn-primary flex-shrink-0" type="submit">Get Started</button></form>
</div>
</div>
</div>
</section>
<section class="section pt-0">
<div class="container">
<div class="row gy-4 justify-content-center">
<div class="col-sm-6 col-md-6 col-lg-4">
<div class="card">
<div class="card-body d-flex">
<div class="icon-lg bg-primary rounded-3 text-white"><i class="fa fa-question-circle"></i></div>
<div class="ps-3 col">
<h5 class="h6 mb-2"><a class="stretched-link text-reset" href="#/">Buying and Item Support</a></h5>
<p class="m-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque</p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4">
<div class="card">
<div class="card-body d-flex">
<div class="icon-lg bg-primary rounded-3 text-white"><i class="fa fa-id-badge"></i></div>
<div class="ps-3 col">
<h5 class="h6 mb-2"><a class="stretched-link text-reset" href="#/">Licensing</a></h5>
<p class="m-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque</p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4">
<div class="card">
<div class="card-body d-flex">
<div class="icon-lg bg-primary rounded-3 text-white"><i class="fa fa-user"></i></div>
<div class="ps-3 col">
<h5 class="h6 mb-2"><a class="stretched-link text-reset" href="#/">Your Account</a></h5>
<p class="m-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque</p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4">
<div class="card">
<div class="card-body d-flex">
<div class="icon-lg bg-primary rounded-3 text-white"><i class="fa fa-trophy"></i></div>
<div class="ps-3 col">
<h5 class="h6 mb-2"><a class="stretched-link text-reset" href="#/">Copyright and Trademarks</a></h5>
<p class="m-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque</p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4">
<div class="card">
<div class="card-body d-flex">
<div class="icon-lg bg-primary rounded-3 text-white"><i class="fa fa-book"></i></div>
<div class="ps-3 col">
<h5 class="h6 mb-2"><a class="stretched-link text-reset" href="#/">Tax & Compliance</a></h5>
<p class="m-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque</p>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4">
<div class="card">
<div class="card-body d-flex">
<div class="icon-lg bg-primary rounded-3 text-white"><i class="fa fa-check"></i></div>
<div class="ps-3 col">
<h5 class="h6 mb-2"><a class="stretched-link text-reset" href="#/">Licensing</a></h5>
<p class="m-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</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;
background:#483D8B;
}
.icon-lg {
width: 3.5rem;
height: 3.5rem;
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 1.5rem;
line-height: 1;
}
.card {
box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
}
a {
text-decoration:none;
}
.desc{
color:#fff;
}