Bootstrap snippet and html example. facebook style home page

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: facebook,style,home,page

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.3.4 included, to get the result that you can see in the preview selection


<div id="wrap">
  <div class="navbar navbar-default navbar-fixed-top">
    <div class="container bootstrap snippets bootdey">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="https://bootdey.com">bootdey.com</a>
      </div>
      <div class="collapse navbar-collapse">
       	<form class="navbar-form navbar-right" id="header-form" role="form">
		  <div class="lt-left">
			  <div class="form-group">
				<label for="exampleInputEmail2">Email or Phone</label>
				<input type="email" class="form-control input-sm" id="exampleInputEmail2" placeholder="Email or Phone">
			  </div>
			  <div class="form-group">
				<label for="exampleInputPassword2">Password</label>
				<input type="password" class="form-control input-sm" id="exampleInputPassword2" placeholder="Password">
			  </div>
			  <div class="checkbox">
				<label>
				  <input type="checkbox"> Remember me
				</label>
			  </div>
		  </div>
		  <div class="lt-right">
			<button type="submit" class="login-btn">Login</button>
		  </div>
		</form>
      </div>
    </div>
  </div>
  <div class="container" id="home">
	<div class="row">
		<div class="col-md-7">
            <br>
			<h3 class="slogan">
				Facebook helps you connect and share with the people in your life.
			</h3>
			<img src="https://bootdey.com/img/Content/facebook_background.png" class="img-responsive" />
		</div>
		<div class="col-md-5">
            <br><br>
			<form action="#" method="post" class="form" role="form">
				<legend><a>Create your account</a></legend>
		        <h4>It's free and always will be.</h4>
		        <div class="row">
		            <div class="col-xs-6 col-md-6">
		                <input class="form-control input-lg" name="firstname" placeholder="First Name" type="text" autofocus />
		            </div>
		            <div class="col-xs-6 col-md-6">
		                <input class="form-control input-lg" name="lastname" placeholder="Last Name" type="text" />
		            </div>
		        </div>
		        <input class="form-control input-lg" name="youremail" placeholder="Your Email" type="email" />
		        <input class="form-control input-lg" name="reenteremail" placeholder="Re-enter Email" type="email" />
		        <input class="form-control input-lg" name="password" placeholder="New Password" type="password" />
		        <label for="">Birth Date</label>
		        <div class="row">
		            <div class="col-xs-4 col-md-4">
		                <select class="form-control input-lg">
		                    <option value="Month">Month</option>
		                </select>
		            </div>
		            <div class="col-xs-4 col-md-4">
		                <select class="form-control input-lg">
		                    <option value="Day">Day</option>
		                </select>
		            </div>
		            <div class="col-xs-4 col-md-4">
		                <select class="form-control input-lg">
		                    <option value="Year">Year</option>
		                </select>
		            </div>
		        </div>
		        <label class="radio-inline">
		            <input type="radio" name="sex" id="inlineCheckbox1" value="male" />
		            Male
		        </label>
		        <label class="radio-inline">
		            <input type="radio" name="sex" id="inlineCheckbox2" value="female" />
		            Female
		        </label>
		        <br />
				<span class="help-block">By clicking Create my account, you agree to our Terms and that you have read our Data Use Policy, including our Cookie Use.</span>
		        <button class="btn btn-lg btn-primary btn-block signup-btn" type="submit">Create my account</button>
	        </form>
		</div>
	</div>
  </div>
</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.3.4 included, to get the result that you can see in the preview selection

body{
background-image: -ms-linear-gradient(top, #FFFFFF 0%, #D3D8E8 100%);
/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(top, #FFFFFF 0%, #D3D8E8 100%);
/* Opera */ 
background-image: -o-linear-gradient(top, #FFFFFF 0%, #D3D8E8 100%);
/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(1, #D3D8E8));
/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #D3D8E8 100%);
/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to bottom, #FFFFFF 0%, #D3D8E8 100%);
background-repeat: no-repeat;
background-attachment: fixed;
}

.navbar-default{
    background-color:#4c66a4;
	border-bottom:none;
}
.navbar-form label{
	color:#fff;
	font-size:13px;
	font-weight:normal;
}
.navbar-form  .input-sm{
	border-radius:0;
}
legend a{
	color:#141823;
	font-size:25px;
	font-weight:bold;
}
.login-btn {
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0px;
  cursor:pointer;  
  text-shadow: 1px 1px 4px #8a8a8a;
  font-family: Arial;
  color: #ffffff;
  font-size: 13px;
  background: #5b74a8;
  line-height:21px; 
  font-weight:bold; 
  padding: 3px 6px 3px 6px;
  border: solid #29447e  1px;
  text-decoration: none;
}

.login-btn:hover {
  background: #5b74a8;
  text-decoration: none;
}
.signup-btn {
  background: #79bc64;
  background-image: -webkit-linear-gradient(top, #79bc64, #578843);
  background-image: -moz-linear-gradient(top, #79bc64, #578843);
  background-image: -ms-linear-gradient(top, #79bc64, #578843);
  background-image: -o-linear-gradient(top, #79bc64, #578843);
  background-image: linear-gradient(to bottom, #79bc64, #578843);
  -webkit-border-radius: 4;
  -moz-border-radius: 4;
  border-radius: 4px;
  text-shadow: 0px 1px 0px #898a88;
  -webkit-box-shadow: 0px 0px 0px #a4e388;
  -moz-box-shadow: 0px 0px 0px #a4e388;
  box-shadow: 0px 0px 0px #a4e388;
  font-family: Arial;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  border: solid #3b6e22  1px;
  text-decoration: none;
}

.signup-btn:hover {
  background: #79bc64;
  background-image: -webkit-linear-gradient(top, #79bc64, #5e7056);
  background-image: -moz-linear-gradient(top, #79bc64, #5e7056);
  background-image: -ms-linear-gradient(top, #79bc64, #5e7056);
  background-image: -o-linear-gradient(top, #79bc64, #5e7056);
  background-image: linear-gradient(to bottom, #79bc64, #5e7056);
  text-decoration: none;
}
.navbar-default .navbar-brand{
		color:#fff;
		font-size:30px;
		font-weight:bold;
	}
.form .form-control { margin-bottom: 10px; }
@media (min-width:768px) {
	#wrap{
		margin-bottom:89px;
	}
	.navbar-form .lt-left{
		float:left !important;
	}
	.navbar-form .lt-right{
		float:right !important;
	}
	.navbar-form .checkbox{
		display:block;
	}
	.navbar-form input[type="password"]{
		margin-left:3px;
	}
	.navbar-form .login-btn{
		margin-left: 10px;
		margin-top: 24px;
	}
	#home{
		margin-top:50px;
	}
	#home .slogan{
		color: #0e385f;
		line-height: 29px;
		font-weight:bold;
	}
	
	.navbar-brand{
		padding:35px 15px;
	}
}

Similar snippets

Bootstrap example and template. profile photos

profile photos

Bootstrap example and template. bs4 profile with messages and edit

bs4 profile with messages and edit

Bootstrap example and template. bs4 Manage Addresses page

bs4 Manage Addresses page

Bootstrap example and template. bs4 profile settings page

bs4 profile settings page

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. chat app

chat app

Bootstrap example and template. profile edit data and skills

profile edit data and skills

Bootstrap example and template. candidate list with skills rating and location

candidate list with skills rating and location

Bootstrap example and template. facebook style home page

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 1.5K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.3.4

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.4 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working