<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kabeera Mobile - Referral Program</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
color: #333;
line-height: 1.6;
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
header {
text-align: center;
padding: 30px 0;
color: white;
}
.logo {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.tagline {
font-size: 1.2rem;
opacity: 0.9;
}
.main-content {
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-top: 20px;
}
.card {
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
padding: 30px;
flex: 1;
min-width: 300px;
}
.card-title {
font-size: 1.5rem;
margin-bottom: 20px;
color: #2575fc;
border-bottom: 2px solid #f0f0f0;
padding-bottom: 10px;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}
input, select {
width: 100%;
padding: 12px 15px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s;
}
input:focus, select:focus {
border-color: #2575fc;
box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
outline: none;
}
.btn {
background: #2575fc;
color: white;
border: none;
padding: 14px 20px;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
width: 100%;
}
.btn:hover {
background: #1a68e8;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.coupon-display {
text-align: center;
padding: 20px;
background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
border-radius: 10px;
margin-top: 20px;
display: none;
}
.coupon-code {
font-size: 2rem;
font-weight: 700;
letter-spacing: 3px;
margin: 15px 0;
color: #d63031;
}
.referral-steps {
list-style-type: none;
margin: 20px 0;
}
.referral-steps li {
padding: 12px 0;
border-bottom: 1px solid #f0f0f0;
display: flex;
align-items: center;
}
.referral-steps li:before {
content: "✓";
color: #2575fc;
font-weight: bold;
margin-right: 10px;
font-size: 1.2rem;
}
.gifts {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 20px;
}
.gift-item {
flex: 1;
min-width: 140px;
text-align: center;
padding: 15px;
background: #f8f9fa;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.gift-icon {
font-size: 2rem;
margin-bottom: 10px;
}
.contact-info {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #f0f0f0;
}
.contact-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.contact-icon {
margin-right: 10px;
color: #2575fc;
font-size: 1.2rem;
}
footer {
text-align: center;
margin-top: 40px;
color: white;
opacity: 0.8;
padding: 20px 0;
}
.invite-friends {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 20px;
border-radius: 15px;
margin-top: 30px;
color: white;
}
.social-share {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 15px;
}
.social-btn {
padding: 10px 20px;
background: white;
color: #2575fc;
border-radius: 50px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.social-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
.main-content {
flex-direction: column;
}
.logo {
font-size: 2rem;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1 class="logo">Kabeera Mobile</h1>
<p class="tagline">All Mobiles, Assembly & Accessories Available</p>
</header>
<div class="main-content">
<div class="card">
<h2 class="card-title">Get Your Referral Coupon</h2>
<p>Fill in your details to receive a unique referral coupon. Share it with friends and earn gifts when they purchase from Kabeera Mobile!</p>
<form id="referralForm">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" id="name" required placeholder="Enter your full name">
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" required placeholder="Enter your phone number">
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" placeholder="Enter your email (optional)">
</div>
<div class="form-group">
<label for="location">City</label>
<input type="text" id="location" required placeholder="Enter your city">
</div>
<button type="submit" class="btn">Generate My Coupon</button>
</form>
<div id="couponDisplay" class="coupon-display">
<h3>Your Referral Coupon</h3>
<div id="couponCode" class="coupon-code">KAB-XXXX-XXXX</div>
<p>Share this code with your friends. When they use it during purchase, you'll receive a gift!</p>
<button id="shareBtn" class="btn" style="margin-top: 15px; background: #d63031;">Share with Friends</button>
</div>
</div>
<div class="card">
<h2 class="card-title">How It Works</h2>
<ul class="referral-steps">
<li>Submit your information to get a unique coupon code</li>
<li>Share your coupon with friends and family</li>
<li>When they visit Kabeera Mobile and make a purchase using your coupon</li>
<li>You receive a special gift as a thank you!</li>
<li>The more friends you refer, the more gifts you can earn</li>
</ul>
<h3 style="margin-top: 30px;">Gifts You Can Earn</h3>
<div class="gifts">
<div class="gift-item">
<div class="gift-icon">🎧</div>
<div>Wireless Earphones</div>
</div>
<div class="gift-item">
<div class="gift-icon">🔋</div>
<div>Power Bank</div>
</div>
<div class="gift-item">
<div class="gift-icon">📱</div>
<div>Mobile Cover</div>
</div>
<div class="gift-item">
<div class="gift-icon">⌚</div>
<div>Smart Band</div>
</div>
</div>
<div class="contact-info">
<h3>Visit Our Store</h3>
<div class="contact-item">
<span class="contact-icon">📍</span>
<span>Chilman Chowk Mandla, Kabeera Fashion ke side mei, Mandla</span>
</div>
<div class="contact-item">
<span class="contact-icon">📞</span>
<span>7415100734</span>
</div>
<div class="contact-item">
<span class="contact-icon">⏰</span>
<span>Open: 10:00 AM - 9:00 PM</span>
</div>
</div>
</div>
</div>
<div class="invite-friends">
<h2 style="text-align: center; margin-bottom: 15px;">Invite Friends & Earn More Gifts!</h2>
<p style="text-align: center;">Share your referral code with friends and family. When they purchase any mobile using your code, you both get rewards!</p>
<div class="social-share">
<div class="social-btn">WhatsApp</div>
<div class="social-btn">Facebook</div>
<div class="social-btn">Instagram</div>
<div class="social-btn">Share Link</div>
</div>
</div>
<footer>
<p>Kabeera Mobile © 2023 - All Rights Reserved</p>
<p>Chilman Chowk Mandla | Phone: 7415100734</p>
</footer>
</div>
<script>
document.getElementById('referralForm').addEventListener('submit', function(e) {
e.preventDefault();
// Get form values
const name = document.getElementById('name').value;
const phone = document.getElementById('phone').value;
const email = document.getElementById('email').value;
const location = document.getElementById('location').value;
// Generate a unique coupon code
const couponCode = 'KAB-' + Math.random().toString(36).substr(2, 6).toUpperCase();
// Display the coupon
document.getElementById('couponCode').textContent = couponCode;
document.getElementById('couponDisplay').style.display = 'block';
// Store the coupon data (in a real application, this would be sent to a server)
const couponData = {
name: name,
phone: phone,
email: email,
location: location,
coupon: couponCode,
date: new Date().toISOString(),
referrals: 0,
giftsEarned: []
};
// Save to localStorage (for demo purposes)
let coupons = JSON.parse(localStorage.getItem('kabeeraCoupons')) || [];
coupons.push(couponData);
localStorage.setItem('kabeeraCoupons', JSON.stringify(coupons));
// Scroll to coupon
document.getElementById('couponDisplay').scrollIntoView({ behavior: 'smooth' });
// Show success message
alert('Congratulations! Your referral coupon has been generated. Share it with friends to earn gifts!');
});
document.getElementById('shareBtn').addEventListener('click', function() {
const couponCode = document.getElementById('couponCode').textContent;
const shareText = `Hey! Use my referral code ${couponCode} at Kabeera Mobile in Mandla and get special offers. I'll also get a gift when you purchase! Visit: Chilman Chowk, Kabeera Fashion ke side mei. Phone: 7415100734`;
// For demo purposes, we'll just copy to clipboard
navigator.clipboard.writeText(shareText).then(function() {
alert('Referral message copied to clipboard! You can now share it with your friends.');
}, function() {
alert('Referral message: ' + shareText);
});
});
// Social share buttons
document.querySelectorAll('.social-btn').forEach(button => {
button.addEventListener('click', function() {
const couponCode = document.getElementById('couponCode').textContent;
const platform = this.textContent;
let message = `Use my referral code ${couponCode} at Kabeera Mobile and get special offers!`;
if(platform === 'WhatsApp') {
window.open(`https://wa.me/?text=${encodeURIComponent(message)}`, '_blank');
} else if(platform === 'Facebook') {
window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window.location.href)}"e=${encodeURIComponent(message)}`, '_blank');
} else if(platform === 'Instagram') {
alert('Share this on Instagram: ' + message);
} else {
// For "Share Link"
if(navigator.share) {
navigator.share({
title: 'Kabeera Mobile Referral',
text: message,
url: window.location.href
});
} else {
navigator.clipboard.writeText(window.location.href);
alert('Link copied to clipboard!');
}
}
});
});
</script>
</body>
</html>