Create Amazing IPhone 7 mobile layout with facebook login form using HTML && CSS language.
Create iPhone Mobile Layout with Facebook Login Design
HTML & CSS is the foundation languages for a web developer and designer, In this article, I will share with you another amazing Iphon 7 mobile layout with facebook login form, also read this article HTML CSS iPhone Mobile Layout so you can also read my previous article. the mobile layout which we are creating in this article looks like real iPhone 7 mobile shape, but it's not the real image of iPhone mobile, with HTML & CSS you can create amazing real-world shapes both are very power pull languages you can create real objects with HTML && CSS language. First of all, we need some tools to download.Important Tools:
- HD quality image for the background.
- Font awesome library for facebook icon.
downloading HD quality image you can visit pixabay website this website is a very popular website for HD quality images. so you can download high-quality images free of cost.
Second, you need to download font awesome icons library, so download from here font awesome and you can also use font awesome CDN. CDN is the better choice when your website is placed on a live server because it's load very fast.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Create Iphone7 With Facebook Login</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="mobile">
<p><i class="fa fa-facebook-official fa-2x"></i></p>
<form action="">
<div class="form-group">
<input type="email" name="" class="email" placeholder="Enter Email">
</div>
<div class="form-group">
<input type="password" name="" class="password" placeholder="Enter Password">
</div>
<div class="form-group">
<input type="submit" name="" class="btn" value="LOG IN">
</div>
</form>
<br>
<p><a href="">Signup Up for facebook</a></p>
<p><a href="">Forgot Password <i class="fa fa-question-circle"></i></a></p>
</div>
</body>
</html>
Style.cssbody{
background: url(pexels-photo-132957.jpeg);
background-repeat: no-repeat;
background-size: cover;
}
.mobile{
float: right;
margin: 20px 100px;
width: 250px;
height: 480px;
border-top: 55px solid #fff;
border-bottom: 55px solid #fff;
border-right: 13px solid #fff;
border-left: 13px solid #fff;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
-ms-border-radius: 30px;
-o-border-radius: 30px;
border-radius: 30px;
background: #3b5998;
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
box-shadow: 0 0 10px rgba(0,0,0,0.5);
position: relative;
padding:20px 0px;
box-sizing: border-box;
text-align: center;
color:#fff;
}
.mobile::before{
position: absolute;
content: "";
left: 35%;
top: -30px;
width: 60px;
height: 4px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
background: #ccc;
}
.mobile::after{
position: absolute;
content: "";
left: 40%;
bottom: -45px;
width: 35px;
height: 35px;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
border:2px outset #ccc;
}
.form-group{
margin:15px 15px;
}
.email{
background: #3b5998;
border-bottom: 2px solid #5a70a1;
border-top: 0px;
border-left: 0px;
border-right: 0px;
color:#fff;
width: 100%;
height: 35px;
-webkit-transition: 1s;
-o-transition: 1s;
transition: 1s;
}
.email:focus{
border-bottom-color: #fff;
}
.password{
background: #3b5998;
border-bottom: 2px solid #5a70a1;
border-top: 0px;
border-left: 0px;
border-right: 0px;
color:#fff;
width: 100%;
height: 35px;
-webkit-transition: 1s;
-o-transition: 1s;
transition: 1s;
}
.password:focus{
border-bottom-color: #fff;
}
.btn{
width: 100%;
height: 35px;
background: #5a70a1;
color:#fff;
border:0px;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
border-radius: 0px;
font-weight: normal;
}
a{
color:#fff;
font-weight: normal;
text-decoration: none;
}
Save your page in preview your page in the browser to see the output of your code.
COMMENTS