Hello friends, in this blog you will know know how to create a simple and minimal homepage design for a coffee shop. For the demonstration purpose I have gave it a name of Coffee-Mania which is an imaginary name. This blog contains the source code for the tutorial I made in YouTube for this website homepage. First of all, let me clear that this source is completely free to use and anyone can use it without any of copyright issues. You can copy and paste the code from this blog or just download the source code file from my GitHub repository whose link is given at the end of this blog post. This homepage design consist of minimal and clean design.
In this simple coffee shop homepage design, I have use fonts from google fonts. This is just a homepage and isn't responsive. You can always edit the source code in order to create your own product and make it responsive. This is just a simple homepage design which contains an image as a background some nav-links and a contact button with animated hover effect.
In order to use this homepage design in your own project, you just need to follow some steps mentioned below.
Step 1:
<!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>Coffee Mania - The Best Coffee Ever!</title><link rel="preconnect" href="https://fonts.gstatic.com" /><link rel="stylesheet" href="./style.css"></head><body><nav><div class="logo"><h3>Coffee Mania</h3></div><ul class="nav-list"><li class="na-items"><a href="#">Home</a></li><li class="na-items"><a href="#">About</a></li><li class="na-items"><a href="#">Services</a></li><li class="na-items"><a href="#">Contact</a></li></ul></nav><section><h3 class="main-text">Go Get Some Coffee!</h3><p class="body-text">The Coffee Never Got So Much Better Than Today! Just Grab A Cup Of Coffee With Coffee Mania and Be Creative.</p><button class="mail">Get Coffee</button></section></body></html>{codeBox}
Step 2:
*{padding: 0%;margin: 0%;box-sizing: border-box;}body{height: 100vh;background-image: url(./bg.jpg);background-size: cover;background-position-y: 70%;font-family: sans-serif;color: #5a5648;}nav{display: flex;margin-top: 2%;}.logo{width: 30%;margin-left: 10%;font-size: 33px;}.nav-list{display: flex;margin-left: 7%;}.na-items{list-style: none;margin-left: 20%;font-size: 24px;}.na-items a{text-decoration: none;color: #5a5648;transition: color .4s;}.na-items a:hover{color: rgb(0, 0, 0);}.main-text{font: 36px;margin-left: 50%;margin-top: 15%;letter-spacing: 8px;}.body-text{font-size: 16px;width: 36%;margin-left: 50%;letter-spacing: 8px;}.mail{background-color: transparent;outline: none;border: 4px solid #706c5f;width: 90px;height: 40px;border-radius: 10px;margin-left: 79%;margin-top: 4%;transition: .5s;}.mail:hover{background-color: #706c5f;color: aliceblue;}{codeBox}