Create Beautifully App UI Using HTML and CSS

Create Beautifully App UI Using HTML and CSS

ยท

5 min read

Table of contents

Project for a beginners in CSS. Using HTML and CSS Learn create the best UI/UX Design. Through this you will learn flexbox and position.

HTML CODE

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="We provide Free All Branch MCQs, Notes, Books, External Oral/ Viva Questions and Answers, Lab Manual Answers, Programs with Code and more"/>
  <title>MSBTE Notes</title>
  <link rel="icon" type="image/x-icon" href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQHBpgXq2HG7oT4JsJW3t6n3M1hSgmklg9kug&usqp=CAU">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" />

  <link href="https://fonts.googleapis.com/css2?family=Kanit&family=Raleway&display=swap" rel="stylesheet">
  <!-- Custom Styles -->
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <h1 class="alert_text">Work Only Mobile And Tables Screen Size</h1>
  <section id="main">
  <div class="container">
    <div class="card advance">
      <span><i class="fa-sharp fa-solid fa-computer"></i></span>
      <p>Computer</p>
    </div>

    <div class="card animation">
      <span><i class="fa-solid fa-wrench"></i></span>
      <p>Mechanical</p>
    </div>

    <div class="card cosui">
      <span><i class="fa-solid fa-laptop"></i></span>
      <p>IT</p>
    </div>

    <div class="card github">
      <span><i class="fa-solid fa-bolt"></i></span>
      <p>Electrical</p>
    </div>

    <div class="card jet">
      <span><i class="fa-solid fa-building"></i></span>
      <p>Civil</p>
    </div>

    <div class="card term">
      <span><i class="fa-solid fa-notes-medical"></i></span>
      <p>D Pharmacy</p>
    </div>

  </div>

  <div class="textcon">
    <p>News</p>
    <a href="https://m.youtube.com/results?search_query=Msbte" class="more_a"><p>More <i class="fa-solid fa-arrow-up-right-from-square"></i></p></a>
  </div>

  <div class="videobox"> 
    <iframe class="videos" src="https://www.youtube.com/embed/mXjZQX3UzOs" width="250px" height="140px" frameborder="0" allowfullscreen ></iframe>

    <iframe class="videos" src="https://www.youtube.com/embed/fis26HvvDII" width="250px" height="140px" frameborder="0" allowfullscreen ></iframe>

    <iframe class="videos" src="https://www.youtube.com/embed/BCSlZIUj18Y" width="250px" height="140px" frameborder="0" allowfullscreen ></iframe>

    <iframe class="videos" src="https://www.youtube.com/embed/FjrKMcnKahY" width="250px" height="140px" frameborder="0" allowfullscreen ></iframe>
  </div>
  <div class="pagesbox">
    <a href="#">About</a>
    <a href="#">Privacy Policy</a>
    <a href="#">Partner</a>
    <a href="#">Share Notes</a>
  </div>
  </section>
  <footer class="footer">
    <div><a href="whatsapp://send?text=We provide Free All Branch MCQs, Notes, Books, External Oral/ Viva Questions and Answers, Lab Manual Answers, Programs with Code and more%20๐Ÿ”— https://freeuto.blogspot.com/" data-action="share/whatsapp/share">
    <i id="ic" class="fa-brands fa-whatsapp" aria-hidden="true"></i>
    </a>
    </div>
  </footer>

<!-- rainbow  -->
<div class='stwRainbow'>
  <div class='stwBlurRainbow'>
  </div>
</div>

  <!-- Project -->
  <script src="main.js"></script>
</body>
</html>

CSS CODE

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000030;
  font-family: 'Raleway', sans-serif;
}

a {
  text-decoration: none;
  color: #fff;
}

.more_a {
  text-decoration: none;
  color: #8898B8;
}

#main {
  margin: 18px;
  margin-top: 27px;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  grid-gap: .5rem;
}

.card {
  border: none;
  border-radius: 3px;
  padding: .5rem;
  height: 70px;
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

}

.card:hover {
  transform: rotate(10deg);
  padding: 0.7rem;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.advance {
  background: #4485fd;
}

.animation,
.cosui,
.github,
.jet,
.term,
.advance p {
  font-size: 16px;
  text-align: right;
}

.advance span {
  padding: 16px;
  font-size: 19px;
  border-radius: 70px 60px 83px 69px;
  background: #639aff;
}

.animation {
  background: #a584ff;
}


.animation span {
  padding: 16px;
  font-size: 19px;
  border-radius: 59px 50px 44px 49px;
  background: #b79cff;
}

.cosui {
  background: #ff7854;
}

.cosui span {
  padding: 16px;
  font-size: 19px;
  border-radius: 59px 50px 44px 49px;
  background: #fe9275;
}

.github {
  background: #fea725;
}

.github span {
  padding: 16px;
  font-size: 22px;
  border-radius: 47px 48px 44px 49px;
  background: #fab754;
}

.jet {
  background: #00cc6a;
}

.jet span {
  padding: 16px;
  font-size: 22px;
  border-radius: 47px 48px 44px 49px;
  background: #15df7e;
}

.term {
  background: #00c9e4;
}

.term span {
  padding: 16px;
  font-size: 22px;
  border-radius: 47px 48px 44px 49px;
  background: #00dcfa;
}

.textcon {
  color: #8898B8;
  justify-content: space-between;
  display: flex;
  padding: 15px 1px 1px 1px;
  font-family: 'Kanit' sans-serif;
  font-weight: bolder;
  font-size: 12px;
}

.pagesbox {
  justify-content: space-evenly;
  display: flex;
  padding: 20px 0px 0px 0px;
  font-family: 'Kanit' sans-serif;
  font-weight: bolder;
  font-size: 11.3px;
}

.pagesbox a {
  text-decoration: none;
  color: #8898B8
}

.videobox {
  padding: 10px 0px 0px 0px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.videos {
  flex: 0 0 auto;
  padding: 6px;
}


.footer {
  margin: 0;
  width: 100%;
  background: #0bcd55;
  position: fixed;
  left: 0;
  bottom: 0;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: bolder;
  padding: 10px;
}

.footer div {
  display: inline-block;
}

#ic {
  line-height: 20px;
}

#ic {
  vertical-align: middle;
  font-size: 22px;
}

.alert_text {
  display: none;
}

@media only screen and (min-width: 1080px) and (max-width: 2000px) {

  #main {
    margin: 25px;
    margin-top: 27px;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-gap: .5rem;
  }

  .card {
    border: none;
    border-radius: 3px;
    padding: .5rem;
    height: 140px;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

  }

  .card:hover {
    transform: rotate(4deg);
    padding: 0.7rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
  }

  .container span {
    padding: 15px;
    font-size: 33px;
    border-radius: 20px 20px 10px 10px;
  }

  .animation,
  .cosui,
  .github,
  .jet,
  .term,
  .advance p {
    font-size: 28px;
    text-align: right;
    padding-top: 20px;
    padding-right: 20px;
  }

  .textcon {
    color: #8898B8;
    justify-content: space-between;
    display: flex;
    padding: 15px 1px 1px 1px;
    font-family: 'Kanit' sans-serif;
    font-weight: bolder;
    font-size: 18px;
  }

  .pagesbox {
    justify-content: space-evenly;
    display: flex;
    padding: 20px 0px 0px 0px;
    font-family: 'Kanit' sans-serif;
    font-weight: bolder;
    padding-top: 29px;
    font-size: 13px;
  }

  .stwRainbow,
  .stwBlurRainbow {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 23;
    background: linear-gradient(-45deg,
        #4086f4,
        #31a952,
        #fbbe01,
        #eb4132,
        #4086f4,
        #31a952,
        #fbbe01,
        #eb4132);
    background-size: 200%;
    -webkit-animation: animeBar 5s linear infinite;
    animation: animeBar 5s linear infinite;
  }

}

.stwRainbow,
.stwBlurRainbow {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 23;
  background: linear-gradient(-45deg,
      #4086f4,
      #31a952,
      #fbbe01,
      #eb4132,
      #4086f4,
      #31a952,
      #fbbe01,
      #eb4132);
  background-size: 200%;
  -webkit-animation: animeBar 5s linear infinite;
  animation: animeBar 5s linear infinite;
}

.stwBlurRainbow {
  height: 10px;
  z-index: 22;
  filter: blur(10px);
  opacity: 0.7;
}

@-webkit-keyframes animeBar {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes animeBar {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media only screen and (min-width: 810px) and (max-width: 1080px){
  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-gap: .5rem;
  }

  .card {
    border: none;
    border-radius: 3px;
    padding: .5rem;
    height: 140px;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

  }

  .container span {
    padding: 15px;
    font-size: 33px;
    border-radius: 20px 20px 10px 10px;
  }

  .animation,
  .cosui,
  .github,
  .jet,
  .term,
  .advance p {
    font-size: 28px;
    text-align: right;
    padding-top: 20px;
    padding-right: 20px;
  }

  .textcon {
    color: #8898B8;
    justify-content: space-between;
    display: flex;
    padding: 15px 1px 1px 1px;
    font-family: 'Kanit' sans-serif;
    font-weight: bolder;
    font-size: 18px;
  }

  .pagesbox {
    justify-content: space-evenly;
    display: flex;
    padding: 20px 0px 0px 0px;
    font-family: 'Kanit' sans-serif;
    font-weight: bolder;
    padding-top: 29px;
    font-size: 13px;
  }
}

Did you find this article valuable?

Support Amit Gajare by becoming a sponsor. Any amount is appreciated!

ย