DEV Community

SELVAKUMAR R
SELVAKUMAR R

Posted on

FACEBOOK CLONING PROJECT

In this project we clone the sign in page of face book .

concept i can learn in this project:

  1. <input> tag

This tag is used to get user input data in various types

Ex:

<input type="button">

<input type="checkbox">

<input type="color">

<input type="date">

<input type="email">

<input type="image">

<input type="file">

<input type="password">

<input type="submit">

<input type="text">

<input type="url">

Enter fullscreen mode Exit fullscreen mode

code:

 <div class="loginbox">
            <input type="Email" placeholder="Email or Username">
            <input type="password" placeholder="password">

Enter fullscreen mode Exit fullscreen mode

Output;

Full project code:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        body {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .logo {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        img {
            width: 350px;
        }

        .left p {
            margin-left: 30px;
            font-size: 24px;
            width: 490px;
        }

        .login {
            display: flex;
            justify-content: center;
            align-items: center;

        }

        .loginbox {
            width: 450px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        }

        .loginbox input {

            width: 100%;
            padding: 10px;
            font-size: 18px;
            border-radius: 8px;

        }

        .loginbox .login-btn {
            padding: 20px;
            background-color: blue;
            color: white;
            border-radius: 8px;
            font-size: 20px;
            font-weight: 600;
        }

        .loginbox a {
            text-align: center;
            color: rgb(26, 102, 223);
            text-decoration: none;
        }

        hr {
            border: 1px solid rgb(209, 204, 204);
        }

        .login-btn:hover {
            cursor: pointer;
            background-color: rgb(26, 102, 223);

        }

        .account {
            width: fit-content;
            padding: 10px;
            font-size: 20px;
            font-weight: 600;
            margin: auto;
            background-color: rgb(66, 183, 42);
            border: none;
            border-radius: 10px;
            color: white;
        }


        .loginbox a:hover {
            text-decoration: underline;
        }

        .create a {

            /* border: 1px solid; */
            font-size: 16px;
            font-weight: 400;
            font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
            color: black;
            text-decoration: none;

        }

        .create a :hover {
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <div class="logo">
        <div class="left">
            <img src="https://static.xx.fbcdn.net/rsrc.php/y1/r/4lCu2zih0ca.svg" alt="facebook">
            <p>Facebook helps you connect and share with the people in your life.</p>
        </div>

    </div>
    <div class="login">
        <div class="loginbox">
            <input type="Email" placeholder="Email or Username">
            <input type="password" placeholder="password">
            <button class="login-btn">Log in</button>
            <a href="">Forgot password?</a>
            <hr>
            <button class="account">Create New Account</button>
        </div>
        <div class="create">
            <a href=""><b>Create a Page</b></a> for a celebrity, brand or business.
        </div>

    </div>





</body>

</html>
Enter fullscreen mode Exit fullscreen mode

Output;

Top comments (0)