AMAZON HOME PAGE CLONE PROJECT
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Amazon</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="STLE.CSS">
</head>
<body>
<header>
<div class="navbar border">
<div class="nav-logo border">
<div class="logo"></div>
</div>
<div class="nav-adderess border">
<p class="add-first">Deliver To</p>
<div class="add-icon">
<i class="fa-solid fa-location-dot"></i>
<p class="add-sec">India</p>
</div>
</div>
<div class="nav-search">
<select class="search-select">
<option>All</option>
</select>
<input placeholder="Search Amazon" class="search-input">
<div class="search-icon">
<i class="fa-solid fa-magnifying-glass"></i>
</div>
</div>
<div class="nav-signin border">
<p><span>Hello,Sign in</span></p>
<p class="nav-second">Account & Lists</p>
</div>
<div class="nav-return border">
<p><span>Returns</span></p>
<p class="nav-second">& Orders</p>
</div>
<div class="nav-cart border">
<i class="fa-solid fa-cart-shopping"></i>
Cart
</div>
</div>
<div class="panel">
<div class="panel-all border">
<i class="fa-solid fa-bars"></i>
All
</div>
<div class="panel-ops border">
<p>Today's Deals</p>
<p>Customber Service</p>
<p>Gift Cards</p>
<p>Sell</p>
</div>
<div class="panel-deals border">
Shop deals in Electronics
</div>
</div>
</header>
<div class="hero-section">
<div class="hero-msg">
<p>You are on amazon.com.You can also shop on Amazon India for millions
of products with fast local delivery.
<a>Click here to go to amazon.in</a>
</p>
</div>
</div>
<div class="shop-section">
<div class="box1 box">
<div class="box-content">
<h2>Health & Pesonal Care</h2>
<div class="box-img" style="background-image: url('box5.jpg');"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box2 box">
<div class="box-content">
<h2>Kitchen</h2>
<div class="box-img" style="background-image: url(box6.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box3 box">
<div class="box-content">
<h2>Accessories</h2>
<div class="box-img" style="background-image: url(box7.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box4 box">
<div class="box-content">
<h2>Furnitures</h2>
<div class="box-img" style="background-image: url(box8.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box5 box">
<div class="box-content">
<h2>Electronics</h2>
<div class="box-img" style="background-image: url(box9.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box6 box">
<div class="box-content">
<h2>Plants</h2>
<div class="box-img" style="background-image: url(box10.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box7 box">
<div class="box-content">
<h2>Fashion</h2>
<div class="box-img" style="background-image: url(box11.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
<div class="box8 box">
<div class="box-content">
<h2>Footware</h2>
<div class="box-img" style="background-image: url(box3.jpg);"></div>
<p><a>See More</a></p>
</div>
</div>
</div>
<footer>
<div class="foot-panel1">
Back To Top
</div>
<div class="foot-panel2">
<ul>
<p>Get to Know Us</p>
<a>About Us</a>
<a>Careers</a>
<a>Press Releases</a>
<a>Amazon Science</a>
</ul>
<ul>
<p>Connect with Us</p>
<a>Facebook</a>
<a>Twitter</a>
<a>Instagram</a>
<a>You Tube</a>
</ul>
<ul>
<p>Amazon Partner</p>
<a>Sell</a>
<a>Marketing</a>
<a>Customber</a>
<a>Brand</a>
</ul>
<ul>
<p>Help</p>
<a>COVID 19</a>
<a>Return</a>
<a>Purchase</a>
<a>Help</a>
</ul>
</div>
<div class="foot-panel3">
<div class="logo"></div>
</div>
<div class="foot-panel4">
<div class="pages">
<a>Conditions Of Use</a>
<a>Privacy Notice</a>
<a>Your Ads Privacy Choices</a>
</div>
<div class="copyright">
© 1996-2023, Amazon.com, Inc. or its affiliates
</div>
</div>
</footer>
</body>
</html>
CSS
*{
margin: 0;
font-family: Arial, Helvetica, sans-serif;
border: border-box;
}
.navbar{
height: 60px;
background-color: #0f1111;
color: white;
display: flex;
align-items:center;
justify-content: space-evenly;
}
.nav-logo{
height: 50px;
width: 110px;
}
.logo{
background-image: url(amazon_logo.png);
background-size: cover;
height: 50px;
width: 100%;
}
.border{
border: 1.5px solid transparent;
}
.border:hover{
border: 1.5px solid white;
}
/** box2 **/
.add-first{
color: #cccccc;
font-size: 0.85rem;
margin-left: 13px ;
}
.add-sec{
font-size: 1rem;
margin-left: 3px;
}
.add-icon{
display: flex;
align-items: center;
}
/** box 3**/
.nav-search{
display:flex;
justify-content: space-evenly;
background-color: pink;
width: 620px;
height: 40px;
border-radius: 4px;
}
.search-select{
background-color:#f3f3f3 ;
width:50px ;
text-align: center;
border-top-left-radius:4px ;
border-bottom-left-radius: 4px;
border: none;
}
.search-input{
width: 100%;
font-size: 1rem;
border: none;
}
.search-icon{
width: 45px;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2rem;
background-color: #fedb68;
border-top-right-radius:4px ;
border-bottom-right-radius: 4px;
}
.nav-search:hover{
border: 2px solid orange;
}
/** Box4 **/
span{
font-size:0.7rem ;
}
.nav-second{
font-size: 0.85rem;
font-weight:700 ;
}
/** Box 6 **/
.nav-cart i{
font-size: 30px;
}
.nav-cart{
font-size: 0.85rem;
font-weight: 700;
}
/**Panel**/
.panel{
background-color: #222f3d;
height: 40px;
display: flex;
color: white;
align-items: center;
justify-content: space-evenly;
}
.panel-ops p{
display:inline ;
margin-left: 15px;
}
.panel-ops{
width: 70%;
font-size: 0.85rem;
}
.panel-deals{
font-size: 0.90rem;
font-weight: 700;
}
/** hero section**/
.hero-section{
background-image: url(box1.jpg);
height: 370px;
background-size: cover;
display: flex;
justify-content: center;
align-items: flex-end;
}
.hero-msg{
background-color: white;
color: black;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 680;
font-size: 0.85rem;
width: 80%;
margin-bottom: 25px;
}
.hero-msg a{
color: #007185;
margin-left: 10px;
}
/**shop section**/
.shop-section{
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
background-color: rgb(148, 237, 237);
}
.box{
height: 300px;
border: 2px solid black;
width: 23%;
background-color: white;
padding: 20px 0px 15px;
margin-top: 10px;
}
.box-img{
height: 220px;
background-size: contain;
background-repeat: no-repeat;
margin-top: 1rem;
margin-bottom: 1rem;
}
.box-content{
margin-left: 1rem;
margin-right: 1rem;
}
.box-content p{
color: #007185;
}
/**footer**/
footer{
margin-top: 15px;
}
.foot-panel1{
background-color: #37475a;
color: white;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.5rem;
}
.foot-panel2{
background-color: #222f3b;
color: white;
height: 500px;
display: flex;
justify-content: space-evenly;
}
ul{
margin-top: 20px;
}
ul a{
display: block;
font-size: 0.85rem;
margin-top: 10px;
color: #dddddd;
}
.foot-panel3{
background-color: #222f3d;
color: white;
border-top: 0.5px solid white ;
height: 70px;
display: flex;
justify-content: center;
align-items: center;
}
.logo{
background-image: url(amazon_logo.png);
background-size: cover;
height: 50px;
width: 100px;
}
.foot-panel4{
background-color: #0f1111;
color: white;
height: 85px;
}
.pages{
font-size: 0.70rem;
text-align: center;
padding-top: 25px;
}
.copyright{
font-size: 0.70rem;
text-align: center;
padding-top: 5px;
Comments
Post a Comment