-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloyalty.html
71 lines (64 loc) · 2.98 KB
/
loyalty.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Join the Homeboy Loyalty Program and earn rewards with every visit.">
<title>Loyalty Program - Homeboy Coffee Shop</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/loyalty.css">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<body class="bg-gray-100 font-sans">
<!-- Dynamic Header -->
<div id="header"></div>
<!-- Main Content -->
<main class="container mx-auto px-6 py-12">
<h1 class="text-4xl font-bold text-center mb-8">Loyalty Program</h1>
<p class="text-center text-gray-700 mb-12">Get rewarded for every coffee and treat you enjoy at Homeboy Coffee Shop. Join our loyalty program today!</p>
<!-- Loyalty Benefits -->
<section id="loyalty-benefits" class="space-y-8">
<h2 class="text-2xl font-semibold text-center mb-4">Why Join?</h2>
<ul class="benefits-list max-w-2xl mx-auto text-gray-700 space-y-4">
<!-- Benefits dynamically populated -->
</ul>
</section>
<!-- How It Works -->
<section class="py-12 bg-gray-50">
<h2 class="text-2xl font-semibold text-center mb-6">How It Works</h2>
<div class="steps grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Steps dynamically populated -->
</div>
</section>
<!-- Sign-Up Form -->
<section class="py-12">
<h2 class="text-2xl font-semibold text-center mb-6">Sign Up</h2>
<form id="signup-form" class="max-w-lg mx-auto space-y-6">
<div>
<label for="name" class="block font-semibold text-gray-700">Full Name</label>
<input type="text" id="name" class="w-full p-3 border rounded" placeholder="Your full name" required>
</div>
<div>
<label for="email" class="block font-semibold text-gray-700">Email Address</label>
<input type="email" id="email" class="w-full p-3 border rounded" placeholder="Your email" required>
</div>
<button type="submit" class="bg-blue-500 text-white py-3 px-6 rounded hover:bg-blue-600">Join Now</button>
</form>
</section>
</main>
<!-- Dynamic Footer -->
<div id="footer"></div>
<!-- JavaScript -->
<script src="js/loyalty.js"></script>
<script>
// Load Header
fetch('header')
.then(response => response.text())
.then(data => document.getElementById('header').innerHTML = data);
// Load Footer
fetch('footer')
.then(response => response.text())
.then(data => document.getElementById('footer').innerHTML = data);
</script>
</body>
</html>