React js UI example. Gallery of images

React js UI example and template, Gallery of images! . 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: gallery,images

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">
<div class="portfolioContainer">
    <div class="col-sm-6 col-lg-3 col-md-4 webdesign illustrator">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-1">
                <img src="https://www.bootdey.com/image/400x280/00BFFF/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign illustrator photography">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-2">
                <img src="https://www.bootdey.com/image/400x280/00BFFF/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 webdesign graphicdesign">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-3">
                <img src="https://www.bootdey.com/image/400x280/DC143C/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 illustrator photography">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-4">
                <img src="https://www.bootdey.com/image/400x280/6495ED/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign photography">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-5">
                <img src="https://www.bootdey.com/image/400x280/00BFFF/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 webdesign photography">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-6">
                <img src="https://www.bootdey.com/image/400x280/00008B/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 illustrator photography graphicdesign">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-7">
                <img src="https://www.bootdey.com/image/400x280/008B8B/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign photography webdesign">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-8">
                <img src="https://www.bootdey.com/image/400x280/FF8C00/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 webdesign illustrator">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-9">
                <img src="https://www.bootdey.com/image/400x280/9932CC/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 photography graphicdesign">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-10">
                <img src="https://www.bootdey.com/image/400x280/E9967A/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign photography">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-11">
                <img src="https://www.bootdey.com/image/400x280/FF1493/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></p>
        </div>
    </div>

    <div class="col-sm-6 col-lg-3 col-md-4 webdesign graphicdesign illustrator">
        <div class="gal-detail thumb">
            <a href="#/" class="image-popup" title="Screenshot-12">
                <img src="https://www.bootdey.com/image/400x280/1E90FF/000000" class="thumb-img" alt="work-thumbnail"/>
            </a>
            <h4 class="text-center">Gallary Image</h4>
            <div class="ga-border"></div>
            <p class="text-muted text-center"><small>Photography</small></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{margin-top:20px;
background:#eee;
}

/* ===========
   Gallery
 =============*/
.portfolioFilter a {
  -moz-box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -webkit-box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s ease-out;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  color: #333333;
  padding: 5px 10px;
  display: inline-block;
  transition: all 0.3s ease-out;
}
.portfolioFilter a:hover {
  background-color: #228bdf;
  color: #ffffff;
}
.portfolioFilter a.current {
  background-color: #228bdf;
  color: #ffffff;
}
.thumb {
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  width: 100%;
}
.thumb-img {
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.gal-detail h4 {
  margin: 16px auto 10px auto;
  width: 80%;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gal-detail .ga-border {
  height: 3px;
  width: 40px;
  background-color: #228bdf;
  margin: 10px auto;
}

Similar snippets

React js template and ui example gallery small images with hover

gallery small images with hover

React js template and ui example bs4 widget image cards

bs4 widget image cards

React js template and ui example Bootstrap Gallery with Modal Lightbox and Carousel

Bootstrap Gallery with Modal Lightbox and Carousel

React js template and ui example collage gallery

collage gallery

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example contacts list table

contacts list table

React js template and ui example profile edit data and skills

profile edit data and skills

React js template and ui example footer with subscribe to newsletter

footer with subscribe to newsletter