How To Create Simple website

 Simple Web page Design 



HTML CODE 

<header>

  <div class="container">

    <h1>Code With Angry </h1>

  </div>

</header>


<nav>

  <div class="container">

    <a href="#">Home</a>

    <a href="#">About</a>

    <a href="#">Services</a>

    <a href="#">Contact</a>

  </div>

</nav>


<div class="login-container">

  <div class="login-box">

    <h2>Login Here </h2>

    <form>

      <input type="text" placeholder="Username" required>

      <input type="password" placeholder="Password" required>

      <input type="submit" value="Login">

       <p class="link">Don't have an account<br>

      <a href="#">Sign up </a> here</a></p>

      <p class="liw">Log in with</p>

    </form>

  </div>

</div>


<footer>

  <div class="container">

    <p> Copyright &copy; 2024 CodeWithAngry.com</p>

    <section class="footer">

      <div class="footer-row">

        <div class="footer-col">

          <h4>Info</h4>

          <ul class="links">

            <li><a href="#">About Us</a></li>

            <li><a href="#">Compressions</a></li>

            <li><a href="#">Customers</a></li>

            <li><a href="#">Service</a></li>

            <li><a href="#">Collection</a></li>

          </ul>

        </div>


        <div class="footer-col">

          <h4>Explore</h4>

          <ul class="links">

            <li><a href="#">Free Designs</a></li>

            <li><a href="#">Latest Designs</a></li>

            <li><a href="#">Themes</a></li>

            <li><a href="#">Popular Designs</a></li>

            <li><a href="#">Art Skills</a></li>

            <li><a href="#">New Uploads</a></li>

          </ul>

        </div>


        <div class="footer-col">

          <h4>Legal</h4>

          <ul class="links">

            <li><a href="#">Customer Agreement</a></li>

            <li><a href="#">Privacy Policy</a></li>

            <li><a href="#">GDPR</a></li>

            <li><a href="#">Security</a></li>

            <li><a href="#">Testimonials</a></li>

            <li><a href="#">Media Kit</a></li>

          </ul>

        </div>


        <div class="footer-col">

          <h4>Code With Angry</h4>

          <p>

            Subscribe to our Code With Angry for a weekly dose

            of news, updates, helpful tips, and

            exclusive offers.

          </p>

          <form action="#">

            <input type="text" placeholder="Your email" required>

            <button type="submit">SUBSCRIBE</button>

          </form>

          <div class="icons">

            <i class="fa-brands fa-facebook-f"></i>

            <i class="fa-brands fa-twitter"></i>

            <i class="fa-brands fa-linkedin"></i>

            <i class="fa-brands fa-github"></i>

          </div>

        </div>

      </div>

    </section>

  </div>

</footer>


CSS CODE 

<style>

body {

  margin: 0;

  padding: 0;

  font-family: Arial, sans-serif;

}


.container {

  width: 90%;

  margin: 0 auto;

}



header {

  background-color: #4CAF50;

  color: #fff;

  padding: 10px 0;

  text-align: center;

}



nav {

  background-color: #333;

  overflow: hidden;

}


nav a {

  float: left;

  display: block;

  color: #f2f2f2;

  text-align: center;

  padding: 14px 20px;

  text-decoration: none;

}


nav a:hover {

  background-color: #ddd;

  color: black;

}



.login-container {

  display: flex;

  justify-content: center;

  align-items: center;

  height: 80vh;

}


.login-box {

  width: 300px;

  padding: 20px;

  background-color: #f2f2f2;

  border-radius: 5px;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}


input[type="text"],

input[type="password"],

input[type="submit"] {

  width: 100%;

  padding: 10px;

  margin: 5px 0;

  border: 1px solid #ccc;

  border-radius: 3px;

  box-sizing: border-box;

}


input[type="submit"] {

  background-color: #4CAF50;

  color: white;

  border: none;

  cursor: pointer;

}


input[type="submit"]:hover {

  background-color: #45a049;

}



footer {

  background-color: #10182F;

  color: #fff;

  padding: 20px 0;

  margin-top: 45px;

  text-align: center;

}


nav a:hover {

  color: rgba(255, 0, 0, 0.5);

}


nav a:active {

  color: rgba(0, 0, 255, 0.5); 

}



@media screen and (max-width: 600px) {

  nav a {

    float: none;

    display: block;

    text-align: left;

  }

}

   

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');


* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: 'Open Sans', sans-serif;

}


.footer {

  position: absolute;

  top: 100%;

  left: 50%;

  transform: translate(-50%, -50%);

  max-width: 1280px;

  width: 100%;

  height:20%;

  background: #10182F;

  border-radius: 6px;

}


.footer .footer-row {

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  gap: 3.5rem;

  padding: 60px;

}


.footer-row .footer-col h4 {

  color: #fff;

  font-size: 1.2rem;

  font-weight: 400;

}


.footer-col .links {

  margin-top: 20px;

}


.footer-col .links li {

  list-style: none;

  margin-bottom: 10px;

}


.footer-col .links li a {

  text-decoration: none;

  color: #bfbfbf;

}


.footer-col .links li a:hover {

  color: #fff;

}


.footer-col p {

  margin: 20px 0;

  color: #bfbfbf;

  max-width: 300px;

}

.link{

    font-family: Arial, Helvetica, sans-serif;

    font-size: 17px;

    padding-top: 20px;

    text-align: center;

}

 .link a{

    text-decoration: none;

    color: #ff7200;

}

.liw{

    padding-top: 15px;

    padding-bottom: 10px;

    text-align: center;

}

h2{

   display: flex;

   justify-content: center;

   align-content: center;

}


.footer-col form {

  display: flex;

  gap: 5px;

}


.footer-col input {

  height: 40px;

  border-radius: 6px;

  background: none;

  width: 100%;

  outline: none;

  border: 1px solid #7489C6 ;

  caret-color: #fff;

  color: #fff;

  padding-left: 10px;

}


.footer-col input::placeholder {

  color: #ccc;

}


 .footer-col form button {

  background: #fff;

  outline: none;

  border: none;

  padding: 10px 15px;

  border-radius: 6px;

  cursor: pointer;

  font-weight: 500;

  transition: 0.2s ease;

}


.footer-col form button:hover {

  background: #cecccc;

}


.footer-col .icons {

  display: flex;

  margin-top: 30px;

  gap: 30px;

  cursor: pointer;

}


.footer-col .icons i {

  color: #afb6c7;

}


.footer-col .icons i:hover {

  color: #fff;

}


@media (max-width: 768px) {

  .footer {

    position: relative;

    bottom: 0;

    left: 0;

    transform: none;

    width: 100%;

    border-radius: 0;

  }


  .footer .footer-row {

    padding: 20px;

    gap: 1rem;

  }


  .footer-col form {

    display: block;

  }


  .footer-col form :where(input, button) {

    width: 100%;

  }


  .footer-col form button {

    margin: 10px 0 0 0;

  }

}

</style>




Comments

Popular posts from this blog

Html And Css Magic Navigation Menu Project || How To use Html & Css