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.3.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="container">
<div class="row bootstrap snippets bootdeys" id="real-estates-columns">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel">
<div class="panel-body">
<a href="#/"><img src="https://www.bootdey.com/image/300x300/20B2AA/000000" class="img-responsive"/></a>
<div class="title-realestates-columns">
<h4><a href="#/"><strong>Omah Gedong Apik BGT</strong></a></h4>
<small class="label label-warning"><i class="fa fa-dot-circle-o" data-original-title="" title=""></i> $2,989</small>
<hr/>
<p>Nah nek iki lagi larang soale apik-apik barange tur aku ra iso tuku wong karang jeh ngumpulke gawe nikah kie.</p>
</div>
<div class="footer-realestates-columns">
<div class="row">
<div class="col-sm-6">
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-thumb-tack" data-original-title="" title=""> 2 Bedroom</i></a>
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-female" data-original-title="" title=""></i> 2 Bathroom</a>
</div>
<div class="col-sm-6">
<a href="#/" class="btn btn-primary btn-block" data-original-title="" title="">Apply to Rent</a>
<a href="#/" class="btn btn-danger btn-block" data-original-title="" title="">Favorite</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel">
<div class="panel-body">
<a href="#/"><img src="https://www.bootdey.com/image/300x300/FF7F50/000000" class="img-responsive"/></a>
<div class="title-realestates-columns">
<h4><a href="#/"><strong>Omah Gedong Apik BGT</strong></a></h4>
<small class="label label-warning"><i class="fa fa-dot-circle-o" data-original-title="" title=""></i> $2,989</small>
<hr/>
<p>Nah nek iki lagi larang soale apik-apik barange tur aku ra iso tuku wong karang jeh ngumpulke gawe nikah kie.</p>
</div>
<div class="footer-realestates-columns">
<div class="row">
<div class="col-sm-6">
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-thumb-tack" data-original-title="" title=""> 2 Bedroom</i></a>
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-female" data-original-title="" title=""></i> 2 Bathroom</a>
</div>
<div class="col-sm-6">
<a href="#/" class="btn btn-primary btn-block" data-original-title="" title="">Apply to Rent</a>
<a href="#/" class="btn btn-danger btn-block" data-original-title="" title="">Favorite</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel">
<div class="panel-body">
<a href="#/"><img src="https://www.bootdey.com/image/300x300/87CEFA/000000" class="img-responsive"/></a>
<div class="title-realestates-columns">
<h4><a href="#/"><strong>Omah Gedong Apik BGT</strong></a></h4>
<small class="label label-warning"><i class="fa fa-dot-circle-o" data-original-title="" title=""></i> $2,989</small>
<hr/>
<p>Nah nek iki lagi larang soale apik-apik barange tur aku ra iso tuku wong karang jeh ngumpulke gawe nikah kie.</p>
</div>
<div class="footer-realestates-columns">
<div class="row">
<div class="col-sm-6">
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-thumb-tack" data-original-title="" title=""> 2 Bedroom</i></a>
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-female" data-original-title="" title=""></i> 2 Bathroom</a>
</div>
<div class="col-sm-6">
<a href="#/" class="btn btn-primary btn-block" data-original-title="" title="">Apply to Rent</a>
<a href="#/" class="btn btn-danger btn-block" data-original-title="" title="">Favorite</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel">
<div class="panel-body">
<a href="#/"><img src="https://www.bootdey.com/image/300x300/FFB6C1/000000" class="img-responsive"/></a>
<div class="title-realestates-columns">
<h4><a href="#/"><strong>Omah Gedong Apik BGT</strong></a></h4>
<small class="label label-warning"><i class="fa fa-dot-circle-o" data-original-title="" title=""></i> $2,989</small>
<hr/>
<p>Nah nek iki lagi larang soale apik-apik barange tur aku ra iso tuku wong karang jeh ngumpulke gawe nikah kie.</p>
</div>
<div class="footer-realestates-columns">
<div class="row">
<div class="col-sm-6">
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-thumb-tack" data-original-title="" title=""> 2 Bedroom</i></a>
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-female" data-original-title="" title=""></i> 2 Bathroom</a>
</div>
<div class="col-sm-6">
<a href="#/" class="btn btn-primary btn-block" data-original-title="" title="">Apply to Rent</a>
<a href="#/" class="btn btn-danger btn-block" data-original-title="" title="">Favorite</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel">
<div class="panel-body">
<a href="#/"><img src="https://www.bootdey.com/image/300x300/FF7F50/000000" class="img-responsive"/></a>
<div class="title-realestates-columns">
<h4><a href="#/"><strong>Omah Gedong Apik BGT</strong></a></h4>
<small class="label label-warning"><i class="fa fa-dot-circle-o" data-original-title="" title=""></i> $2,989</small>
<hr/>
<p>Nah nek iki lagi larang soale apik-apik barange tur aku ra iso tuku wong karang jeh ngumpulke gawe nikah kie.</p>
</div>
<div class="footer-realestates-columns">
<div class="row">
<div class="col-sm-6">
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-thumb-tack" data-original-title="" title=""> 2 Bedroom</i></a>
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-female" data-original-title="" title=""></i> 2 Bathroom</a>
</div>
<div class="col-sm-6">
<a href="#/" class="btn btn-primary btn-block" data-original-title="" title="">Apply to Rent</a>
<a href="#/" class="btn btn-danger btn-block" data-original-title="" title="">Favorite</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel">
<div class="panel-body">
<a href="#/"><img src="https://www.bootdey.com/image/300x300/20B2AA/000000" class="img-responsive"/></a>
<div class="title-realestates-columns">
<h4><a href="#/"><strong>Omah Gedong Apik BGT</strong></a></h4>
<small class="label label-warning"><i class="fa fa-dot-circle-o" data-original-title="" title=""></i> $2,989</small>
<hr/>
<p>Nah nek iki lagi larang soale apik-apik barange tur aku ra iso tuku wong karang jeh ngumpulke gawe nikah kie.</p>
</div>
<div class="footer-realestates-columns">
<div class="row">
<div class="col-sm-6">
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-thumb-tack" data-original-title="" title=""> 2 Bedroom</i></a>
<a href="#/" class="btn btn-default btn-block" data-original-title="" title=""><i class="fa fa-female" data-original-title="" title=""></i> 2 Bathroom</a>
</div>
<div class="col-sm-6">
<a href="#/" class="btn btn-primary btn-block" data-original-title="" title="">Apply to Rent</a>
<a href="#/" class="btn btn-danger btn-block" data-original-title="" title="">Favorite</a>
</div>
</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-color: #f2f2f2;
}
#real-estates-columns .title-realestates-columns h4 a {
color: #1abc9c;
font-weight: 300;
font-size: 18pt;
text-decoration: none;
}
#real-estates-columns .btn.btn-default {
border-color: #bdc3c7;
background-color: #bdc3c7;
border: 1px solid #bdc3c7;
}
#real-estates-columns img {
border: 5px solid #ecf0f1;
width: 100%;
height: 300px;
margin-bottom: 10px;
}