React js UI example. card activity

React js UI example and template, card activity! . Take a look at this UI example and see how it can enhance your project. Your can copy or download the code and use it in your project. Don't forget to browse our library of other free React Native templates for even more design and functionality inspiration. Happy coding!
Tags: activity,card

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">
<div class="col-lg-10 col-md-12 card-no-border">
    <div class="card">
        <div class="card-body">
            <div class="d-flex">
                <h4 class="card-title"><span class="lstick"></span>Activity</h4>
            </div>
        </div>
        <div class="activity-box">
            <div class="card-body">
                
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-0 font-medium">Mark Freeman <span class="text-muted font-14 m-l-10">| &nbsp; 6:30 PM</span></h5>
                        <h6 class="text-muted">uploaded this file</h6>
                        <table class="table vm b-0 m-b-0">
                            <tbody>
                                <tr>
                                    <td class="m-r-10 b-0">
                                        <i class="fa fa-file-archive-o fa-5x" aria-hidden="true"></i>
                                    </td>
                                    <td class="b-0">
                                        <h5 class="m-b-0 font-medium">Homepage.zip</h5>
                                        <h6>54 MB</h6>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                
                
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-5 font-medium">Emma Smith <span class="text-muted font-14 m-l-10">| &nbsp; 6:30 PM</span></h5>
                        <h6 class="text-muted">joined projectname, and invited <a href="javascript:void(0)">@maxcage, @maxcage, @maxcage, @maxcage, @maxcage,+3</a></h6>
                        <span class="image-list m-t-20">
                            <a href="javascript:void(0)"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-circle" alt="user" width="50" /></a>
                            <a href="javascript:void(0)"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-circle" alt="user" width="50" /></a>
                            <a href="javascript:void(0)"><span class="round round-warning">C</span></a>
                            <a href="javascript:void(0)"><span class="round round-danger">D</span></a>
                            <a href="javascript:void(0)">+3</a>
                        </span>
                    </div>
                </div>
                
                
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-0 font-medium">David R. Jones <span class="text-muted font-14 m-l-10">| &nbsp; 9:30 PM, July 13th</span></h5>
                        <h6 class="text-muted">uploaded this file</h6>
                        <span>
                            <a href="javascript:void(0)" class="m-r-10"><img src="https://www.bootdey.com/image/340x232/FF8C00/000000" alt="user" width="60" /></a>
                            <a href="javascript:void(0)" class="m-r-10"><img src="https://www.bootdey.com/image/340x232/7B68EE/000000" alt="user" width="60" /></a>
                        </span>
                    </div>
                </div>
                
                
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-5 font-medium">David R. Jones <span class="text-muted font-14 m-l-10">| &nbsp; 6:30 PM</span></h5>
                        <h6 class="text-muted">Commented on<a href="javascript:void(0)">Test Project</a></h6>
                        <p class="m-b-0">It has survived not only five centuries, but also the leap into unchanged.</p>
                    </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{
    background: #f4f6f9;
    margin-top:20px;
}
.activity-box .date-devider {
    border-top: 2px solid rgba(120, 130, 140, 0.13);
    position: relative;
}
.activity-box .date-devider span {
    background: #e9edf2;
    padding: 5px 15px;
    border-radius: 60px;
    font-size: 14px;
    top: -15px;
    position: relative;
    margin-left: 20px;
}

.activity-box .activity-item {
    display: flex;
    margin-bottom: 30px;
}
.activity-box .activity-item .image-list > a {
    margin-left: -15px;
    position: relative;
    vertical-align: middle;
}
.activity-box .activity-item .image-list > a:first-child,
.activity-box .activity-item .image-list > a:last-child {
    margin-left: 0px;
}
.activity-box .activity-item .image-list > a:hover {
    z-index: 10;
}
.activity-box .activity-item .image-list > a:hover img {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}
.round img {
    border-radius: 100%;
}
.card-no-border .card {
    border: 0px;
    border-radius: 0px;
    box-shadow: none;
}
.m-r-20 {
    margin-right: 20px;
}
.img-circle {
    border-radius: 100%;
}
.round.round-warning {
    background: #ffb22b;
}
.round {
    line-height: 48px;
    color: #ffffff;
    width: 50px;
    height: 50px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    border-radius: 100%;
    background: #398bf7;
}

Similar snippets

React js template and ui example bs4 user card task list

bs4 user card task list

React js template and ui example simple user cards contact info

simple user cards contact info

React js template and ui example card features

card features

React js template and ui example Card user transfer list

Card user transfer list

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example File manager page

File manager page

React js template and ui example bs4 cart

bs4 cart

React js template and ui example Drive files documents user profile

Drive files documents user profile