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 mt-5 pt-4">
<div class="row align-items-end mb-4 pb-2">
<div class="col-md-8">
<div class="section-title text-center text-md-start">
<h4 class="title mb-4">Find the perfect jobs</h4>
<p class="text-muted mb-0 para-desc">Start work with Leaping. Build responsive, mobile-first projects on the web with the world's most popular front-end component library.</p>
</div>
</div>
<div class="col-md-4 mt-4 mt-sm-0 d-none d-md-block">
<div class="text-center text-md-end">
<a href="#/" class="text-primary">View more Jobs <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right fea icon-sm"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg></a>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-6 col-12 mt-4 pt-2">
<div class="card border-0 bg-light rounded shadow">
<div class="card-body p-4">
<span class="badge rounded-pill bg-primary float-md-end mb-3 mb-sm-0">Full time</span>
<h5>Web Designer</h5>
<div class="mt-3">
<span class="text-muted d-block"><i class="fa fa-home" aria-hidden="true"></i> <a href="#/" target="_blank" class="text-muted">Bootdey.com LLC.</a></span>
<span class="text-muted d-block"><i class="fa fa-map-marker" aria-hidden="true"></i> USA</span>
</div>
<div class="mt-3">
<a href="#/" class="btn btn-primary">View Details</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 mt-4 pt-2">
<div class="card border-0 bg-light rounded shadow">
<div class="card-body p-4">
<span class="badge rounded-pill bg-primary float-md-end mb-3 mb-sm-0">Remote</span>
<h5>Front-end Developer</h5>
<div class="mt-3">
<span class="text-muted d-block"><i class="fa fa-home" aria-hidden="true"></i> <a href="#/" target="_blank" class="text-muted">Bootdey.com LLC.</a></span>
<span class="text-muted d-block"><i class="fa fa-map-marker" aria-hidden="true"></i> USA</span>
</div>
<div class="mt-3">
<a href="#/" class="btn btn-primary">View Details</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 mt-4 pt-2">
<div class="card border-0 bg-light rounded shadow">
<div class="card-body p-4">
<span class="badge rounded-pill bg-primary float-md-end mb-3 mb-sm-0">Contract</span>
<h5>Web Developer</h5>
<div class="mt-3">
<span class="text-muted d-block"><i class="fa fa-home" aria-hidden="true"></i> <a href="#/" target="_blank" class="text-muted">Bootdey.com LLC.</a></span>
<span class="text-muted d-block"><i class="fa fa-map-marker" aria-hidden="true"></i> USA</span>
</div>
<div class="mt-3">
<a href="#/" class="btn btn-primary">View Details</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 mt-4 pt-2">
<div class="card border-0 bg-light rounded shadow">
<div class="card-body p-4">
<span class="badge rounded-pill bg-primary float-md-end mb-3 mb-sm-0">WFH</span>
<h5>Back-end Developer</h5>
<div class="mt-3">
<span class="text-muted d-block"><i class="fa fa-home" aria-hidden="true"></i> <a href="#/" target="_blank" class="text-muted">Bootdey.com LLC.</a></span>
<span class="text-muted d-block"><i class="fa fa-map-marker" aria-hidden="true"></i> USA</span>
</div>
<div class="mt-3">
<a href="#/" class="btn btn-primary">View Details</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 mt-4 pt-2">
<div class="card border-0 bg-light rounded shadow">
<div class="card-body p-4">
<span class="badge rounded-pill bg-primary float-md-end mb-3 mb-sm-0">Full time</span>
<h5>UX / UI Designer</h5>
<div class="mt-3">
<span class="text-muted d-block"><i class="fa fa-home" aria-hidden="true"></i> <a href="#/" target="_blank" class="text-muted">Bootdey.com LLC.</a></span>
<span class="text-muted d-block"><i class="fa fa-map-marker" aria-hidden="true"></i> USA</span>
</div>
<div class="mt-3">
<a href="#/" class="btn btn-primary">View Details</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 mt-4 pt-2">
<div class="card border-0 bg-light rounded shadow">
<div class="card-body p-4">
<span class="badge rounded-pill bg-primary float-md-end mb-3 mb-sm-0">Remote</span>
<h5>Tester</h5>
<div class="mt-3">
<span class="text-muted d-block"><i class="fa fa-home" aria-hidden="true"></i> <a href="#/" target="_blank" class="text-muted">Bootdey.com LLC.</a></span>
<span class="text-muted d-block"><i class="fa fa-map-marker" aria-hidden="true"></i> USA</span>
</div>
<div class="mt-3">
<a href="#/" class="btn btn-primary">View Details</a>
</div>
</div>
</div>
</div>
<div class="col-12 mt-4 pt-2 d-block d-md-none text-center">
<a href="#/" class="btn btn-primary">View more Jobs <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right fea icon-sm"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg></a>
</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;}
.shadow {
box-shadow: 0 0 3px rgb(53 64 78 / 20%) !important;
}
.rounded {
border-radius: 5px !important;
}
.bg-light {
background-color: #f7f8fa !important;
}
.bg-primary, .btn-primary, .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.focus, .btn-outline-primary:not(:disabled):not(.disabled):active, .badge-primary, .nav-pills .nav-link.active, .pagination .active a, .custom-control-input:checked ~ .custom-control-label:before, #preloader #status .spinner > div, .social-icon li a:hover, .back-to-top:hover, .back-to-home a, ::selection, #topnav .navbar-toggle.open span:hover, .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots.clickable .owl-dot:hover span, .watch-video a .play-icon-circle, .sidebar .widget .tagcloud > a:hover, .flatpickr-day.selected, .flatpickr-day.selected:hover, .tns-nav button.tns-nav-active, .form-check-input.form-check-input:checked {
background-color: #6dc77a !important;
}
.badge {
padding: 5px 8px;
border-radius: 3px;
letter-spacing: 0.5px;
font-size: 12px;
}
.btn-primary, .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.focus, .btn-outline-primary:not(:disabled):not(.disabled):active {
box-shadow: 0 3px 7px rgb(109 199 122 / 50%) !important;
}
.btn-primary, .btn-outline-primary, .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.focus, .btn-outline-primary:not(:disabled):not(.disabled):active, .bg-soft-primary .border, .alert-primary, .alert-outline-primary, .badge-outline-primary, .nav-pills .nav-link.active, .pagination .active a, .form-group .form-control:focus, .form-group .form-control.active, .custom-control-input:checked ~ .custom-control-label:before, .custom-control-input:focus ~ .custom-control-label::before, .form-control:focus, .social-icon li a:hover, #topnav .has-submenu.active.active .menu-arrow, #topnav.scroll .navigation-menu > li:hover > .menu-arrow, #topnav.scroll .navigation-menu > li.active > .menu-arrow, #topnav .navigation-menu > li:hover > .menu-arrow, .flatpickr-day.selected, .flatpickr-day.selected:hover, .form-check-input:focus, .form-check-input.form-check-input:checked, .container-filter li.active, .container-filter li:hover {
border-color: #6dc77a !important;
}
.bg-primary, .btn-primary, .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.focus, .btn-outline-primary:not(:disabled):not(.disabled):active, .badge-primary, .nav-pills .nav-link.active, .pagination .active a, .custom-control-input:checked ~ .custom-control-label:before, #preloader #status .spinner > div, .social-icon li a:hover, .back-to-top:hover, .back-to-home a, ::selection, #topnav .navbar-toggle.open span:hover, .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots.clickable .owl-dot:hover span, .watch-video a .play-icon-circle, .sidebar .widget .tagcloud > a:hover, .flatpickr-day.selected, .flatpickr-day.selected:hover, .tns-nav button.tns-nav-active, .form-check-input.form-check-input:checked {
background-color: #6dc77a !important;
}
.btn {
padding: 8px 20px;
outline: none;
text-decoration: none;
font-size: 16px;
letter-spacing: 0.5px;
transition: all 0.3s;
font-weight: 600;
border-radius: 5px;
}
.btn-primary {
background-color: #6dc77a !important;
border: 1px solid #6dc77a !important;
color: #fff !important;
box-shadow: 0 3px 7px rgb(109 199 122 / 50%);
}
a {
text-decoration:none;
}