React js UI example. upcoming events cards

React js UI example and template, upcoming events 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: events

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://cdn.jsdelivr.net/npm/[email protected]/css/themify-icons.css"/>
<div class="events_area">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-5">
                <div class="main_title">
                    <h2 class="mb-3 text-white">Upcoming Events</h2>
                    <p>
                        Replenish man have thing gathering lights yielding shall you
                    </p>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-6 col-md-6">
                <div class="single_event position-relative">
                    <div class="event_thumb">
                        <img src="https://www.bootdey.com/image/500x500/20B2AA/000000" alt="" />
                    </div>
                    <div class="event_details">
                        <div class="d-flex mb-4">
                            <div class="date"><span>15</span> Jun</div>
                            <div class="time-location">
                                <p><span class="ti-time mr-2"></span> 12:00 AM - 12:30 AM</p>
                                <p><span class="ti-location-pin mr-2"></span> Hilton Quebec</p>
                            </div>
                        </div>
                        <p>
                            One make creepeth man for so bearing their firmament won't fowl meat over seas great
                        </p>
                        <a href="#/" class="btn btn-primary rounded-0 mt-3">View Details</a>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <div class="single_event position-relative">
                    <div class="event_thumb">
                        <img src="https://www.bootdey.com/image/500x500/EE82EE/000000" alt="" />
                    </div>
                    <div class="event_details">
                        <div class="d-flex mb-4">
                            <div class="date"><span>15</span> Jun</div>
                            <div class="time-location">
                                <p><span class="ti-time mr-2"></span> 12:00 AM - 12:30 AM</p>
                                <p><span class="ti-location-pin mr-2"></span> Hilton Quebec</p>
                            </div>
                        </div>
                        <p>
                            One make creepeth man for so bearing their firmament won't fowl meat over seas great
                        </p>
                        <a href="#/" class="btn btn-primary rounded-0 mt-3">View Details</a>
                    </div>
                </div>
            </div>
            <div class="col-lg-12">
                <div class="text-center pt-lg-5 pt-3">
                    <a href="#/" class="event-link"> View All Event <img src="img/next.png" alt="" /> </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{margin-top:20px;}
.events_area {
    padding: 130px 0 100px;
    background: #002347;
}
@media (max-width: 991px) {
    .events_area {
        padding: 70px 0;
    }
}
.events_area .event-link {
    color: #fdc632;
    font-size: 13px;
    text-transform: uppercase;
}
.events_area .event-link img {
    margin-left: 5px;
    display: inline-block;
}

.single_event {
    margin-bottom: 30px;
}
.single_event .event_thumb {
    overflow: hidden;
}
.single_event .event_thumb img {
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}
.single_event .event_details {
    background: rgba(0, 35, 71, 0.5);
    position: absolute;
    top: 0px;
    right: 0px;
    width: 275px;
    padding: 30px 25px;
    color: #ffffff;
}
.single_event .event_details .date {
    color: #ffffff;
    padding-right: 15px;
    border-right: 2px solid #fff;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
}
.single_event .event_details .date span {
    display: block;
    color: #fdc632;
    font-size: 28px;
    font-weight: 500;
}
.single_event .event_details .time-location {
    padding-left: 15px;
    font-size: 14px;
}
.single_event .event_details .time-location p {
    margin-bottom: 0px;
}
.single_event .event_details .time-location p span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}
.single_event:hover img {
    transform: scale(1.1);
}
.single_event:hover h4 a {
    color: #fdc632;
}

Similar snippets

React js template and ui example Events home

Events home

React js template and ui example owl carousel events

owl carousel events

React js template and ui example bs4 event timeline

bs4 event timeline

React js template and ui example events card widget

events card widget

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example social network login

social network login

React js template and ui example Form sign in inside narrow jumbotron

Form sign in inside narrow jumbotron

React js template and ui example select from dual list

select from dual list