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 rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css" integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA=" crossorigin="anonymous" />
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 col-md-6 order-2 order-md-1 mt-4 pt-2 mt-sm-0 opt-sm-0">
<div class="row align-items-center">
<div class="col-lg-6 col-md-6 col-6">
<div class="row">
<div class="col-lg-12 col-md-12 mt-4 pt-2">
<div class="card work-desk rounded border-0 shadow-lg overflow-hidden">
<img src="https://www.bootdey.com/image/241x362/FFB6C1/000000" class="img-fluid" alt="Image" />
<div class="img-overlay bg-dark"></div>
</div>
</div>
<div class="col-12">
<div class="mt-4 pt-2 text-right">
<a href="javascript:void(0)" class="btn btn-info">Read More <i class="mdi mdi-chevron-right"></i></a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-6">
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="card work-desk rounded border-0 shadow-lg overflow-hidden">
<img src="https://www.bootdey.com/image/337x450/87CEFA/000000" class="img-fluid" alt="Image" />
<div class="img-overlay bg-dark"></div>
</div>
</div>
<div class="col-lg-12 col-md-12 mt-4 pt-2">
<div class="card work-desk rounded border-0 shadow-lg overflow-hidden">
<img src="https://www.bootdey.com/image/600x401/FF7F50/000000" class="img-fluid" alt="Image" />
<div class="img-overlay bg-dark"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-12 order-1 order-md-2">
<div class="section-title ml-lg-5">
<h5 class="text-custom font-weight-normal mb-3">About Us</h5>
<h4 class="title mb-4">
Our mission is to <br />
make your life easier.
</h4>
<p class="text-muted mb-0">Lorem, ipsum dolor sit amet consectetur adipisicing elit quod debitis praesentium pariatur temporibus ipsa, cum quidem obcaecati sunt?</p>
<div class="row">
<div class="col-lg-6 mt-4 pt-2">
<div class="media align-items-center rounded shadow p-3">
<i class="fa fa-play h4 mb-0 text-custom"></i>
<h6 class="ml-3 mb-0"><a href="javascript:void(0)" class="text-dark">Responsive</a></h6>
</div>
</div>
<div class="col-lg-6 mt-4 pt-2">
<div class="media align-items-center rounded shadow p-3">
<i class="fa fa-file-download h4 mb-0 text-custom"></i>
<h6 class="ml-3 mb-0"><a href="javascript:void(0)" class="text-dark">Free Download</a></h6>
</div>
</div>
<div class="col-lg-6 mt-4 pt-2">
<div class="media align-items-center rounded shadow p-3">
<i class="fa fa-user h4 mb-0 text-custom"></i>
<h6 class="ml-3 mb-0"><a href="javascript:void(0)" class="text-dark">Support</a></h6>
</div>
</div>
<div class="col-lg-6 mt-4 pt-2">
<div class="media align-items-center rounded shadow p-3">
<i class="fa fa-image h4 mb-0 text-custom"></i>
<h6 class="ml-3 mb-0"><a href="javascript:void(0)" class="text-dark">Development</a></h6>
</div>
</div>
</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;
background:#F0F8FF;
}
.text-custom{
color: #0062ff !important;
}