Homepage.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet"  type="text/css" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
</head>
<body>


   <div class="webHome">


    <nav> 
     
         <span class="name">Coding Zone</span>
     
        <ul class="links">

                <li><a href="#"><i class="fas fa-home"></i>Home</a></li>
                <li><a href="#"><i class="fas fa-phone-alt"></i>Contact Us</a></li>               
                <li><a href="#"><i class="fas fa-cogs"></i>Services</a></li>
                <li><a href="#"><i class="fas fa-arrow-circle-right"></i>Login</a></li>   
             
         </ul>
     
       
    </nav>

    <div class="content">

         <p>Hi</p>
         <p>I'm <i>Akash Maurya</i> </p>
         <p><i>Web Designer </i>at  Coding Zone</p>
          <p>Love to make clean and Simple Design</p><br>
         <button>Contact me</button>

    </div>

</div>


</body>
</html>



style.css

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital@1&display=swap');

*{

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html,body{

    background-image: url(green.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    font-family: 'Crimson Text', serif;
 
}


.webHome{

    position: relative;
    width: 100%;
    display: block;
    height: 100%;


}

nav{

 
    width: 100%;
    height: 80px;
    background-color: rgb(218, 38, 38);
    line-height: 80px;
    opacity: 0.9;

 

 
}

.name{

    color: white;
    font-size: 35px;
    border: 4px solid white;
    padding: 5px;
    margin-left: 20px;
    font-weight: 800;
}

nav ul{


    float: right;
    margin-right: 20px;

 
}

nav li{

 display: inline-block;

 margin-right: 10px;


}

nav ul a{

    padding: 10px 20px;
    font-size: 18px;
    color: white;

}


nav ul a:hover{

    transition: .3s;
    border-bottom: 3px solid white;
    border-radius: 5px;
    font-size: 20px;

}

.content{

    color:white;
    position: absolute;
    top:50%; 
    transform: translateY(-50%);
    padding-left: 40px;
    display: block;
    font-size: 20px;
    font-weight: 600;


}

i{

  color: red;

}

p{

    margin-top: 5px;
}

button{

    background: none;
    color:white;
    border: 4px solid red;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}



button:hover{

border: 4px solid teal;
font-weight: 600;



}

.fas{

    color: white;
    margin-right: 5px;

}

 View of Homepage


  

      
 On Hover the Header Elements




  On Hover Contact Me



Video Link for above Code :







3 Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. owesome sir very helpful videos for project ..Thank you very much providing us your code and designs .

    ReplyDelete

Post a Comment

Previous Post Next Post