Hello friends, all developers are welcome to today’s great blog post. Today’s project is going to be very amazing for you because today we have created a clone of Amazon clone website for you which is quite amazing and from this clone website you are going to get very good coding knowledge. This project is completely beginner friendly, so you can use this project easily. We have created this Amazon website clone only with the help of HTML and CSS. So let us understand some important codes of the clone website step by step.
Amazon Clone Html Code
This code is of HTML with the help of which we can create the structure of any project, which you must know that it is very important to create the structure of HTML because without HTML you cannot create any project. We have created a structure with HTML to clone the Amazon clone website, which does not look good at all right now. In this HTML code, we have used some buttons, images and icons, which are very important for creating any website.
Facebook Clone Using HTML and CSS With Source Code
- First of all, we added the title of our website using HTML so that the user can know which category this website belongs to.
- Then we have created a <div class=”container”></div> container inside which we have written our HTML code.
- It is important to have a header first on any website, so we have used the <nav></nav> tag.
- In this website, we have added a logo in which we have added the image of the Amazon logo, which we have added with the help of image tag (<img src=”….” alt=”main-logo”>).
- In this way we have used some buttons and search bar in the header and added some icons which you will find in the code below.
Friends, in this HTML code, we have written a lot of code in which we have used most of the images. For using the image, we have used image tag and have also used many different tags which you will get to see in the code below.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="style.css" /> <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="shortcut icon" href="favicon.io.ico" type="image/x-icon"> <title>Online Shopping site in India: Shop Online for Mobiles, Books, Watches, Shoes and More - Amazon.in'</title> </head> <body> <div class="container"> <nav> <div class="logo"> <img src="main-assets/logo.png" alt="main-logo"> <span>.in</span> </div> <div class="set_location ln-height border"> <p class="first-line">Delivering to Patna 800020</p> <p class="second-line"> <i class="fa-solid fa-location-dot"></i> Update location </p> </div> <div class="search_box"> <div>All <i class="fa-solid fa-caret-down"></i></div> <input type="text" placeholder="Search Amazon.in"> <div class="camera_search"> <i class="fa-solid fa-camera"></i> </div> <div class="search"> <i class="fa-solid fa-magnifying-glass"></i> </div> </div> <div class="choose_country border"> <div class="flag"> <img src="main-assets/indian flag.png" alt="country flag" height="25px" /> </div> <select name="" id=""> <option value="EN">IN</option> <option value="EN">EN</option> <option value="EN">US</option> </select> </div> <div class="ac_info ln-height border"> <p class="first-line">Hello, sign in</p> <p class="second-line">Accounts & Lists <i class="fa-solid fa-caret-down"></i></p> </div> <div class="orders ln-height border"> <p class="first-line">Returns</p> <p class="second-line">& Orders</p> </div> <div class="cart border"> <i class="fa-solid fa-cart-arrow-down"></i> <p class="second-line">Cart</p> </div> </nav> <div class="menuBar"> <ul> <a href="" class="border"> <i class="fa-solid fa-bars"></i> <span>All</span> </a> <a class="border">Amazon miniTV</a> <a class="border">Sell</a> <a class="border">Best Sellers</a> <a class="border">Mobiles</a> <a class="border">Today's Deals</a> <a class="border">New Releases</a> <a class="border">Customer Service</a> <a class="border"> <select> <option value="">Prime</option> <option value="option2">Free</option> <option value="option3">Premium</option> </select> </a> <a class="border">Electronics</a> <a class="border">Gift Ideas</a> <a class="border">Fashion</a> </ul> <div class="location"> <i class="fa-solid fa-location-dot"></i> <p>Select a location to see product availabilty</p> <i class="fa-solid fa-angle-down"></i> </div> </div> <div class="quickLink"> <h2>Amazon Fashion</h2> <ul> <a>Women</a> <a>Men</a> <a>Kids</a> <a>Bags & Luggage</a> <a>Sportswear</a> <a>Sales & Deals</a> </ul> <div> <p>30 DAY RETURNS</p> <p>Restrictions Apply</p> </div> </div> <div class="heroPage"> <div class="linearShade"></div> </div> <div class="cards"> <!-- card 1 --> <div class="card"> <div class="cardHeading"> Bluetooth Calling Smartwatch starts at ₹1,999 </div> <img src="assets/Watch.jpg" alt="" /> <a href="">Shop Now</a> </div> <!-- card 2 --> <div class="card"> <div class="cardHeading">Revamp your home in style</div> <div class="cardContainer"> <div class="product"> <img src="assets/A1.jpg" alt="" /> <p>Home decor</p> </div> <div class="product"> <img src="assets/A2.jpg" alt="" /> <p>Home furnishings</p> </div> <div class="product"> <img src="assets/A3.jpg" alt="" /> <p>Home storage</p> </div> <div class="product"> <img src="assets/A4.jpg" alt="" /> <p>Lighting solutions</p> </div> </div> <a href="">Explore all</a> </div> <!-- card 3 --> <div class="card"> <div class="cardHeading">Up to 75% off | Headphones</div> <div class="cardContainer"> <div class="product"> <img src="assets/B1.jpg" alt="" /> <p>Up to 75% off | boAt</p> </div> <div class="product"> <img src="assets/B2.jpg" alt="" /> <p>Up to 75% off | boult</p> </div> <div class="product"> <img src="assets/B3.jpg" alt="" /> <p>Up to 75% off | Noise</p> </div> <div class="product"> <img src="assets/B4.jpg" alt="" /> <p>Up to 75% off | Zebronics</p> </div> </div> <a href="">See all offers</a> </div> <!-- card 4 --> <div class="card"> <div class="cardHeading">Up to 70% off | Styles for men</div> <div class="cardContainer"> <div class="product"> <img src="assets/C1.jpg" alt="" /> <p>Clothing</p> </div> <div class="product"> <img src="assets/C2.jpg" alt="" /> <p>Footwear</p> </div> <div class="product"> <img src="assets/C3.jpg" alt="" /> <p>Watches</p> </div> <div class="product"> <img src="assets/C4.jpg" alt="" /> <p>Bags & wallet</p> </div> </div> <a href="">Mega Fashion Days</a> </div> <!-- card 5 --> <div class="card"> <div class="cardHeading"> Starting ₹99 | All your home improvement needs </div> <div class="cardContainer"> <div class="product"> <img src="assets/D1.jpg" alt="" /> <p>Spin mops, wipes & more</p> </div> <div class="product"> <img src="assets/D2.jpg" alt="" /> <p>Bathromm hardware & accessories</p> </div> <div class="product"> <img src="assets/D3.jpg" alt="" /> <p>Hammers, screwdrivers & more</p> </div> <div class="product"> <img src="assets/D4.jpg" alt="" /> <p>Extension boards, plugs & more</p> </div> </div> <a href="">Explore all</a> </div> <!-- card 6 --> <div class="card"> <div class="cardHeading"> Starting ₹99 | All your home improvement needs </div> <div class="cardContainer"> <div class="product"> <img src="assets/E1.jpg" alt="" /> <p>Gaming Accessories</p> </div> <div class="product"> <img src="assets/E2.jpg" alt="" /> <p>Keyboard and Mice</p> </div> <div class="product"> <img src="assets/E3.jpg" alt="" /> <p>Stands, Cables & more</p> </div> <div class="product"> <img src="assets/E4.jpg" alt="" /> <p>Backpacks</p> </div> </div> <a href="">See all offers</a> </div> <!-- card 7 --> <div class="card"> <div class="cardHeading">Up to 70% off | Styles for women</div> <div class="cardContainer"> <div class="product"> <img src="assets/F1.jpg" alt="" /> <p>Women's Clothing</p> </div> <div class="product"> <img src="assets/F2.jpg" alt="" /> <p>Footwear+Handbags</p> </div> <div class="product"> <img src="assets/F3.jpg" alt="" /> <p>Watches</p> </div> <div class="product"> <img src="assets/F4.jpg" alt="" /> <p>Fashion jewellery</p> </div> </div> <a href="">Mega Fashion Days</a> </div> <!-- card 8 --> <div class="card"> <div class="cardHeading"> Appliances for your home | Up to 55% off </div> <div class="cardContainer"> <div class="product"> <img src="assets/G1.jpg" alt="" /> <p>Air conditioners</p> </div> <div class="product"> <img src="assets/G2.jpg" alt="" /> <p>Refrigerators</p> </div> <div class="product"> <img src="assets/G3.jpg" alt="" /> <p>Microwaves</p> </div> <div class="product"> <img src="assets/G4.jpg" alt="" /> <p>Washing machines</p> </div> </div> <a href="">See more</a> </div> <!-- card 9 --> <div class="card"> <div class="cardHeading">Starting ₹99 | Toys for your kids</div> <div class="cardContainer"> <div class="product"> <img src="assets/H1.jpg" alt="" /> <p>Starting ₹299 | Bikes, trikes & ride-ons</p> </div> <div class="product"> <img src="assets/H2.jpg" alt="" /> <p>Starting ₹149 | Sport & outdoor</p> </div> <div class="product"> <img src="assets/H3.jpg" alt="" /> <p>Starting ₹99 | Soft toys</p> </div> <div class="product"> <img src="assets/h4.jpg" alt="" /> <p>Starting ₹199 | Indoor games</p> </div> </div> <a href="">See more</a> </div> </div> <div class="newUser"> <div class="newcustomer"> <div>See personalized recommendations</div> <button>Sign in</button> <p>New customer? <a href="">Start here.</a></p> </div> </div> <div class="backTop"> <i class="fa-solid fa-caret-up"></i> <a href="#">Back to top</a> <a href="">TOP OF PAGE</a> </div> <div class="socialHandle"> <div class="sh-part-1"> <ul> <li>Get to Know Us</li> <li>About Us</li> <li>Careers</li> <li>Press Releases</li> <li>Amazon Science</li> </ul> <ul> <li>Connect with US</li> <li>Facbook</li> <li>Twitter</li> <li>Instagram</li> </ul> <ul> <li>Make Money with Us</li> <li>Sell on Amazon</li> <li>Sell under Amazon Accelerator</li> <li>Protect and Build Your Brand</li> <li>Amazon Global Selling</li> <li>Become an Affilate</li> <li>Fulfilment by Amazon</li> <li>Advertise Your Products</li> <li>Amazon Pay on Merchants</li> </ul> <ul> <li>Let Us Help You</li> <li>COVID-19 and Amazon</li> <li>Your Account</li> <li>Returns centre</li> <li>100% Purchase Protection</li> <li>Amazon App Download</li> <li>Help</li> </ul> </div> <div class="sh-part-2"> <div class="foot-logo"> <img src="main-assets/logo.png" alt="" /> <button> <i class="fa-solid fa-globe"></i> English <i class="fa-solid fa-sort"></i> </button> </div> <div class="locations"> <span>Australia</span> <span>Brazil</span> <span>Canada</span> <span>China</span> <span>France</span> <span>Germany</span> <span>Itlay</span> <span>Japan</span> <span>Mexico</span> <span>Netherlands</span> <span>Poland</span> <span>Singapore</span> <span>Spain</span> <span>Turkey</span> <span>United Arab Emirates</span> <span>United Kingdom</span> <span>United States </span> </div> </div> <div class="sh-part-m"> <ul> <li>Your Amazon.in</li> <li>Amazon Pay</li> <li>Wish List</li> <li>Your Account</li> <li>Returns</li> <li>Customer Service</li> <li>Your Orders</li> <li>Amazon App Download</li> <li>Find a Wish List</li> <li>Your Recently Viewed Items</li> <li>Sell</li> </ul> </div> </div> <footer> <div class="footer-part-1"> <ul> <li>AbeBooks</li> <li>Books, art</li> <li>& collectibles</li> </ul> <ul> <li>Amazon Web Services</li> <li>Scalable Cloud</li> <li>Computing Services</li> </ul> <ul> <li>Audible</li> <li>Download</li> <li>Audio Books</li> </ul> <ul> <li>DPReview</li> <li>Digital</li> <li>Photography</li> </ul> <ul> <li>IMDb</li> <li>Movies, TV</li> <li>& Celebrities</li> </ul> <ul> <li>Amazon Bussiness</li> <li>Everything For</li> <li>Your Bussiness</li> </ul> <ul> <li>Prime Now</li> <li>2-Hours Delivery</li> <li>on Everyday Items</li> </ul> <ul> <li>Amazon Prime Music</li> <li>100 million songs, ad-free</li> <li>Over 15 million podcast episodes</li> </ul> </div> <div class="footer-part-sm"> <div class="lang"> <i class="fa-solid fa-globe"></i> English </div> <h3><a href="">Already a customer? Sign in</a></h3> </div> <div class="footer-part-2"> <p> <a href="">Conditions of Use & Sale</a> <a href="">Privacy Notice</a> <a href="">Interest-Based Ads</a> </p> <p>© 1996-2023, Amazon.com, Inc. or its affilates</p> </div> </footer> </div> </body> </html>
Amazon Clone Css Code
This code is of CSS which is most important for our clone website. With the help of CSS you can give a good design to any website. Without CSS you cannot design any website well. With the help of CSS we have tried to make Amazon’s clone website like the real website of Amazon. We have used some codes in CSS but all the codes are similar so let’s understand some important CSS codes.
Create a Spotify Clone Project Using HTML and CSS (Source Code)
- The most important thing for any website is the font of the text. If the font of your website is not good, then your website will not look good at all. That is why we have used font-family: “Poppins”, sans-serif; that is why we have used Google’s Poppins font.
- We have used scroll-behavior: smooth; scroll behavior for our website to work properly.
- In our website, we have kept the background color white background-color: var(–main-background); so that our website looks good.
- We have used a container in the website through which we can edit any element at once, that is why we have kept the height and width of the container same which is 100%.
- Now coming to the header of the website, we have used background-color: var(–nav-background); black color in its background and have kept the color of the text white.
So friends in this way we have designed the website using CSS but friends I would like to tell you that we have used some codes which you will see in the code below but there are some codes which are used more than once so we have explained only some important codes to you, rest you can see in the code given below.
Create a Spotify Clone Project Using HTML and CSS (Source Code)
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; scroll-behavior: smooth; } :root { --main-background: #e3e6e6; --nav-background: #121821; --searchbox-color: #febd69; } body, html { height: 100%; width: 100%; background-color: var(--main-background); } .container { height: 100%; width: 100%; } /* ============= Reusable Classes =========== */ .first-line { font-size: 12px; color: #bbb; font-weight: 500; } .second-line { font-size: 14px; color: #fff; font-weight: 700; } .ln-height { line-height: 1.1; } .border { padding: 2px 5px; border: 1px solid transparent; border-radius: 2px; } .border:hover { border: 1px solid #ddd; cursor: pointer; } /* NOT TO SHOW */ .category, .wishlist, .deals, .sell, .location, .sh-part-m, .footer-part-sm { display: none; } /* ============== NAVBAR =============== */ nav { padding: 5px 10px; width: 100%; background-color: var(--nav-background); display: flex; align-items: center; justify-content: space-between; } nav * { margin: 0px 2px; } @media screen and (max-width: 1100px) { nav { padding: 15px 20px; flex-direction: column; align-items: start; } } nav .logo { display: flex; align-items: center; gap: 1px; color: white; font-size: 16px; position: relative; bottom: 6px; } nav .logo img { position: relative; width: 110px; top: 9px; } .set_location { padding: 10px 5px; } @media screen and (max-width: 1100px) { .set_location { order: 1; } } .set_location p:nth-child(1) { text-indent: 14px; } .search_box { position: relative; display: flex; height: 43px; width: 45vw; } @media screen and (min-width: 1700px) { .search_box { width: 70vw; } } @media screen and (min-width: 1650px) { .search_box { width: 60vw; } } @media screen and (min-width: 1600px) { .search_box { width: 50vw; } } @media screen and (max-width: 1420px) { .search_box { width: 350px; } } @media screen and (max-width: 1100px) { .search_box { margin: 10px 0px; height: 60px; width: 100%; } } .search_box div:nth-child(1) { position: absolute; height: 100%; width: 50px; font-size: 12px; color: #444; font-weight: 500; background-color: #ddd; display: flex; gap: 5px; align-items: center; justify-content: center; border-top-left-radius: 5px; border-bottom-left-radius: 5px; } .search_box input { padding-left: 60px; height: 100%; width: 100%; border: none; border-radius: 5px; outline: none; color: #111111; font-size: 15px; } .search_box input:focus { outline: 3px solid #ff822f; } .search_box .camera_search { position: absolute; right: 50px; height: 100%; width: 50px; opacity: 0.3; display: flex; align-items: center; justify-content: center; } .search_box .search { position: absolute; right: 0; height: 100%; width: 50px; background-color: var(--searchbox-color); display: flex; align-items: center; justify-content: center; border-top-right-radius: 5px; border-bottom-right-radius: 5px; } .search:hover { background-color: #ffa52f; cursor: pointer; } .choose_country { padding: 10px 5px; display: flex; gap: 5px; align-items: center; } @media screen and (max-width: 1100px) { .choose_country { display: none; } } .choose_country .flag { position: relative; top: 3.6px; } .choose_country select { height: 20px; background-color: transparent; border: none; font-weight: 600; font-size: 14px; color: #fff; outline: none; } .choose_country option { background-color: #fff; color: #000; } .ac_info { padding: 10px 5px; } @media screen and (max-width: 1100px) { .ac_info { display: none; } } .ac_info .first-line { color: #fff; font-weight: 400; } .ac_info i { opacity: 0.6; font-size: 10px; } .orders { padding: 10px 5px; } @media screen and (max-width: 1100px) { .orders { display: none; } } .orders .first-line { color: #fff; font-weight: 400; } .cart { padding: 10px 5px; display: flex; align-items: end; gap: 2px; } @media screen and (max-width: 1100px) { .cart { order: 2; } } .cart i { font-size: 30px; color: #fff; } /* ============== MENU BAR ============= */ .menuBar { padding: 5px 15px; background-color: #232f3e; display: flex; align-items: center; } @media screen and (max-width: 1160px) { .menuBar { padding: 10px 15px; } } @media screen and (max-width: 700px) { .menuBar { display: none; } } .menuBar ul { display: flex; align-items: center; gap: 10px; } @media screen and (max-width: 1160px) { .menuBar ul { gap: 6px; } } .menuBar i { font-size: 2.7vh; color: #fff; margin-right: 5px; } .menuBar a { font-size: 14px; text-decoration: none; color: #fff; display: flex; align-items: center; } @media screen and (max-width: 1160px) { .menuBar a { font-size: 13px; } } @media screen and (max-width: 1100px) { .menuBar a:nth-child(12), .menuBar a:nth-child(11), .menuBar a:nth-child(10), .menuBar a:nth-child(7), .menuBar a:nth-child(3) { display: none; } } .menuBar a:nth-child(1) { font-size: 15px; font-weight: 600; } .menuBar a:nth-child(9) select { font-size: 14px; width: 66px; border: none; background: transparent; color: #fff; } /* QUICK LINK */ .quickLink { padding: 5px 30px; border-bottom: 0.3vh solid #eee; display: flex; align-items: center; } @media screen and (max-width: 1100px) { .quickLink { display: none; } } .quickLink ul { margin-right: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; } .quickLink h2 { font-size: 18px; margin: 0px 20px; } .quickLink a { text-decoration: none; color: #111; font-size: 16px; } .quickLink a:hover { text-decoration: 2px rgb(255, 89, 0) underline; cursor: pointer; } .quickLink div { text-align: center; line-height: 1; } .quickLink div p:nth-child(1) { color: #6f91c4; font-size: 24px; } .quickLink div p:nth-child(2) { color: #000; font-size: 18px; } /* HERO PAGE */ .heroPage { height: 100vh; background: url("main-assets/Hero-Image.jpg"); background-size: cover; background-position: top; display: flex; align-items: end; } @media screen and (max-width: 800px) { .heroPage { height: 80vh; } } .linearShade { height: 47vh; width: 100%; background: linear-gradient(transparent, #e3e6e6); } /* CARDS AND PRODUCTS */ .cards { padding: 0vh 4vh; position: relative; bottom: 55vh; gap: 18px; height: 560px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; } @media screen and (min-width: 1750px) { .cards { margin: auto; max-width: 1700px; } } @media screen and (min-width: 1500px) { .cards :nth-child(9) { display: none; } } @media screen and (max-width: 1500px) { .cards { height: 1105px; grid-template-columns: 1fr 1fr 1fr; } } @media screen and (min-width: 1350px) and (max-width: 1500px) { .cards { max-width: 1350px; margin: auto; } } @media screen and (max-width: 1150px) { .cards { height: 1545px; grid-template-columns: 1fr 1fr; } .cards :nth-child(9) { display: none; } } @media screen and (min-width: 900px) and (max-width: 1150px) { .cards { max-width: 900px; margin: auto; } } @media screen and (max-width: 650px) { .cards { grid-template-columns: 1fr; height: 4104px; } } @media screen and (max-width: 530px) { .cards { height: 3345px; } } .card { padding: 20px; height: 460px; background-color: #fff; position: relative; display: flex; flex-direction: column; } @media screen and (max-width: 650px) { .card { padding: 10px 30px; height: 70vh; } } @media screen and (max-width: 530px) { .card { padding: 10px 30px; height: 60vh; } } .card a { position: absolute; bottom: 20px; text-decoration: none; font-size: 14px; font-weight: 500; color: #017184; } .card a:hover { --red: #c7511f; color: var(--red); text-decoration: 1px solid var(--red) underline; } .cardHeading { padding: 6px 0px; line-height: 1.5; font-size: 21px; font-weight: 700; } .cardContainer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .product { line-height: 1.2; } .product img { height: 78%; width: 100%; } .product p { text-decoration: none; font-size: 14px; color: #222; } .card:nth-child(1) img { width: 100%; } /* NEW USER */ .newUser { padding: 40px 0px 23px 0px; width: 100%; background: #fff; } .newcustomer { padding: 30px 0px 16px 0px; width: 100%; border-radius: 1vh; border: 0.1vh solid #ddd; display: flex; flex-direction: column; align-items: center; justify-content: center; } .newcustomer div { line-height: 5vh; font-size: 15px; } .newcustomer button { font-weight: 600; font-size: 12px; padding: 6px 126px; border: 0.3vh solid #b99401; border-radius: 1vh; background: linear-gradient(#ffe39f 20%, #fec52e); } .newcustomer button:hover { cursor: pointer; } .newcustomer p { padding: 5px 0px; font-size: 12px; } .newcustomer a { text-decoration: none; color: #017184; } /* BACK TO TOP */ .backTop { height: 52px; background-color: #37475a; display: flex; align-items: center; justify-content: center; } .backTop:hover { background: #495768; } .backTop i, .backTop a:nth-child(3) { display: none; } .backTop a { color: #eee; font-size: 13px; font-weight: 500; text-decoration: none; } /* FOOTER */ .socialHandle { width: 100%; background: #232f3e; } .sh-part-1 { padding: 36px 0px; max-width: 80vw; margin: auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; } @media screen and (min-width: 1500px) { .sh-part-1 { max-width: 1300px; } } @media screen and (max-width: 1150px) { .sh-part-1 { max-width: 65vw; grid-template-columns: 2fr 1fr; } } @media screen and (max-width: 960px) { .sh-part-1 { max-width: 70vw; } } @media screen and (max-width: 770px) { .sh-part-1 { grid-template-columns: 3fr 2fr; max-width: 75vw; } } .sh-part-1 ul li { font-size: 14px; line-height: 2; list-style-type: none; color: #dddddd; cursor: pointer; } .sh-part-1 ul li:hover { text-decoration: 1px underline; } .sh-part-1 ul li:nth-child(1) { font-weight: 700; font-size: 16px; color: #ffffff; } .sh-part-1 ul li:nth-child(1) { text-decoration: none; } .sh-part-2 { padding: 10px 0px 30px 0px; width: 100%; border-top: 0.1vh solid #666; } .foot-logo { padding: 30px 0px; max-width: 70vw; margin: auto; display: flex; align-items: center; justify-content: center; gap: 92px; } .foot-logo img { position: relative; top: 1.5vh; height: 36px; } .foot-logo button { padding: 7px 10px; color: #ddd; font-size: 13px; background: transparent; border: 0.1vh solid #ddd; border-radius: 3px; display: flex; align-items: center; gap: 10px; } .foot-logo button i { opacity: 0.6; } .locations { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 1.9vh; font-size: 12px; color: #eee; line-height: 0.5; padding: 2vh 19vh; max-width: 80vw; margin: auto; } @media screen and (min-width: 1500px) { .locations { max-width: 1300px; } } @media screen and (max-width: 1400px) { .locations { padding: 2vh 8vh; max-width: 90vw; } } .locations span:hover { text-decoration: 1px underline; cursor: pointer; } footer { background: #131a22; } .footer-part-1 { max-width: 66vw; margin: auto; padding: 24px 0px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; } @media screen and (min-width: 1500px) { .footer-part-1 { max-width: 1300px; } } @media screen and (max-width: 1080px) { .footer-part-1 { grid-template-columns: 1fr 1fr; max-width: 47vw; } } @media screen and (max-width: 890px) { .footer-part-1 { max-width: 52vw; } } @media screen and (max-width: 800px) { .footer-part-1 { max-width: 56vw; grid-template-columns: 2fr 3fr; } } @media screen and (max-width: 730px) { .footer-part-1 { max-width: 60vw; } } @media screen and (max-width: 690px) { .footer-part-1 { max-width: 65vw; } } @media screen and (max-width: 550px) { .footer-part-1 { max-width: 70vw; } } @media screen and (max-width: 500px) { .footer-part-1 { max-width: 80vw; } } @media screen and (max-width: 450px) { .footer-part-1 { max-width: 100vw; padding: 24px 30px; } } .footer-part-1 ul li:hover { text-decoration: 0.2vh #fff underline; text-underline-offset: 3px; cursor: pointer; } .footer-part-1 ul li { line-height: 1.4; font-size: 12px; list-style-type: none; color: #777; font-weight: 600; } .footer-part-1 ul :nth-child(1) { font-weight: 500; color: #fff; } .footer-part-1 ul li:nth-child(2):hover, .footer-part-1 ul li:nth-child(3):hover { text-decoration: 0.2vh #777 underline; } .footer-part-2 { padding: 10px 0px 40px 0px; color: #fff; font-size: 12px; height: 40%; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } .footer-part-2 p:nth-child(1) { display: flex; gap: 5vh; } .footer-part-2 a { color: #fff; text-decoration: none; } .footer-part-2 a:hover { text-decoration: underline; }
Summary:
Wohoo!! Guys, we together did it; we created our own personal Amazon clone website frontend part. But you know most of these e-commerce platforms are built on the structure of HTML only and other modern tools for complete functionality of the website.
If you want to learn more about different tools and technologies that most e-commerce platforms use to build their websites, then comment down “learn more” and we will explain to you in detail all the tools and technologies used for creating a full fledged website, but for today we created our own Amazon clone website using simple HTML and CSS.
I hope you liked it, and if you have any doubt, feel free to ask!!