React js UI example. timeline with image

React js UI example and template, timeline with image! . 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: timeline

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/font-awesome/5.13.1/css/all.min.css" integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA=" crossorigin="anonymous" />

<div class="container mt-5">
    <div class="p-x-15 blur">
        <div class="row">
            <div class="col-md-6 bg-img" style={{/*background-image: url(https://www.bootdey.com/image/600x600/FFB6C1/000000); min-height:320px*/}}><p class="mb-0"></p>
            </div>
            <div class="col-md-6 col-md-offset-6 p-30 text-center bg-white">
                    <h4 class="mb-50 fw-bold">ACHIEVEMENTS</h4>
                    <ul class="timeline">
                        <li class="timeline">
                            <div class="timeline-badge"></div>
                            <div class="timeline-panel">
                                <div class="timeline-heading">
                                    <h5 class="timeline-title">University</h5>
                                    <p class="text-sm">Web Development</p>
                                    <p class="timeline-meta text-xs"><i class="fas fa-map-marker-alt va-middle mr-5"></i> <span class="va-middle mr-5">Miami</span> <i class="fas fa-calendar-alt va-middle mr-5"></i> <span class="va-middle">2016-2020</span></p>
                                </div>
                                <div class="timeline-body">
                                    <p>Quisque sit amet urna et neque porttitor mattis.</p>
                                </div>
                            </div>
                        </li>

                        <li class="timeline-inverted">
                            <div class="timeline-badge"></div>
                            <div class="timeline-panel">
                                <div class="timeline-heading">
                                    <h5 class="timeline-title">High School</h5>
                                    <p class="text-sm">Web Design</p>
                                    <p class="timeline-meta text-xs"><i class="fas fa-map-marker-alt va-middle mr-5"></i> <span class="va-middle mr-5">New York</span> <i class="fas fa-calendar-alt va-middle mr-5"></i> <span class="va-middle">2012-2016</span></p>
                                </div>
                                <div class="timeline-body">
                                    <p>Quisque sit amet urna et neque porttitor mattis.</p>
                                </div>
                            </div>
                        </li>
                    </ul>
            </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-color: #f9f9f9;
    margin-top:20px;
}
.blur {
    -webkit-box-shadow: 0 0 15px rgba(188,191,200,0.1),0 0 15px rgba(188,191,200,0.2) !important;
    box-shadow: 0 0 15px rgba(188,191,200,0.1),0 0 15px rgba(188,191,200,0.2) !important;
}
.mr-5 {
    margin-right: 5px !important;
}
.va-middle {
    vertical-align: middle !important;
}
.bg-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
.timeline {
    list-style: none;
    padding: 20px 0;
    position: relative;
}
.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 4px;
    background-color: #dddfe6;
    left: 50%;
    margin-left: -2px;
}
.timeline.w-icons:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #dddfe6;
    left: 50%;
    margin-left: -1.5px;
}
.timeline > li {
    margin-bottom: 20px;
    position: relative;
}
.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li > .timeline-panel {
    background-color: #fff;
    width: 50%;
    float: left;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    -moz-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;
    box-shadow: 0 2px 12px rgba(188, 191, 200, 0.1), 0 2px 12px rgba(188, 191, 200, 0.2) !important;
}
.timeline > li > .timeline-panel:hover {
    transform: translateY(-3px);
    -webkit-box-shadow: 0 3px 20px rgba(188, 191, 200, 0.1), 0 3px 20px rgba(188, 191, 200, 0.3) !important;
    box-shadow: 0 3px 20px rgba(188, 191, 200, 0.1), 0 3px 20px rgba(188, 191, 200, 0.3) !important;
}
.timeline > li:not(.timeline-inverted) {
    padding-right: 50px;
}
.timeline > li.timeline-inverted {
    padding-left: 50px;
}
.timeline.w-icons > li:not(.timeline-inverted) {
    padding-right: 85px;
}
.timeline.w-icons > li.timeline-inverted {
    padding-left: 85px;
}
.timeline > li > .timeline-badge {
    color: #fff;
    background: #dddfe6;
    width: 25px;
    height: 25px;
    line-height: 15px !important;
    font-size: 0.75rem;
    text-align: center;
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -12.5px;
    z-index: 100;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}
.timeline.w-icons > li > .timeline-badge {
    color: #fff;
    background: #5d3997;
    width: 60px;
    height: 60px;
    line-height: 65px !important;
    font-size: 1rem;
    text-align: center;
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -30px;
    z-index: 100;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}
.timeline.w-icons > li > .timeline-badge .material-icons {
    line-height: 60px !important;
}
.timeline > li.timeline-inverted > .timeline-badge {
    top: 0;
}
.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}
ul.timeline {
    margin-bottom: 0;
}
.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}
.timeline-body > p + p {
    margin-top: 5px;
}

Similar snippets

React js template and ui example timeline with year and date

timeline with year and date

React js template and ui example bs4 my experience timeline

bs4 my experience timeline

React js template and ui example bs4 event timeline

bs4 event timeline

React js template and ui example bs4 types of timelines

bs4 types of timelines

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example preloader page example

preloader page example

React js template and ui example bs4 crud users

bs4 crud users

React js template and ui example chat app

chat app