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/MaterialDesign-Webfont/5.3.45/css/materialdesignicons.css" integrity="sha256-NAxhqDvtY0l4xn+YVa6WjAcmd94NNfttjNsDmNatFVc=" crossorigin="anonymous" />
<footer class="footer bg-footer">
<div class="container">
<div class="row">
<div class="col-lg-4 col-12 mb-0 mb-md-4 pb-0 pb-md-2">
<p class="mt-4">Build responsive, mobile-first projects on the web with the world's most popular front-end component library.</p>
</div>
<div class="col-lg-3 col-md-4 col-12 mt-4 mt-sm-0 pt-2 pt-sm-0">
<h4 class="text-light footer-head">Landing</h4>
<ul class="list-unstyled footer-list mt-4">
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Agency</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Software</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Startup</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Business</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Hosting</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Studio</a></li>
</ul>
</div>
<div class="col-lg-2 col-md-4 col-12 mt-4 mt-sm-0 pt-2 pt-sm-0">
<h4 class="text-light footer-head">About</h4>
<ul class="list-unstyled footer-list mt-4">
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> About us</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Services</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Team</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Terms Policy</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Privacy Policy</a></li>
<li><a href="javascript:void(0)" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Login</a></li>
</ul>
</div>
<div class="col-lg-3 col-md-4 col-12 mt-4 mt-sm-0 pt-2 pt-sm-0">
<h4 class="text-light footer-head">Locations</h4>
<ul class="list-unstyled footer-list mt-4">
<li><a href="#/" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> San Francisco</a></li>
<li><a href="#/" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Tokio</a></li>
<li><a href="#/" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> South Korea</a></li>
<li><a href="#/" class="text-foot"><i class="mdi mdi-chevron-right mr-1"></i> Myanmar</a></li>
</ul>
</div>
</div>
</div>
</footer>
<footer class="footer bg-footer footer-bar">
<div class="container text-center">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="text-sm-left">
<p class="mb-0">© 2020. Design with <i class="mdi mdi-heart text-danger"></i></p>
</div>
</div>
<div class="col-sm-6 mt-4 mt-sm-0 pt-2 pt-sm-0">
<ul class="list-unstyled text-sm-right social-icon social mb-0">
<li class="list-inline-item"><a href="javascript:void(0)" class="rounded"><i class="mdi mdi-facebook" title="Facebook"></i></a></li>
<li class="list-inline-item"><a href="javascript:void(0)" class="rounded"><i class="mdi mdi-instagram" title="Instagram"></i></a></li>
<li class="list-inline-item"><a href="javascript:void(0)" class="rounded"><i class="mdi mdi-twitter" title="Twitter"></i></a></li>
<li class="list-inline-item"><a href="javascript:void(0)" class="rounded"><i class="mdi mdi-google-plus" title="Google +"></i></a></li>
<li class="list-inline-item"><a href="javascript:void(0)" class="rounded"><i class="mdi mdi-linkedin" title="Linkedin"></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
</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;}
.bg-footer {
background-color: #3b4757 !important;
}
.footer {
padding: 60px 0;
position: relative;
color: #adb5bd;
}
.footer .logo-footer {
font-weight: 700;
font-size: 22px;
padding: 3px 0;
letter-spacing: 1px;
}
.footer .footer-head {
font-size: 18px;
letter-spacing: 0.8px;
font-weight: 600;
}
.footer .text-foot {
color: #adb5bd;
}
.footer .footer-list {
margin-bottom: 0;
}
.footer .footer-list li {
margin-bottom: 10px;
}
.footer .footer-list li a {
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.footer .footer-list li a:hover {
color: #6dc77a !important;
}
.footer .footer-list li:last-child {
margin-bottom: 0;
}
.footer.footer-bar {
padding: 30px 0;
border-top: 1px solid #6c757d;
}
.footer.footer-bar .payment-cards img {
height: 25px;
}
.social-icon.social li a {
color: #adb5bd;
border-color: #adb5bd;
}
.social-icon li a {
color: #35404e;
border: 1px solid #35404e;
display: inline-block;
height: 32px;
text-align: center;
font-size: 15px;
width: 32px;
line-height: 30px;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
overflow: hidden;
position: relative;
}
.rounded {
border-radius: 5px !important;
}