React js UI example. Image Columns Bootstrap

React js UI example and template, Image Columns Bootstrap! . 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: Image,Columns

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">
<h1>Image Columns</h1>

<div style={{/*padding:0 15px;*/}}>
  <div class="row">
    <div class="col-xs-8 col-sm-4">
      <div class="img-thumbnail img1" alt="photo1"></div>  
    </div>
    <div class="col-xs-4 col-sm-8"> 
      <div class="row">
        <div class="col-sm-6">
          <div class="img-thumbnail img2" alt="photo2"></div>
        </div>
        <div class="col-sm-6">
          <div class="img-thumbnail img3" alt="photo3"></div>
        </div>
      </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;}  
body {padding:20px;}
h1{ background: none repeat scroll 0 0 #5BC0DE; color:#fff!important; padding:10px 0; text-align:center; margin-bottom:20px!important;}
p.cr{font-size:0.75em; color:#666; background:#eee; padding:5px; margin-top:20px;}
p.cr > strong{color:#F1645E;}

.debug > .row > div {box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;
}

.debug > .row > div:nth-child(3n+1) {background-color: #5F8EFC;}
.debug > .row > div:nth-child(3n+2) {background-color: #FEBA00;}
.debug > .row > div:nth-child(3n) {background-color: #F1645E;}
  
.img1{background:url(https://www.bootdey.com/image/400x300/FFB6C1/000000);width:400px;height:300px !important;}
.img2{background:url(https://www.bootdey.com/image/400x300/87CEFA/000000);width:400px;height:300px !important;}
.img3{background:url(https://www.bootdey.com/image/400x300/FF7F50/000000);width:400px;height:300px !important;}

Similar snippets

React js template and ui example blog page

blog page

React js template and ui example gallery with small images

gallery with small images

React js template and ui example contacts card

contacts card

React js template and ui example Blog Gallery Widget

Blog Gallery Widget

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example timeline steps

timeline steps

React js template and ui example chat app

chat app

React js template and ui example Product comparison

Product comparison