React js UI example. bs4 agent cards

React js UI example and template, bs4 agent cards! . 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: cards,agents,lists

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/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css"/>
<div class="container">
<div class="row clearfix">
    <div class="col-lg-3 col-md-6 col-sm-12">
        <div class="card agent">
            <div class="agent-avatar"> 
                <a href="agent-profile.html"> 
                	<img src="https://bootdey.com/img/Content/avatar/avatar5.png" class="img-fluid " alt=""/> 
            	</a> 
           	</div>
            <div class="agent-content">
                <div class="agent-name">
                    <h4><a href="agent-profile.html">Tim Hank</a></h4>
                    <span>Fairview, Texas</span>
                    <ul class="list-unstyled team-info m-b-0">
                        <li class="m-r-15"><small>Team</small></li>                                
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Avatar"/></li>                            
                    </ul>
                </div>
                <ul class="agent-contact-details">
                    <li><i class="zmdi zmdi-phone"></i><span>(123) 123-456</span></li>
                    <li><i class="zmdi zmdi-email"></i>[email protected]</li>
                </ul>
                <ul class="social-icons">
                    <li><a class="facebook" href="#/"><i class="zmdi zmdi-facebook"></i></a></li>
                    <li><a class="twitter" href="#/"><i class="zmdi zmdi-twitter"></i></a></li>
                    <li><a class="gplus" href="#/"><i class="zmdi zmdi-google-plus"></i></a></li>
                    <li><a class="linkedin" href="#/"><i class="zmdi zmdi-linkedin"></i></a></li>
                </ul>
            </div>
        </div>
    </div>
     <div class="col-lg-3 col-md-6 col-sm-12">
        <div class="card agent">
            <div class="agent-avatar"> 
            	<a href="agent-profile.html"> <img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-fluid " alt=""/> </a> </div>
            <div class="agent-content">
                <div class="agent-name">
                    <h4><a href="agent-profile.html">Gary Camara</a></h4>
                    <span>Bristol, Pennsylvania</span>
                    <ul class="list-unstyled team-info m-b-0">
                        <li class="m-r-15"><small>Team</small></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="Avatar"/></li>                            
                    </ul>
                </div>
                <ul class="agent-contact-details">
                    <li><i class="zmdi zmdi-phone"></i><span>(123) 123-456</span></li>
                    <li><i class="zmdi zmdi-email"></i>[email protected]</li>
                </ul>
                <ul class="social-icons">
                    <li><a class="facebook" href="#/"><i class="zmdi zmdi-facebook"></i></a></li>
                    <li><a class="twitter" href="#/"><i class="zmdi zmdi-twitter"></i></a></li>
                    <li><a class="gplus" href="#/"><i class="zmdi zmdi-google-plus"></i></a></li>
                    <li><a class="linkedin" href="#/"><i class="zmdi zmdi-linkedin"></i></a></li>
                </ul>
            </div>
        </div>
    </div>
     <div class="col-lg-3 col-md-6 col-sm-12">
        <div class="card agent">
            <div class="agent-avatar"> 
            	<a href="agent-profile.html"> <img src="https://bootdey.com/img/Content/avatar/avatar7.png" class="img-fluid " alt=""/> </a> </div>
            <div class="agent-content">
                <div class="agent-name">
                    <h4><a href="agent-profile.html">Hossein Shams</a></h4>
                    <span>Springfield, Florida</span>
                    <ul class="list-unstyled team-info m-b-0">
                        <li class="m-r-15"><small>Team</small></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="Avatar"/></li>
                    </ul>
                </div>
                <ul class="agent-contact-details">
                    <li><i class="zmdi zmdi-phone"></i><span>(123) 123-456</span></li>
                    <li><i class="zmdi zmdi-email"></i>[email protected]</li>
                </ul>
                <ul class="social-icons">
                    <li><a class="facebook" href="#/"><i class="zmdi zmdi-facebook"></i></a></li>
                    <li><a class="twitter" href="#/"><i class="zmdi zmdi-twitter"></i></a></li>
                    <li><a class="gplus" href="#/"><i class="zmdi zmdi-google-plus"></i></a></li>
                    <li><a class="linkedin" href="#/"><i class="zmdi zmdi-linkedin"></i></a></li>
                </ul>
            </div>
        </div>
    </div>
     <div class="col-lg-3 col-md-6 col-sm-12">
        <div class="card agent">
            <div class="agent-avatar"> <a href="agent-profile.html"> <img src="https://bootdey.com/img/Content/avatar/avatar3.png" class="img-fluid " alt=""/> </a> </div>
            <div class="agent-content">
                <div class="agent-name">
                    <h4><a href="agent-profile.html">Tom Wilson</a></h4>
                    <span>Washington, Illinois</span>
                    <ul class="list-unstyled team-info m-b-0">
                        <li class="m-r-15"><small>Team</small></li>                               
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Avatar"/></li>
                        <li><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Avatar"/></li>
                    </ul>
                </div>
                <ul class="agent-contact-details">
                    <li><i class="zmdi zmdi-phone"></i><span>(123) 123-456</span></li>
                    <li><i class="zmdi zmdi-email"></i>[email protected]</li>
                </ul>
                <ul class="social-icons">
                    <li><a class="facebook" href="#/"><i class="zmdi zmdi-facebook"></i></a></li>
                    <li><a class="twitter" href="#/"><i class="zmdi zmdi-twitter"></i></a></li>
                    <li><a class="gplus" href="#/"><i class="zmdi zmdi-google-plus"></i></a></li>
                    <li><a class="linkedin" href="#/"><i class="zmdi zmdi-linkedin"></i></a></li>
                </ul>
            </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;
}

.m-r-15, .product-report .icon {
    margin-right: 15px;
}
a {
    color: #f96332;
}
.agent .agent-content .agent-name h4 {
    font-size: 17px;
}
.card {
    background: #fff;
    margin-bottom: 30px;
    transition: .5s;
    border: 0;
    border-radius: .1875rem;
    display: inline-block;
    position: relative;
    width: 100%;
    box-shadow: none;
}

.team-info li+li {
    margin-left: -10px;
}

.social-icons li{
    display: inline-block;    
}

.team-info li{
    margin-top: 5px;
    display: inline-block;
}

.team-info li img {
    width: 35px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
}

.agent .agent-avatar {
    width: 100%
}

.agent .agent-avatar a {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.agent .agent-content .agent-name {
    padding: 20px 30px
}

.agent .agent-content .agent-name h4 {
    font-size: 17px
}

.agent .agent-content .agent-contact-details {
    list-style: none;
    color: #9e9e9e;
    padding: 18px 32px !important;
    background-color: #f5f5f5
}

.agent .agent-content .agent-contact-details li {
    position: relative;
    margin-left: 28px;
    line-height: 24px;
    padding: 3px 0;
    word-break: break-all
}

.agent .agent-content .agent-contact-details li i {
    font-size: 18px;
    top: 5px;
    left: -28px;
    position: absolute
}

.agent .agent-content .agent-contact-details li span {
    font-size: 16px
}

.agent .agent-content .social-icons {
    padding: 10px 17px
}

.agent .agent-content .social-icons li {
    list-style: none
}

.agent .agent-content .social-icons li a {
    padding: 8px 15px
}

Similar snippets

React js template and ui example events card widget

events card widget

React js template and ui example bs4 Home Contacts

bs4 Home Contacts

React js template and ui example bs4 card widget with user role

bs4 card widget with user role

React js template and ui example bs4 user cards with overlay

bs4 user cards with overlay

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example bs4 profile contacts

bs4 profile contacts

React js template and ui example Refresh Widget

Refresh Widget

React js template and ui example bs4 Responsive Dashboard Menu Cards

bs4 Responsive Dashboard Menu Cards