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>
<footer class="bg-dark footer">
<div class="footer-top py-8">
<div class="container">
<div class="row gy-5">
<div class="col-lg-8 pe-xxl-10">
<div class="row gy-5">
<div class="col-6 col-lg-4">
<h5 class="text-white footer-title-01">A propos</h5>
<ul class="list-unstyled footer-link-01 m-0">
<li><a class="text-white text-opacity-75" href="#/">About Us</a></li>
<li><a class="text-white text-opacity-75" href="#/">Blog</a></li>
<li><a class="text-white text-opacity-75" href="#/">Our ingredients</a></li>
<li><a class="text-white text-opacity-75" href="#/">Our resellers</a></li>
</ul>
</div>
<div class="col-6 col-lg-4">
<h5 class="text-white footer-title-01">About</h5>
<ul class="list-unstyled footer-link-01 m-0">
<li><a class="text-white text-opacity-75" href="#/">Customer Service</a></li>
<li><a class="text-white text-opacity-75" href="#/">Privacy Policy</a></li>
<li><a class="text-white text-opacity-75" href="#/">Cookie Policy</a></li>
<li><a class="text-white text-opacity-75" href="#/">Terms & Conditions</a></li>
<li><a class="text-white text-opacity-75" href="#/">Terms of Use</a></li>
</ul>
</div>
<div class="col-6 col-lg-4">
<h5 class="text-white footer-title-01">Need Help?</h5>
<ul class="list-unstyled footer-link-01 m-0">
<li><a class="text-white text-opacity-75" href="#/">Contact Us</a></li>
<li><a class="text-white text-opacity-75" href="#/">FAQs</a></li>
<li><a class="text-white text-opacity-75" href="#/">Offers & Kits</a></li>
<li><a class="text-white text-opacity-75" href="#/">Get the app</a></li>
<li><a class="text-white text-opacity-75" href="#/">Store locator</a></li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4">
<h5 class="text-white footer-title-01 fs-5">Subscribe to our newsletter and get 15% off your next order.</h5>
<div>
<form class="d-flex flex-row mb-2 p-1 bg-white input-group"><input type="email" class="form-control rounded border-0" placeholder="Your Email"/> <button class="btn btn-secondary flex-shrink-0" type="submit">Subscribe</button></form>
<p class="fs-sm text-white text-opacity-75">I agree to receive Absolution newsletters</p>
</div>
</div>
</div>
</div>
</div>
<div class="footer-bottom small py-3 border-top border-white border-opacity-10">
<div class="container">
<div class="row">
<div class="col-md-6 text-center text-md-start py-1">
<p class="m-0 text-white text-opacity-75">© 2022 copyright by <a class="text-reset" href="#/">bootdey.com</a></p>
</div>
<div class="col-md-6 text-center text-md-end py-1">
<ul class="nav justify-content-center justify-content-md-end list-unstyled footer-link-01 m-0">
<li class="p-0 mx-3 ms-md-0 me-md-3"><a href="#/" class="text-white text-opacity-75">Privace & Policy</a></li>
<li class="p-0 mx-3 ms-md-0 me-md-3"><a href="#/" class="text-white text-opacity-75">Faq's</a></li>
<li class="p-0 mx-3 ms-md-0 me-md-3"><a href="#/" class="text-white text-opacity-75">Get a Quote</a></li>
</ul>
</div>
</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 :
.wrapper>* {
flex: 0 0 auto;
}
a {
text-decoration: none;
background-color: transparent;
}
.py-8 {
padding-top: 3.5rem !important;
padding-bottom: 3.5rem !important;
}
.footer-link-01 li+li {
padding-top: 0.8rem;
}
.footer-title-01 {
font-size: 16px;
margin: 0 0 20px;
font-weight: 600;
}
.footer-title-01 {
font-size: 16px;
margin: 0 0 20px;
font-weight: 600
}
.footer-link-01 li+li {
padding-top: .8rem
}
@media (max-width: 991.98px) {
.footer-link-01 li+li {
padding-top: .6rem
}
}
.footer-link-01 a {
position: relative;
display: inline-block;
vertical-align: top
}
.footer-link-01 a:after {
content: "";
position: absolute;
bottom: 0;
left: auto;
right: 0;
width: 0;
height: 1px;
transition: ease all .35s;
background: currentColor
}
.footer-link-01 a:hover:after {
left: 0;
right: auto;
width: 100%
}