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>
<div class="container bootstrap snippets bootdeys">
<div class="col-md-12 col-right">
<div class="col-inside-lg decor-default activities" id="activities" style={{/*overflow-y: hidden; outline: none;*/}} tabindex="5003">
<h6>Activites</h6>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> started following <a href="#/">Katya Angintiew</a>
</div>
<div class="field date">
<span class="f-l">Today 6:15 pm - 22.03 2015</span>
<span class="f-r color-success">5 min ago</span>
</div>
<div class="field btn-group-xs f-l">
<button type="button" class="btn btn-lg-xs btn-xs-like">Like</button>
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Katya Angintiew</a> posted a new blog
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> posted message on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 2:10 pm - 12.06.2015</span>
<span class="f-r">2h ago</span>
</div>
<div class="field">
<p class="color-default decor-success">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. Over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
<div class="field btn-group-xs f-r">
<button type="button" class="btn btn-lg-xs btn-xs-like">Like</button>
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
<button type="button" class="btn btn-lg-xs btn-xs-msg">Message</button>
</div>
</div>
<div class="unit">
<div class="field title">
<a href="#/">Katya Angintiew</a> add 1 photo on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
<div class="field photo">
<img src="https://www.bootdey.com/image/266x200/" alt="profile"/>
<img src="https://www.bootdey.com/image/266x200/" alt="profile"/>
<img src="https://www.bootdey.com/image/266x200/" alt="profile"/>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> posted message on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 2:10 pm - 12.06.2015</span>
<span class="f-r color-success">2h ago</span>
</div>
<div class="field btn-group-xs f-l">
<button type="button" class="btn btn-lg-xs btn-xs-like">Like</button>
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> posted message on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 2:10 pm - 12.06.2015</span>
<span class="f-r">2h ago</span>
</div>
<div class="field">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. Over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
<div class="field btn-group-xs f-r">
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Katya Angintiew</a> posted a new blog
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Katya Angintiew</a> posted a new blog
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> started following <a href="#/">Katya Angintiew</a>
</div>
<div class="field date">
<span class="f-l">Today 6:15 pm - 22.03 2015</span>
<span class="f-r color-success">5 min ago</span>
</div>
<div class="field btn-group-xs f-l">
<button type="button" class="btn btn-lg-xs btn-xs-like">Like</button>
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Katya Angintiew</a> posted a new blog
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> posted message on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 2:10 pm - 12.06.2015</span>
<span class="f-r">2h ago</span>
</div>
<div class="field">
<p class="color-default decor-success">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. Over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
<div class="field btn-group-xs f-r">
<button type="button" class="btn btn-lg-xs btn-xs-like">Like</button>
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
<button type="button" class="btn btn-lg-xs btn-xs-msg">Message</button>
</div>
</div>
<div class="unit">
<div class="field title">
<a href="#/">Katya Angintiew</a> add 1 photo on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
<div class="field photo">
<img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-responsive" alt="profile"/>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> posted message on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 2:10 pm - 12.06.2015</span>
<span class="f-r color-success">2h ago</span>
</div>
<div class="field btn-group-xs f-l">
<button type="button" class="btn btn-lg-xs btn-xs-like">Like</button>
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Alexander Herthic</a> posted message on <a href="#/">Monica Smith site</a>.
</div>
<div class="field date">
<span class="f-l">Today 2:10 pm - 12.06.2015</span>
<span class="f-r">2h ago</span>
</div>
<div class="field">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. Over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
<div class="field btn-group-xs f-r">
<button type="button" class="btn btn-lg-xs btn-xs-love">Love</button>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Katya Angintiew</a> posted a new blog
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</div>
</div>
<div class="unit">
<a class="avatar" href="#/"><img src="https://bootdey.com/img/Content/avatar/avatar5.png" class="img-responsive" alt="profile"/></a>
<div class="field title">
<a href="#/">Katya Angintiew</a> posted a new blog
</div>
<div class="field date">
<span class="f-l">Today 5:60 pm - 12.06.2016</span>
<span class="f-r">15 min ago</span>
</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:#eee;
}
.activities {
max-height: 1208px;
position: relative;
padding-bottom: 50px;
}
.decor-default {
background-color: #ffffff !important;
}
div[class*='col-'] > .col-inside-lg {
padding: 20px;
}
.activities .unit {
border-bottom: 1px solid #d8d8d8;
padding: 20px 0 20px 50px;
min-height: 80px;
position: relative;
overflow: hidden;
}
.activities .unit .avatar {
display: block;
width: 40px;
height: 40px;
position: absolute;
top: 20px;
left: 0;
}
.activities .unit .avatar img {
display: block;
border-radius: 50%;
max-width: 100%;
}
.activities .unit .field {
overflow: hidden;
font-size: 14px;
line-height: 20px;
}
.activities .unit .field a {
font-weight: bold;
color: #333333;
}
.activities .unit .field.btn-group-xs {
padding: 20px 0 0;
}
.activities .unit .field {
overflow: hidden;
font-size: 14px;
line-height: 20px;
}
.f-l {
float: left;
}
.unit .avatar img{
width:50px !important;
height:50px !important;
}