React js UI example. user cards block

React js UI example and template, user cards block! . 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: user,cards,block

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.3.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="container bootstrap snippets bootdey">
<div class="row">
   <div class="col-md-4">
   
   <div class="panel widget">
      <div style={{/*background-image: url('https://bootdey.com/img/Content/bg1.jpg')*/}} class="panel-body text-center bg-center">
         <div class="row row-table">
            <div class="col-xs-12 text-white">
               <img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="Image" class="img-thumbnail img-circle thumb128"/>
               <h3 class="m0">Chris</h3>
               <p class="m0">
                  <em class="fa fa-twitter fa-fw"></em>@chris</p>
            </div>
         </div>
      </div>
      <div class="panel-body text-center bg-gray-darker">
         <div class="row row-table">
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-twitter fa-2x"></em>
               </a>
            </div>
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-facebook fa-2x"></em>
               </a>
            </div>
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-comments fa-2x"></em>
               </a>
            </div>
         </div>
      </div>
      <div class="list-group">
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">15</span>
            <em class="fa fa-fw fa-clock-o text-muted"></em>Recent Activity</a>
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">100</span>
            <em class="fa fa-fw fa-user text-muted"></em>Following</a>
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">300</span>
            <em class="fa fa-fw fa-folder-open-o text-muted"></em>Photos</a>
      </div>
   </div>
   
   </div>
   
   
   
   <div class="col-md-4">
   
   <div class="panel widget">
      <div style={{/*background-image: url('https://bootdey.com/img/Content/bg1.jpg')*/}} class="panel-body text-center bg-center">
         <div class="row row-table">
            <div class="col-xs-12 text-white">
               <img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="Image" class="img-thumbnail img-circle thumb128"/>
               <h3 class="m0">Chris</h3>
               <p class="m0">
                  <em class="fa fa-twitter fa-fw"></em>@chris</p>
            </div>
         </div>
      </div>
      <div class="panel-body text-center bg-gray-darker">
         <div class="row row-table">
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-twitter fa-2x"></em>
               </a>
            </div>
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-facebook fa-2x"></em>
               </a>
            </div>
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-comments fa-2x"></em>
               </a>
            </div>
         </div>
      </div>
      <div class="list-group">
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">15</span>
            <em class="fa fa-fw fa-clock-o text-muted"></em>Recent Activity</a>
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">100</span>
            <em class="fa fa-fw fa-user text-muted"></em>Following</a>
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">300</span>
            <em class="fa fa-fw fa-folder-open-o text-muted"></em>Photos</a>
      </div>
   </div>
   
   </div>
   
   
   
   <div class="col-md-4">
   
   <div class="panel widget">
      <div style={{/*background-image: url('https://bootdey.com/img/Content/bg1.jpg')*/}} class="panel-body text-center bg-center">
         <div class="row row-table">
            <div class="col-xs-12 text-white">
               <img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Image" class="img-thumbnail img-circle thumb128"/>
               <h3 class="m0">Chris</h3>
               <p class="m0">
                  <em class="fa fa-twitter fa-fw"></em>@chris</p>
            </div>
         </div>
      </div>
      <div class="panel-body text-center bg-gray-darker">
         <div class="row row-table">
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-twitter fa-2x"></em>
               </a>
            </div>
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-facebook fa-2x"></em>
               </a>
            </div>
            <div class="col-xs-4">
               <a href="#/" class="text-white">
                  <em class="fa fa-comments fa-2x"></em>
               </a>
            </div>
         </div>
      </div>
      <div class="list-group">
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">15</span>
            <em class="fa fa-fw fa-clock-o text-muted"></em>Recent Activity</a>
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">100</span>
            <em class="fa fa-fw fa-user text-muted"></em>Following</a>
         <a href="#/" class="list-group-item">
            <span class="label label-primary pull-right">300</span>
            <em class="fa fa-fw fa-folder-open-o text-muted"></em>Photos</a>
      </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 {
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 14px;
  line-height: 1.52857143;
  color: #515253;
  background-color: #f5f7fa;
  margin-top:20px;
}

.widget .panel, .widget.panel {
  overflow: hidden;
}

.widget {
  margin-bottom: 20px;
  border: 0;
}

.bg-gray-darker {
  background-color: #232735;
  color: #fff!important;
}

.row-table {
  display: table;
  table-layout: fixed;
  height: 100%;
  width: 100%;
  margin: 0;
}

.row-table>[class*=col-] {
  display: table-cell;
  float: none;
  table-layout: fixed;
  vertical-align: middle;
}  

.text-white {
  color: #fff;
}

.thumb128 {
  width: 128px!important;
  height: 128px!important;
}

.m0 {
  margin: 0!important;
}

.bg-gray-darker {
  background-color: #232735;
  color: #fff!important;
}

.list-group {
  line-height: 1.3;
}

.panel>.list-group .list-group-item {
  border-top: 0;
}

Similar snippets

React js template and ui example events card widget

events card widget

React js template and ui example color contact list

color contact list

React js template and ui example Simple user description

Simple user description

React js template and ui example messages chat widget

messages chat widget

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example tickets timeline

tickets timeline

React js template and ui example read email

read email

React js template and ui example timeline steps

timeline steps