Showing posts with label Frontend project. Show all posts
Showing posts with label Frontend project. Show all posts

Monday, June 24, 2024

How to create a Navigation bar Frontend project

 
Navigation bar design template

How to Create Navigation bar using  html and CSS, JS

👇ஃ Create a  Navigation bar with source codeஃ

Source Code 

<html>
    <head>
    <meta charset="UTF-8">
    <meta name="viewport"
content="width=device-width,
initial-scale=1.0">
    <title>User Login</title>
    <link rel="stylesheet"
href="css/bootstrap.css">
  <style>
.dropbtn {
  background-color:#0096FF;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #2980B9;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: pink;
  min-width: 160px;
  overflow: auto;
  box-shadow:  rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 16px 12px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}
    </style>
</head>
<div class="bg-white shadow container mt-5 p-3
text-center mx-auto">
                <a href="home.php" class="btn
btn-primary">
                   Home
                </a>
                <body style="background-color:
white;">


<div class="dropdown">
  <button onclick="myFunction()"
class="dropbtn btn btn-primary">
Dress</button>
  <div id="myDropdown"
class="dropdown-content">
    <a href="product1.php">Women Lehenga Choli
</a>
    <a href="#product2.php">Sharara Suit</a>
    <a href="product3.php">Anarkali  Suit</a>
  </div>
</div>
                <a href="About.php"
class="btn btn-primary">
                    About us
                </a>
<a href="contact.php" class="btn btn-primary">
                    Contact Us
                </a>

                <a href="feedback.php"
class="btn btn-primary">
                    Feedback
                </a>
                <a href="login.php"
class="btn btn-primary">
                    Login
                </a>
        </div>
        <script>

function myFunction() {
  document.getElementById("myDropdown").
classList.toggle("show");
}

// Close the dropdown if the user clicks
outside of it
window.onclick = function(event) {
  if (!event.target.matches('.dropbtn')) {
    var dropdowns = document.
getElementsByClassName("dropdown-content");
    var i;
    for (i = 0; i < dropdowns.length; i++) {
      var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
        openDropdown.classList.remove('show');
      }
    }
  }
}
</script>    
 </html>

 How to Create Navigation bar using  html and CSS, JS

OutPut :- 

navigation bar

php assignment operators

Css element selector

Sunday, June 23, 2024

How to create a product page

Responsive Product Page design using HTML | CSS




product page



Responsive Product Page design using HTML | CSS


Source Code :-

HTML ,CSS Source code:- 

<html>
  <head>
    <style>
      @import url('https://cdnjs
.cloudflare.com/ajax/libs/font-awesome/
6.0.0-beta3/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif, Arial, Helvetica;

}

body {
    height: 100vh;
    background-color: #f2f2f2;
}

a {
    text-decoration: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.content {
    width: 20%;
    min-width: 250px;
    margin: 15px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f2f2f2;
    padding-top: 10px;
    box-shadow: 0 14px 28px
rgba(0, 0, 0, 0.20), 0 10px 10px
rgba(0, 0, 0, 0.20);
}

.content:hover {
    box-shadow: 0 3px 6px
rgba(0, 0, 0, 0.15),
0 3px 6px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

img {
    width: 200px;
    height: 200px;
    text-align: center;
    margin: 0 auto;
    display: block;
    border-radius: 16px;
}

h3{
    text-align: center;
    font-size: 25px;
    margin: 0;
    padding: 12px 0;
}

p {
    text-align: center;
    color: #b2bec3;
    padding: 0 8px;
}

h6 {
    font-size: 18px;
    text-align: center;
    color: #222f25;
    margin: 5px 0;
}

ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

li {
    padding-left: 4px;
}

.fas {
    font-size: 24px;
}

.checked {
    color: gold;
}

button {
    text-align: center;
    width: 100%;
    border: none;
    background-color:#99B1E7;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    margin-top: 10px;
    outline: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

      </style>
      </head>
<body>

    <div class="gallery">
        <div class="content">
  <img src="https://encrypted-tbn0.gstatic.com/
images?q=tbn:ANd9GcQZ9X4qF4kdx3RxNyp
V1diFl6eoAHs9TZ98QA&s" alt="">
          "
                alt="smartwatch">
            <h3>Sharara Suit </h3>
            <p></p>
            <h6> Rs-2,000</h6>
            <ul>
<li><i class="fas fa-star checked"></i></li>
  <li><i class="fas fa-star checked"></i></li>
   <li><i class="fas fa-star checked"></i></li>
  <li><i class="fas fa-star checked"></i></li>
        <li><i class="fas fa-star"></i></li>
            </ul>
            <button>
    <a href="order.php" class="buy-2">
Buy now</a></button>
            </div>

        <div class="content">
            <img src="https://
encrypted-tbn0.gstatic.com/images?q=tbn:
ANd9GcR5
rH8-_QVVFPa9V5nmHhx4GG4NDVJcz2SobQ&s"
                        alt="">
            <h3>Sharara Suit1</h3>
            <p></p>
            <h6> Rs-2,100</h6>
            <ul>
    <li><i class="fas fa-star checked"></i></li>
   <li><i class="fas fa-star checked"></i></li>
    <li><i class="fas fa-star checked"></i></li>
        <li><i class="fas fa-star"></i></li>
          <li><i class="fas fa-star"></i></li>
            </ul>
            <button>
        <a href="order.php" class="buy-2">
Buy now</a></button>
             </div>

             </div>
             
        </div>
</body>
</html>

       



Responsive Product Page design using HTML | CSS


Output :-

product page


Related Post :-

html form pattern attribute

html comments tag

how to create a navigation bar

how to create a Footer Page design


footer page


responsive Footer page design using HTML | CSS

Source Code :-

HTML ,CSS Source code:- 

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content
="width=device-width, initial-scale=1">
<meta charset="utf-8">
  <meta name="viewport"
content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" type="text/css" href=
"https://cdnjs.cloudflare.com/ajax/libs/
font-awesome/5.15.1/css/all.min.css">
<style>


<!--   footer  css code start  -->
@import url('https://
fonts.googleapis.com/css2?family=Poppins:
wght@300;400;500;600;700&display=swap');
body{
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
.container{
    max-width: 1180px;
    margin:auto;
}
.row{
    display: flex;
    flex-wrap: wrap;
}
ul{
    list-style: none;
}
.footer{
    background-color: #24262b;
    padding: 50px 0;
}
.footer-col{
   width: 20%;
   padding: 0 10px;
}
.footer-col h4{
    font-size: 19px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 200;
    position: relative;
}
.footer-col h4::before{
    content: '';
    position: absolute;
    left:0;
    bottom: -10px;
    background-color: #e91e63;
    height: 1px;
    box-sizing: border-box;
    width: 40px;
}
.footer-col ul li:not(:last-child){
    margin-bottom: 10px;
}
.footer-col ul li a{
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 200;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}
.footer-col ul li a:hover{
    color: #ffffff;
    padding-left: 8px;
}
.footer-col .social-links a{
    display: inline-block;
    height: 35px;
    width: 19px;
    background-color: rgba(255,255,255,0.2);
    margin:0 11px 11px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
    color: #24262b;
    background-color: #ffffff;
}

/*responsive*/
@media(max-width: 727px){
  .footer-col{
    width: 50%;
    margin-bottom: 20px;
}


}
@media(max-width: 554px){
  .footer-col{
    width: 100%;
}
}


<!--   footer css code start  -->
</style>

<body>



<!--   footer  code start  -->
<footer class="footer">
     <div class="container">
        <div class="row">
            <div class="footer-col">
                <h4>Quick Link</h4>
                <ul>
         


<li><a href="home.php">Home</a></li> <!-- link page
         
  <li><a href="about.php">About</a></li>
    <li><a href="product.php">Product</a></li>
<li><a href="contactus.php">Contact Us</a></li>
   <li><a href="register.php">Register</a></li>
                </ul>
            </div>
            <div class="footer-col">
                <h4>get help</h4>
                <ul>
         <li><a href="#">FAQ</a></li>
        <li><a href="#">shipping</a></li>
              <li><a href="#">returns</a></li>
        <li><a href="#">order status</a></li>
    <li><a href="#">payment options</a></li>
                </ul>
            </div>
            <div class="footer-col">
                <h4>online shop</h4>
                <ul>
  <li><a href="Dress.php">watch Dress</a></li>
 <li><a href="dress.php">Anarkali Suit</a></li>
<li><a href="dress.php">Sharara Suit</a></li>
  <li><a href="dress.php">Ghagra Dress</a></li>
                </ul>
            </div>

               <div class="footer-col">
                <h4>follow us</h4>
                 <div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i>
</a>
  <a href="#"><i class="fab fa-twitter"></i></a>
  <a href="#"><i class="fab fa-instagram">
</i></a>
    <a href="#"><i class="fab fa-linkedin-in">
</i></a>
                </div>
            </div>

            <div class="footer-col">
                <h4> Location</h4>
                <div class="">
                <a href="""> location</a>
                   
                </div>
            </div>
           
     </div> <br>
       <div class="main">  
            <center><h6 style="color:white;">
Copyright@2024,Developed By company
name Student Aishwarya .</h6>
         </center></div>
  </footer>
<!--   footer  code end  -->

           
</div>
</body>
</html>


Responsive Footer page design using HTML | CSS

Output :- 

footer page


Related Post :-