Nadzine Emporium


<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Nadzine Emporium</title> <style> body { font-family: Arial, sans-serif; background-color: darkgoldenrod; color: darkgoldenrod; margin: 0; padding: 0; }
header {
  background-color: #222;
  padding: 10px 20px;
  position: relative;
}

.logo {
  position: absolute;
  top: 10px;
  left: 20px;
}

.logo img {
  height: 80px;
}

.title {
  text-align: center;
}

.title h1 {
  margin: 0;
  font-size: 2.2em;
  color: darkgoldenrod;
}

nav {
  text-align: center;
  margin-top: 15px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li a {
  color: darkgoldenrod;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

#hero {
  text-align: center;
  padding: 30px 20px;
}

#hero img {
  max-width: 60%;
  height: auto;
}

#hero button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: white;
  border: 2px solid darkgoldenrod;
  border-radius: 5px;
  color: darkgoldenrod;
  font-weight: bold;
  cursor: pointer;
}

#hero button:hover {
  background-color: darkgoldenrod;
  color: white;
}
{
  font-family: Arial, sans-serif;
  padding: 20px;
}

.product {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 15px;
  max-width: 300px;
}

.product button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

#cartIcon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #f39c12;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
}

.checkout-button {
  background: #2980b9;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

#cartItems div {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}
{
  font-family: Arial, sans-serif;
  padding: 20px;
}

.product {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 15px;
  max-width: 300px;
}

.product button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

#cartIcon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #f39c12;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
}

.checkout-button {
  background: #2980b9;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

#cartItems div {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

#products {
  padding: 40px 20px;
  text-align: center;
  color: black;
}

.search-bar {
  margin: 20px 0;
  text-align: center;
}

.product-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.product {
  background-color: #444;
  margin: 10px;
  padding: 20px;
  border-radius: 8px;
  width: 220px;
  transition: transform 0.3s;
  color: black;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.product button {
  margin-top: 10px;
  background-color: white;
  border: 2px solid darkgoldenrod;
  color: darkgoldenrod;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.product button:hover {
  background-color: darkgoldenrod;
  color: white;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px;
}

footer a {
  color: darkgoldenrod;
  text-decoration: none;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

#contact {
padding: 10px 5px;
text-align: center;
color: black;
background-color: white; /* Darker background for contact section */
}
.modal-content {
background-color: #fff;
margin: auto;
padding: 20px;
width: 90%;
max-width: 500px;
border-radius: 10px;
color: black;
}

.close {
  color: red;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

input {
  width: 100%;
  padding: 8px;
  margin: 5px 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.cart-item {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.checkout-button {
  background-color: darkgoldenrod;
  color: white;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
</style> </head> <body> <header> <div class="logo"> <img src="https://assets.onecompiler.app/43fk6354n/43fk5zx9b/Image%20(4).jpg" alt="Logo" /> </div> <div class="title"> <h1>Nadzine Emporium</h1> </div> <nav> <ul> <li><a href="#home">Home</a></li> <li><a href="#products">Products</a></li> <li><a href="#about">About Us</a></li> <li><a href="#contact">Contact</a></li> </ul> </nav> </header> <section id="hero"> <img src="https://assets.onecompiler.app/43fk6354n/43fk5zx9b/A-variety-of-popular-perfume-gift-sets-displayed-on-a-luxe-vanity.jpg" /> <button onclick="location.href='#products'">Shop Now</button> </section> <section id="products"> <h2>Featured Products</h2> <div class="search-bar"> <input type="text" id="searchInput" placeholder="Search products..." onkeyup="filterProducts()"> </div> <div class="product-grid" id="productGrid"> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fk5zx9b/images%20(6).jpg"> <h3>Arabic top perfumes</h3> <p>ksh 2500</p> <button onclick="addToCart('Arabic top perfumes', 2500)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fk5zx9b/A-variety-of-popular-perfume-gift-sets-displayed-on-a-luxe-vanity.jpg"> <h3>Perfumes</h3> <p>ksh 1000</p> <button onclick="addToCart('Perfumes', 1000)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/71vVphLRVAL.jpg"> <h3>Air Freshener</h3> <p>ksh 600</p> <button onclick="addToCart('Air Freshener', 600)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/s-l400.jpg"> <h3>Body Spray</h3> <p>ksh 500</p> <button onclick="addToCart('Body Spray', 500)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/Hfdcba4a35fec4cc7b242b159f711f997n.jpg_720x720q50.avif"> <h3>Body Mist</h3> <p>ksh 500</p> <button onclick="addToCart('Body Mist', 500)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/H75f2da1311a04705a1105e2da6c1117bS.jpg_720x720q50.avif"> <h3>Body Oil</h3> <p>ksh 150</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/images%20(10).jpg"> <h3>Body cream / fitna</h3> <p>ksh 100</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/s4441874652300892(1).png"> <h3>Misk</h3> <p>ksh 300</p> <button onclick="addToCart('Ring', 250)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fpbqent/53dad538-17b2-4f27-beeb-e0e58a47b837.webp"> <h3>Oudh</h3> <p>ksh 1000</p> <button onclick="addToCart('Ring', 250)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fk5zx9b/3049e16814c13.jpg" alt="Chain"> <h3>Chain</h3> <p>ksh 200</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/71yA1X-NfiL._AC_SL1500_.jpg"> <h3>Full Set</h3> <p>ksh 500</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/SG-Family-1.webp"> <h3>Heavy Gold & Silver set</h3> <p>ksh 2000</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/images%20(8).jpg"> <h3>Mascara</h3> <p>ksh 200</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/images%20(7).jpg"> <h3>Lip Gloss</h3> <p>ksh 150</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/Original-Derma-Beauty-12-PK-Face-Mask-Skin-Care-Face-Masks-Skincare-Facial-Masks-for-Women-Men_9be8d3f1-ac1b-4f9e-ad3b-bbfc799ff21e.76205b79c3bea8ec905b766b.webp"> <h3>Face mask</h3> <p>ksh 250</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/1679186116_max.jpg"> <h3>Green Tea Mask</h3> <p>ksh 800</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/images%20(9).jpg"> <h3>Eye & Lip Mask</h3> <p>ksh 100</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> <div class="product"> <img src="https://assets.onecompiler.app/43fk6354n/43fp9juru/71ia7rNAvbL._SL1500_.jpg"> <h3>Rice Milk Soap</h3> <p>ksh 150</p> <button onclick="addToCart('Chain', 200)">Add to Cart</button> </div> </div> </div> </section> <section id="contact"> <h2>Contact Us</h2> <p>Email: <a href="mailto:[email protected]" style="color: darkgoldenrod;">[email protected]</a></p> <p>Location: Nairobi, Kenya</p> <p>For more info and questions, WhatsApp us on <a href="https://wa.me/254101338152" style="color: darkgoldenrod;">+254 101 338 152</a></p> <h3>Follow us on social media:</h3> <ul style="list-style-type: none; padding: 0;"> <li><a href="https://www.tiktok.com/@nadzine.emporium" style="color: darkgoldenrod;">TikTok: @nadzine.emporium</a></li> <li><a href="https://www.instagram.com/nadzine.emporium_" style="color: darkgoldenrod;">Instagram: @nadzine.emporium_</a></li> </ul> </section> <footer> <p>&copy; 2025 Nadzine Emporium. Elegance in every drop.</p> </footer> <!-- Cart Icon --> <div id="cartIcon" onclick="openCart()"> 🛒 <span id="cartCount">0</span> </div> <!-- Cart Modal --> <div id="cartModal" class="modal"> <div class="modal-content"> <span class="close" onclick="closeCart()">&times;</span> <h2>Your Cart</h2> <div id="cartItems"></div> <h3>Total: Ksh <span id="cartTotal">0</span></h3> <h4>Customer Info</h4> <input type="text" id="name" placeholder="Full Name" required> <input type="text" id="contact" placeholder="Contact Number" required> <input type="text" id="location" placeholder="Delivery Location or type 'Pick up'" required> <button class="checkout-button" onclick="checkout()">Finish Adding Items and Pay</button> </div> </div> <script> let cart = []; function addToCart(productName, price) { cart.push({ name: productName, price }); updateCartDisplay(); } function updateCartDisplay() { const cartItems = document.getElementById("cartItems"); const cartTotal = document.getElementById("cartTotal"); const cartCount = document.getElementById("cartCount"); cartItems.innerHTML = ""; let total = 0; cart.forEach(item => { const div = document.createElement("div"); div.textContent = `${item.name} - Ksh ${item.price}`; cartItems.appendChild(div); total += item.price; }); cartTotal.textContent = total; cartCount.textContent = cart.length; } function openCart() { document.getElementById("cartModal").style.display = "block"; } function closeCart() { document.getElementById("cartModal").style.display = "none"; } function checkout() { const name = document.getElementById("name").value; const contact = document.getElementById("contact").value; const location = document.getElementById("location").value; if (!name || !contact || !location) { alert("Please fill in all customer details."); return; } alert(`Order placed!\nName: ${name}\nContact: ${contact}\nLocation: ${location}\nTotal: Ksh ${document.getElementById("cartTotal").textContent}`); cart = []; updateCartDisplay(); closeCart(); } </script> </div> <script> let cart = []; function addToCart(product, price) { cart.push({ product, price }); showCart(); } function showCart() { let modal = document.getElementById("cartModal"); let cartItems = document.getElementById("cartItems"); let total = 0; cartItems.innerHTML = ""; cart.forEach(item => { cartItems.innerHTML += `<div class="cart-item">${item.product} - Ksh ${item.price}</div>`; total += item.price; }); document.getElementById("cartTotal").textContent = total; modal.style.display = "block"; } function closeCart() { document.getElementById("cartModal").style.display = "none"; } function checkout() { const name = document.getElementById("name").value; const contact = document.getElementById("contact").value; const location = document.getElementById("location").value; if (!name || !contact || !location) { alert("Please fill all details."); return; } let total = cart.reduce((sum, item) => sum + item.price, 0); alert(`Thank you, ${name}!\n\nPlease pay Ksh ${total} to:\n\nPaybill: 714777\nAccount: 0797194193\n\nThen reply on WhatsApp or our IG page with the payment confirmation.`); cart = []; // Clear cart after checkout closeCart(); // Close cart modal } function filterProducts() { const input = document.getElementById('searchInput').value.toLowerCase(); const products = document.querySelectorAll('.product'); products.forEach(product => { const title = product.querySelector('h3').textContent.toLowerCase(); if (title.includes(input)) { product.style.display = 'block'; // Show matching product } else { product.style.display = 'none'; // Hide non-matching product } }); } window.onclick = function(event) { const modal = document.getElementById("cartModal"); if (event.target == modal) { closeCart(); } }; </script> </body> </html>