React js UI example. locked screen page

React js UI example and template, locked screen page! . 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: user,password,screen

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 href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="container bootstrap snippets bootdey">
    <div class="row">
		<div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-12">
            <div class="panel panel-primary" id="locked-screen">
                <div class="panel-heading">
                    <h3 class="panel-title">     
                  Anderson corbrick
                </h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form">
                      <div class="profile-pic text-center">
                                <img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="" class="img-circle img-thumbnail img-user"/>
                            </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <input type="password" class="form-control" id="password" placeholder="Password"/>
                                <i class="fa fa-lock"></i>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <a href="#/" class="btn btn-primary btn-block">Unlock</a>
                            </div>
                        </div>
                    </form>
                </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 {
  color: #565656;
  background: #ddd;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 100%;
  padding: 0px;
  margin: 0px;
  min-height: 100%;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#locked-screen{
    margin-top:80px;    
}

.img-user{
    margin:auto;
}

.panel-primary > .panel-heading {
  color: #fff;
  background-color: #39bbdb;
  border-color: #556b8d;
}

.panel > .panel-heading {
  font-weight: 400;
  text-transform: uppercase;
  padding: 14px 10px;
}

.panel {
  border: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  border-radius: 0;
}

.panel-heading > .panel-title {
  height: auto;
  font-size: 0.813em;
}

.profile-pic {
  margin: 15px 0;
}

.profile-pic img {
  border: 7px solid #e5e6ea;
}

.btn-primary, a.btn-primary:link, a.btn-primary:visited {
  color: #fff;
  background-color: #39bbdb;
  border-radius:0px;
}

#password {
  padding-left: 32px;
}

.form-control {
  border: 2px solid #e8ebed;
  border-radius: 2px;
  box-shadow: none;
  height: 37px;
  padding: 8px 12px 9px 12px;
}

.form-group i {
  position: absolute;
  left: 27px;
  top: 11px;
}

Similar snippets

React js template and ui example pages lock screen

pages lock screen

React js template and ui example Profile overview and edit

Profile overview and edit

React js template and ui example User profile with friends and chat

User profile with friends and chat

React js template and ui example user profile with timeline photos and setting

user profile with timeline photos and setting

React js template and ui example timeline with year and date

timeline with year and date

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example bs4 crud users

bs4 crud users

React js template and ui example Image Columns Bootstrap

Image Columns Bootstrap