React js UI example. products grid with hove icons

React js UI example and template, products grid with hove icons! . 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: products

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">
<div class="row justify-content-center product-grid-style">

                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">

                            <div class="product-img">

                                <div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/6495ED/000000" alt="..."/>

                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>

                            </div>

                            <div class="product-info">
                                <a href="#!">Women's Bag</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$600</span>
                                    <span>$599</span>
                                </p>
                            </div>

                        </div>

                    </div>
                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">
                            <div class="product-img">

                                <img src="https://www.bootdey.com/image/480x480/FF1493/000000" alt="..."/>

                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>

                            </div>
                            <div class="product-info">
                                <a href="#!">Modern Chair</a>
                                <p class="price text-center m-0 ">
                                    <span class="red line-through me-2">$500</span>
                                    <span>$300</span>
                                </p>
                            </div>

                        </div>
                    </div>

                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">
                            <div class="product-img">

                                <div class="label-offer bg-primary-solid">New</div><img src="https://www.bootdey.com/image/480x480/5F9EA0/000000" alt="..."/>

                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>

                            </div>
                            <div class="product-info">
                                <a href="#!">Coffee Mug</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$200</span>
                                    <span>$100</span>
                                </p>
                            </div>

                        </div>

                    </div>
                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">
                        <div class="product-details">
                            <div class="product-img">

                                <div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/7FFF00/000000" alt="..."/>

                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>

                            </div>
                            <div class="product-info">
                                <a href="#!">Sneakers Shoe</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$1200</span>
                                    <span>$900</span>
                                </p>
                            </div>

                        </div>

                    </div>
                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">
                            <div class="product-img">

                                <img src="https://www.bootdey.com/image/480x480/FF7F50/000000" alt="..."/>
                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>
                            </div>
                            <div class="product-info">
                                <a href="#!">Nikon Camera</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$399</span>
                                    <span>$199</span>
                                </p>
                            </div>

                        </div>

                    </div>
                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">
                            <div class="product-img">

                                <div class="label-offer bg-primary-solid">New</div><img src="https://www.bootdey.com/image/480x480/6495ED/000000" alt="..."/>
                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>
                            </div>
                            <div class="product-info">
                                <a href="#!">Contrast Backpack</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$800</span>
                                    <span>$699</span>
                                </p>
                            </div>

                        </div>

                    </div>
                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">
                            <div class="product-img">

                                <div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/6495ED/000000" alt="..."/>
                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>
                            </div>
                            <div class="product-info">
                                <a href="#!">Wodden Table</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$199</span>
                                    <span>$99</span>
                                </p>
                            </div>

                        </div>

                    </div>
                    <div class="col-11 col-sm-6 col-lg-4 col-xl-3">

                        <div class="product-details">
                            <div class="product-img">

                                <div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/DC143C/000000" alt="..."/>

                                <div class="product-cart">
                                    <a href="#!"><i class="fa-solid fa fa-eye"></i></a>
                                    <a href="#!"><i class="fas fa-cart-plus"></i></a>
                                    <a href="#!"><i class="fas fa-heart"></i></a>
                                </div>

                            </div>
                            <div class="product-info">
                                <a href="#!">Handbag</a>
                                <p class="price text-center m-0">
                                    <span class="red line-through me-2">$99</span>
                                    <span>$59</span>
                                </p>
                            </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:#F0F8FF;
}
.product-grid-style {
    margin-top: -20px
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.product-grid-style>[class*="col-"] {
    margin-top: 30px
}

.product-grid-style .product-img {
    position: relative
}

.product-grid-style .product-img img {
    border-radius: 0.25rem
}

.product-grid-style .product-details {
    transition: all .3s ease 0s;
    position: relative
}

.product-details .product-cart {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.product-details .product-cart>a {
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    display: flex;
    color: #292dc2;
    margin-top: 0;
    margin-right: 10px;
    border-radius: 50%;
    visibility: hidden;
    transition: all 0.5s;
    opacity: 0;
    cursor: pointer;
    background-color: #fff
}

.product-details .product-cart a:last-child {
    margin-right: 0
}

.product-details .product-cart>a:hover {
    background: #292dc2;
    color: #fff
}

.product-details:hover .product-cart a {
    transform: translateY(-30px);
    visibility: visible;
    opacity: 1
}

.product-grid-style .product-info {
    padding: 15px;
    float: left;
    width: 100%;
    text-align: center;
    font-size: 18px
}

.product-grid-style .product-info>a {
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 600;
    font-size: 15px
}

.product-grid-style .price {
    font-weight: 600
}

.product-grid-style .price .red {
    color: #878787
}

.product-list {
    margin-top: -20px
}

.product-list>[class*="col-"] {
    margin-top: 30px
}

.product-card {
    border: 1px solid rgba(0, 0, 0, 0.075);
    height: 100%
}

.product-card .card-img {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0
}

.product-card .card-body {
    padding: 2rem
}

.product-card .card-body .read-more {
    display: block
}

.product-card .card-body .read-more a {
    color: #292dc2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px
}

.product-card .card-body .read-more a:hover {
    color: #282b2d
}

.product-card .card-footer:last-child {
    border-radius: 0
}

.product-card h3 {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 12px
}

.product-card h3 a {
    color: #282b2d
}

.product-card h3 a:hover {
    color: #292dc2
}

.product-card .card-footer {
    background: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 2rem;
    font-weight: 600
}

.product-card .card-footer a {
    line-height: normal
}

.product-card ul {
    margin-bottom: 0;
    padding-bottom: 0
}

.product-card .card-footer img {
    max-width: 35px
}

.product-card .card-footer ul li {
    display: inline-block;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    margin: 0 10px 0 0
}

.product-card .card-footer ul li i {
    color: #292dc2;
    font-size: 16px;
    font-weight: 500;
    margin-right: 5px
}

@media screen and (max-width: 767px) {
    .product-card .card-img.bg-img {
        min-height: 250px
    }
}

@media screen and (max-width: 575px) {
    .product-card .card-body {
        padding: 1.5rem
    }
}

.product-grid-style .price .red {
    color: #878787;
}
.line-through {
    text-decoration: line-through;
}


.label-offer {
    position: absolute;
    left: 0;
    top: 0;
    height: 25px;
    line-height: 25px;
    display: inline-block;
    padding: 0px 12px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    z-index: 1
}

.bg-red {
    background-color: #ed1b24;
}

.bg-primary-solid, .primary-overlay-solid[data-overlay-dark]:before {
    background: #292dc2;
}

Similar snippets

React js template and ui example Shop categories

Shop categories

React js template and ui example Shop page

Shop page

React js template and ui example product list

product list

React js template and ui example Simple panel items

Simple panel items

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example chat app

chat app

React js template and ui example Gradients dashboard cards

Gradients dashboard cards

React js template and ui example profile with data and skills

profile with data and skills