Login Form Page Design with HTML and CSS

 



Your website's login page serves as the virtual gateway for your users to access a world of personalized content, services, and interactions. It's the first point of contact, the digital threshold that bridges the gap between your audience and the unique experiences your site has to offer. A well-designed login page not only ensures security but also provides a seamless and inviting user experience.

In an age where online presence is paramount, the login page plays a crucial role in shaping the initial impression users have of your website. It should not be seen merely as a functional necessity, but as an opportunity to showcase your brand's identity and commitment to user-centric design


For Full Tutorial:-

ABOUT THE NAVBAR: The basic Navbar is created in HTML and CSS and some javascript code for clicking the login page design. but if you want to make the login page only you have to

Step 1: Setting up the HTML Structure


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
</head>
<body>
    <div class="container">
        <div class="logo">
            <img src="Assests/logo.png" alt="">
        </div>
        <div class="links">
            <a href="#">Home</a>
            <a href="#">About</a>
            <a href="#">Services</a>
            <a href="#">Contact</a>
            <i class="fa-solid fa-bars" onclick=hamburg()></i>
        </div>
        <div class="links-short " id="ham">
            <a href="#">Home</a>
            <a href="#">About</a>
            <a href="#">Services</a>
            <a href="#">Contact</a>
            <i class="fa-solid fa-xmark" onclick=cancel()></i>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>


Step 2 : Styling with CSS


*{
    margin0;
    padding0;
    font-familyArialHelveticasans-serif;
    box-sizingborder-box;
}

body{
    width100%;
    height100vh;
    background-imageurl('Assests/background.jpg');
    background-positioncenter;
    background-repeatno-repeat;
    background-sizecover;
}

.container{
    margin-top10px;
    width100%;
    height10vh;
    displayflex;
    justify-contentspace-around;
}

.container .logo img{
    width200px;
    height70px;
}

.container .links{
    margin-top20px;
}
.container .links a{
    colorwhite;
    text-decorationnone;
    margin-right60px;
    font-size1.7rem;
}

.container .links i{
    colorwhite;
    font-size2rem;
    positionabsolute;
    right60px;
    top30px;
    opacity0;
}


.links-short{
    positionabsolute;
    top0;
    transition0.3s linear ;
    transformtranslateY(-400px);
    width100%;
    height30vh;
    background-colorblack;
}

.links-short a{
    displayflex;
    margin-top30px;
    colorwhite;
    text-decorationnone;
    justify-contentcenter;
}

.links-short a:hover{
    font-size1.3rem;
}

.links-short i{
    colorwhite;
    positionabsolute;
    right60px;
    top20px;
    font-size2rem;
}
@media (max-width:990px) {
    .container .links i{
        opacity1;
    }

    .container .links a{
        opacity0;
    }

   
}


Step 3 : Now Script with JS


const ham = document.getElementById('ham')

function hamburg(){
    ham.style.transform = "translateY(0px)";
}
function  cancel(){
    ham.style.transform = "translateY(-400px)";
}



Conclusion


As web technologies evolve, staying updated with our latest practices and frameworks will enable you to create even more user-friendly navigation systems for your websites. Embracing responsive design principles ensures that your website remains accessible and user-friendly across the ever-expanding array of devices and screen sizes.


Comments

Popular posts from this blog

Full Travel Responsive Website using html and css only | Source Code

Bus Ticket Booking System Website design using HTML and CSS

Make A Simple Shoes Website using HTML and CSS | Free Source Code