React js UI example. user blog widget

React js UI example and template, user blog widget! . 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: post,user,widget

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 bootdey">
    <div class="col-md-6">
        <div class="widget widget-blog">
            <div class="widget-blog-cover">
                <img src="https://www.bootdey.com/image/400x200/FFB6C1/000000" alt=""/>
            </div>
            <div class="widget-blog-author">
                <div class="widget-blog-author-image">
                    <img src="https://bootdey.com/img/Content/user_1.jpg" alt=""/>
                </div>
                <div class="widget-blog-author-info">
                    <h5 class="m-t-0 m-b-1">Serhiy Navin</h5>
                    <p class="text-muted m-0 f-s-11">Front End Designer</p>
                </div>
            </div>
            <div class="widget-blog-content">
                <h5>Lorem ipsum dolor sit amec adipiscing elit.</h5>
                <p>
                    Nulla condimentum sodales urna, at consequat urna laoreet non. Aenean id porttitor odio, id elementum augue. Donec rhoncus semper mi.
                </p>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="widget widget-blog">
            <div class="widget-blog-cover">
                <img src="https://www.bootdey.com/image/400x200/87CEFA/000000" alt=""/>
            </div>
            <div class="widget-blog-author">
                <div class="widget-blog-author-image">
                    <img src="https://bootdey.com/img/Content/user_2.jpg" alt=""/>
                </div>
                <div class="widget-blog-author-info">
                    <h5 class="m-t-0 m-b-1">Serhiy Navin</h5>
                    <p class="text-muted m-0 f-s-11">Front End Designer</p>
                </div>
            </div>
            <div class="widget-blog-content">
                <h5>Lorem ipsum dolor sit amec adipiscing elit.</h5>
                <p>
                    Nulla condimentum sodales urna, at consequat urna laoreet non. Aenean id porttitor odio, id elementum augue. Donec rhoncus semper mi.
                </p>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="widget widget-blog">
            <div class="widget-blog-cover">
                <img src="https://www.bootdey.com/image/400x200/FF7F50/000000" alt=""/>
            </div>
            <div class="widget-blog-author">
                <div class="widget-blog-author-image">
                    <img src="https://bootdey.com/img/Content/user_3.jpg" alt=""/>
                </div>
                <div class="widget-blog-author-info">
                    <h5 class="m-t-0 m-b-1">Serhiy Navin</h5>
                    <p class="text-muted m-0 f-s-11">Front End Designer</p>
                </div>
            </div>
            <div class="widget-blog-content">
                <h5>Lorem ipsum dolor sit amec adipiscing elit.</h5>
                <p>
                    Nulla condimentum sodales urna, at consequat urna laoreet non. Aenean id porttitor odio, id elementum augue. Donec rhoncus semper mi.
                </p>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="widget widget-blog">
            <div class="widget-blog-cover">
                <img src="https://www.bootdey.com/image/400x200/20B2AA/000000" alt=""/>
            </div>
            <div class="widget-blog-author">
                <div class="widget-blog-author-image">
                    <img src="https://bootdey.com/img/Content/user_6.jpg" alt=""/>
                </div>
                <div class="widget-blog-author-info">
                    <h5 class="m-t-0 m-b-1">Serhiy Navin</h5>
                    <p class="text-muted m-0 f-s-11">Front End Designer</p>
                </div>
            </div>
            <div class="widget-blog-content">
                <h5>Lorem ipsum dolor sit amec adipiscing elit.</h5>
                <p>
                    Nulla condimentum sodales urna, at consequat urna laoreet non. Aenean id porttitor odio, id elementum augue. Donec rhoncus semper mi.
                </p>
            </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:#eee;
margin-top:20px;
}

.widget {
    border: none;
    box-shadow: 0 2px 0 rgba(0,0,0,.07);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    background: #fff;
    padding: 20px;
    display: block;
}

.widget-blog-cover {
    overflow: hidden;
    padding-top: 60%;
}

.widget-blog-cover, .widget-stat-header {
    position: relative;
    border-radius: 5px 5px 0 0;
    margin: -20px -20px 20px;
}

.animation-grow-hover, .widget-blog .widget-blog-cover img {
    transition: all .1s ease-in-out;
}

.widget-blog-cover img:hover{
    max-width: 110%;
    min-height: 110%;
    margin-left: -5%;
    margin-top: -5%;    
}

.widget-blog-cover img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    min-height: 100%;
}

.widget-blog-author {
    margin: -20px -20px 0;
    padding: 10px 20px;
}

.widget-blog-author-image {
    float: left;
    margin-top: -30px;
    padding: 5px;
    border-radius: 70px;
    width: 70px;
    height: 70px;
    background: #fff;
    position: relative;
}

.widget-blog-author-image img {
    max-width: 100%;
    border-radius: 70px;
}

.text-muted {
    color: #aab3ba;
}
.f-s-11 {
    font-size: 11px!important;
}
.m-0 {
    margin: 0!important;
}

Similar snippets

React js template and ui example Recent blog post title

Recent blog post title

React js template and ui example Seller profile

Seller profile

React js template and ui example profile tab widget

profile tab widget

React js template and ui example profile cards widget

profile cards widget

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example Invoice

Invoice

React js template and ui example company invoice

company invoice

React js template and ui example Receipt page

Receipt page