forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exclusivedeals.html
214 lines (200 loc) · 11 KB
/
exclusivedeals.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exclusive Travel Deals</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="exclusivedeals.css" rel="stylesheet">
<style>
/* circle styles */
.circle {
height: 24px;
width: 24px;
border-radius: 24px;
background-color: rgb(255, 0, 0);
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
}
</style>
</head>
<body>
<div class="container-fluid py-5" style="background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80'); background-size: cover; background-position: center;">
<div class="container">
<h1 class="text-center text-white mb-5">Exclusive Travel Deals</h1>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Tropical Paradise Getaway, 30% off">
<img src="https://images.unsplash.com/photo-1499793983690-e29da59ef1c2" class="card-img-top" alt="Tropical beach">
<div class="card-body">
<h5 class="card-title">Tropical Paradise Getaway</h5>
<p class="card-text">Escape to a sun-soaked beach paradise with our exclusive package.</p>
<p class="card-text"><small class="text-muted">30% off</small></p>
<button class="btn btn-primary">View Deal 🏝️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Mountain Adventure, 25% off">
<img src="https://images.unsplash.com/photo-1464822759023-fed622ff2c3b" class="card-img-top" alt="Mountain landscape">
<div class="card-body">
<h5 class="card-title">Mountain Adventure</h5>
<p class="card-text">Embark on a thrilling mountain expedition with breathtaking views.</p>
<p class="card-text"><small class="text-muted">25% off</small></p>
<button class="btn btn-primary">View Deal 🏔️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Cultural City Tour, 20% off">
<img src="https://images.unsplash.com/photo-1502602898657-3e91760cbb34" class="card-img-top" alt="City skyline">
<div class="card-body">
<h5 class="card-title">Cultural City Tour</h5>
<p class="card-text">Immerse yourself in the rich history and culture of iconic cities.</p>
<p class="card-text"><small class="text-muted">20% off</small></p>
<button class="btn btn-primary">View Deal 🏙️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Safari Adventure, 35% off">
<img src="https://images.unsplash.com/photo-1516426122078-c23e76319801" class="card-img-top" alt="Safari landscape">
<div class="card-body">
<h5 class="card-title">Safari Adventure</h5>
<p class="card-text">Experience the thrill of wildlife on an unforgettable safari tour.</p>
<p class="card-text"><small class="text-muted">35% off</small></p>
<button class="btn btn-primary">View Deal 🦁</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Luxury Cruise, 15% off">
<img src="https://images.unsplash.com/photo-1548574505-5e239809ee19" class="card-img-top" alt="Cruise ship">
<div class="card-body">
<h5 class="card-title">Luxury Cruise</h5>
<p class="card-text">Sail in style with our premium cruise package to exotic destinations.</p>
<p class="card-text"><small class="text-muted">15% off</small></p>
<button class="btn btn-primary">View Deal 🚢</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Ski Resort Package, 30% off">
<img src="https://images.unsplash.com/photo-1551524559-8af4e6624178" class="card-img-top" alt="Ski resort">
<div class="card-body">
<h5 class="card-title">Ski Resort Package</h5>
<p class="card-text">Hit the slopes with our all-inclusive ski resort vacation package.</p>
<p class="card-text"><small class="text-muted">30% off</small></p>
<button class="btn btn-primary">View Deal ⛷️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Historical Tour, 25% off">
<img src="https://images.unsplash.com/photo-1601987177370-593d00eafbed" class="card-img-top" alt="Ancient ruins">
<div class="card-body">
<h5 class="card-title">Historical Tour</h5>
<p class="card-text">Journey through time with our guided historical landmark tours.</p>
<p class="card-text"><small class="text-muted">25% off</small></p>
<button class="btn btn-primary">View Deal 🏛️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Island Hopping Adventure, 20% off">
<img src="https://images.unsplash.com/photo-1559128010-7c1ad6e1b6a5" class="card-img-top" alt="Tropical islands">
<div class="card-body">
<h5 class="card-title">Island Hopping Adventure</h5>
<p class="card-text">Explore multiple tropical paradise islands in one amazing trip.</p>
<p class="card-text"><small class="text-muted">20% off</small></p>
<button class="btn btn-primary">View Deal 🏝️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Culinary Tour, 15% off">
<img src="https://images.unsplash.com/photo-1414235077428-338989a2e8c0" class="card-img-top" alt="Gourmet food">
<div class="card-body">
<h5 class="card-title">Culinary Tour</h5>
<p class="card-text">Savor exquisite cuisines from around the world on our food-focused tour.</p>
<p class="card-text"><small class="text-muted">15% off</small></p>
<button class="btn btn-primary">View Deal 🍽️</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 shadow-sm deal-card" tabindex="0" aria-label="Wellness Retreat, 40% off">
<img src="https://images.unsplash.com/photo-1540555700478-4be289fbecef" class="card-img-top" alt="Spa retreat">
<div class="card-body">
<h5 class="card-title">Wellness Retreat</h5>
<p class="card-text">Rejuvenate your mind and body with our luxurious spa and wellness package.</p>
<p class="card-text"><small class="text-muted">40% off</small></p>
<button class="btn btn-primary">View Deal 🧘</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Circles -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<script>
// coordinates for the cursor :
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
const colors = [
"#fc5720", "#fc6532", "#fc6532","#fd8b65", "#d5585c", "#fac3b1", "#f4d5cb", "#fefefe", "#fefefe", "#cdf2c5", "#b2eca5", "#95e283", "#7dda68", "#4adc2d", "#69d451", "#54c939", "#34b916", "#28b309", "#1e9c02",
];
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
// update the coordinates when the mouse moves:
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
// animation function to move the circles:
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
</script>
</body>
</html>