Hey, developers welcome to Day 34 of our 90Days 90Projects challenge. And in Day 34 we are going to create a Responsive About Us Page Template using HTML CSS.
So to run this code you just need to copy the HTML and CSS code and run it into your code Editor.
Preview
Image Resource - Download Now
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.0">
<title> About Us Page Design </title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<!--================== Header Section Starts from Here ==================-->
<header>
<nav class="navbar">
<h2> Gavacy. </h2>
<ul id="list">
<li><a href="#"> Home </a></li>
<li><a href="#"> Our Pricing </a></li>
<li><a href="#"> About Us </a></li>
<li><a href="#"> Services </a></li>
<li><a href="#"> News </a></li>
<li><a href="#"> Page </a></li>
<li><a href="#" class="button"> Free Trial </a></li>
</ul>
<ul id="hamBurger">
<li><i class="fa-solid fa-bars"></i></li>
</ul>
<ul class="responsive">
<li><a href="#"> Home </a></li>
<li><a href="#"> Our Pricing </a></li>
<li><a href="#"> About Us </a></li>
<li><a href="#"> Services </a></li>
<li><a href="#"> News </a></li>
<li><a href="#"> Page </a></li>
<li><a href="#" class="button"> Free Trial </a></li>
</ul>
</nav>
</header>
<!--================== Header Section Ends Here -->
<!--================== Home Section Starts from Here ==================-->
<section id="home">
<div class="home-left">
<img src="./user.jpg" alt="">
</div>
<div class="home-right">
<h2 class="home-heading"> Grow Up Your Workflow Speed </h2>
<p class="home-para">Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta quibusdam blanditiis
quas assumenda nam error vel dolores suscipit ad, sapiente deleniti ipsum, obcaecati perspiciatis.</p>
<a href="" class="btn"> Our Work</a>
</div>
</section>
<!--================== Home Section Ends Here -->
<!--================== Workflow Section Starts from Here ==================-->
<section id="workFlow">
<h2 class="heading"> Grow Up Your Workflow Speed. </h2>
<p class="para">Lorem ipsum dolor sit amet consectetur adipisicing elit. A, commodi sint. <br>Ipsam molestias
nemovel laboriosam consequatur, perferendis<br> minima soluta? Natus necessitatibus autem suscipit!</p>
<div class="num-container">
<div class="num-item"><span>27,882 <br>Customers</span></div>
<div class="num-item"><span>90% <br>Action Plans</span></div>
<div class="num-item"><span>70,592 <br>Downloads</span></div>
</div>
</section>
<!--================== Workflow Section Ends Here -->
<!--================== Goal Section Starts from Here ==================-->
<section id="goal">
<div class="goal-left">
<h2>Our Goal</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore omnis obcaecati incidunt asperiores,
mollitia quibusdam velit at itaque sunt, culpa in pariatur quas, temporibus repellendus vitae! Vitae,
illum asperiores.</p>
<ul>
<li> Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nulla, atque!</li>
<li> Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nulla, atque!</li>
<li> Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nulla, atque!</li>
</ul>
<a href="" class="btn"> Contact Us</a>
</div>
<div class="goal-right">
<img src="./our goal.jpg" alt="">
</div>
</section>
<!--================== Goal Section Ends Here -->
<!--================== Our Team Section Starts from Here ==================-->
<section id="our-Team">
<h2>Our Member</h2>
<div class="teamContainer">
<div class="team-item">
<img src="./teamMember.png" alt="">
<h5 class="member-name">John Smith</h5>
<span class="role">seo expert</span>
</div>
<div class="team-item">
<img src="./teamMember.png" alt="">
<h5 class="member-name">John Smith</h5>
<span class="role">seo expert</span>
</div>
<div class="team-item">
<img src="./teamMember.png" alt="">
<h5 class="member-name">John Smith</h5>
<span class="role">seo expert</span>
</div>
<div class="team-item">
<img src="./teamMember.png" alt="">
<h5 class="member-name">John Smith</h5>
<span class="role">seo expert</span>
</div>
</div>
</section>
<!--================== Our Team Section Ends Here -->
<!--================== Footer Starts from Here ==================-->
<footer>
<p> © 2022 - All rights reserved - geekshelp.in</p>
</footer>
<!--================== Footer Ends Here -->
</body>
<script src="script.js"></script>
</html>
CSS Code
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
header {
height: 300px;
position: relative;
}
header::before {
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url(./office.jpg);
background-position: bottom;
background-size: cover;
opacity: 0.8;
z-index: -1;
}
header::after {
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.6;
background-size: cover;
background-color: black;
background-position: bottom;
}
.navbar {
color: #fff;
padding: 1rem 3rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar ul {
display: flex;
align-items: center;
justify-content: center;
list-style: none;
}
.navbar .responsive {
display: none;
}
.navbar ul li {
padding: 8px 12px;
}
.navbar ul li a {
z-index: 2;
color: #fff;
position: relative;
text-decoration: none;
}
#hamBurger {
display: none;
}
.button {
padding: 7px 10px;
color: #fff;
animation: none;
animation-duration: 0.5s;
animation-fill-mode: forwards;
background-color: rgb(32, 154, 202);
}
#home {
width: 100%;
padding: 3rem;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
}
.home-left {
height: 300px;
position: relative;
}
.home-left img {
height: 100%;
border-radius: 10px;
}
.home-right {
width: 50%;
}
.home-heading {
font-size: 2rem;
margin-bottom: 10px;
}
.home-para {
margin-bottom: 20px;
}
.btn {
text-decoration: none;
color: black;
font-weight: bold;
position: relative;
width: 0;
}
.btn:hover::after {
content: '';
height: 4px;
position: absolute;
background-color: aqua;
left: 0;
bottom: -10px;
animation: width;
animation-duration: 0.5s;
animation-fill-mode: forwards;
border-radius: 5px;
}
@keyframes width {
0% {
width: 0%;
}
100% {
width: 100%;
}
}
#workFlow {
width: 100%;
display: flex;
justify-content: center;
align-content: center;
flex-direction: column;
text-align: center;
margin-bottom: 4rem;
}
.heading {
margin: 1rem auto;
text-align: center;
}
.para {
margin: 1rem auto;
}
.num-container {
width: 70%;
margin: 1rem auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.num-item {
font-size: 1.5rem;
line-height: 1.4rem;
color: rgb(43, 126, 199);
}
/* Our Goal */
#goal {
width: 80%;
margin: 2rem auto;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
}
.goal-left {
width: 60%;
line-height: 2rem;
}
.goal-left h2 {
font-size: 2.4rem;
}
.goal-left p {
line-height: 1.5rem;
margin: 1rem 0;
}
.goal-left ul {
list-style: none;
margin-bottom: 1rem;
}
.goal-left ul li::before {
line-height: 1.5rem;
content: '✓';
color: red;
}
.goal-right {
position: relative;
width: 35%;
}
.goal-right img {
width: 100%;
cursor: pointer;
border-radius: 10px;
filter: drop-shadow(3px 4px 5px black);
transition: all 0.2s linear;
}
.goal-right img:hover {
transform: translateY(-5px);
filter: drop-shadow(5px 6px 7px black);
}
/* Our Team */
#our-Team {
width: 80%;
margin: 4rem auto 1rem;
}
#our-Team h2 {
text-align: center;
margin: 1rem auto 4rem;
position: relative;
}
#our-Team h2::after {
content: '';
height: 4px;
margin: 0 auto;
text-align: center;
width: 15%;
background-color: aqua;
position: absolute;
left: 50%;
bottom: -10px;
border-radius: 5px;
transform: translate(-50%);
}
.teamContainer {
width: 70%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.team-item {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0.5rem;
}
.team-item h5 {
margin-top: 1rem;
font-size: 1.1rem;
}
.team-item span {
margin-top: .4rem;
font-weight: bold;
text-transform: uppercase;
color: rgb(7, 176, 176);
}
.team-item img {
width: 80px;
}
footer {
padding: 1rem 0;
text-align: center;
}
@media screen and (max-width: 784px) {
#list {
display: none;
}
#hamBurger {
cursor: pointer;
display: block;
z-index: 20;
font-size: 2rem;
}
.navbar .responsive {
display: flex;
flex-direction: column;
position: fixed;
top: 0%;
left: 100%;
padding: 2rem 0;
z-index: 2;
height: 100vh;
background-color: rgb(24, 23, 24);
width: 100%;
transition: all 0.5s linear;
opacity: 0.9;
}
.navbar ul li {
margin: 0.4rem 0;
}
.responsive.active {
left: 0%;
}
.goal-right {
width: 100%;
margin: 0 auto 2rem;
}
.goal-left {
width: 100%;
text-align: center;
}
#goal {
flex-direction: column-reverse;
}
}
@media screen and (max-width: 633px) {
#home {
flex-direction: column;
}
.home-left {
width: 100%;
height: auto;
}
.home-left img {
width: 100%;
}
.home-right {
margin-top: 2rem;
width: 100%;
}
.para {
width: 90%;
}
.num-container {
flex-direction: column;
}
.num-item {
margin: 1rem;
}
.teamContainer {
justify-content: center;
}
}
JavaScript
const hamBurgerBtn = document.getElementById('hamBurger');
hamBurgerBtn.addEventListener('click', function () {
const responsiveRight = document.querySelector('.responsive')
hamBurgerBtn.classList.toggle('active')
if (hamBurgerBtn.classList.contains('active')) {
responsiveRight.classList.add('active')
}
else {
responsiveRight.classList.remove('active')
}
})
Very nice your template.
ReplyDeleteThank you so much 💫😊
Delete