forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
romantic-gateway.html
216 lines (196 loc) · 8.77 KB
/
romantic-gateway.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
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Romantic Getaway Planner</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./romantic-gateway.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>
<header class="bg-light py-3">
<div class="container">
<h1 class="text-center text-primary">💑 Romantic Getaway Planner</h1>
</div>
</header>
<main class="container my-4">
<section id="search" class="mb-5">
<h2 class="mb-3">🔍 Find Your Perfect Destination</h2>
<form>
<div class="row g-3">
<div class="col-md-4">
<input type="text" class="form-control" placeholder="Location" aria-label="Location">
</div>
<div class="col-md-3">
<select class="form-select" aria-label="Destination type">
<option selected>Destination type</option>
<option value="1">Beach</option>
<option value="2">Mountains</option>
<option value="3">Countryside</option>
</select>
</div>
<div class="col-md-3">
<select class="form-select" aria-label="Activities">
<option selected>Activities</option>
<option value="1">Spa</option>
<option value="2">Adventure</option>
<option value="3">Sightseeing</option>
</select>
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-primary w-100">Search</button>
</div>
</div>
</form>
</section>
<section id="map" class="mb-5">
<h2 class="mb-3">🗺️ Explore Romantic Destinations</h2>
<div class="ratio ratio-21x9">
<img src="https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" class="card-img-top" alt="Interactive Map">
</div>
</section>
<section id="itineraries" class="mb-5">
<h2 class="mb-3">📅 Romantic Itineraries</h2>
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card h-100">
<img src="https://images.unsplash.com/photo-1506929562872-bb421503ef21?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1368&q=80" class="card-img-top" alt="Beach Getaway">
<div class="card-body">
<h5 class="card-title">Tropical Paradise</h5>
<p class="card-text">Experience a week of sun, sand, and romance.</p>
<button class="btn btn-outline-primary">View Details</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" class="card-img-top" alt="City Escape">
<div class="card-body">
<h5 class="card-title">City of Love</h5>
<p class="card-text">Discover romance in the heart of Paris.</p>
<button class="btn btn-outline-primary">View Details</button>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://images.unsplash.com/photo-1517760444937-f6397edcbbcd?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" class="card-img-top" alt="Mountain Retreat">
<div class="card-body">
<h5 class="card-title">Mountain Retreat</h5>
<p class="card-text">Cozy up in a cabin with breathtaking views.</p>
<button class="btn btn-outline-primary">View Details</button>
</div>
</div>
</div>
</div>
</section>
<section id="booking" class="mb-5">
<h2 class="mb-3">🏨 Book Your Getaway</h2>
<form>
<div class="row g-3">
<div class="col-md-6">
<label for="checkIn" class="form-label">Check-in Date</label>
<input type="date" class="form-control" id="checkIn">
</div>
<div class="col-md-6">
<label for="checkOut" class="form-label">Check-out Date</label>
<input type="date" class="form-control" id="checkOut">
</div>
<div class="col-md-6">
<label for="guests" class="form-label">Number of Guests</label>
<input type="number" class="form-control" id="guests" min="1" max="2">
</div>
<div class="col-md-6">
<label for="budget" class="form-label">Budget</label>
<select class="form-select" id="budget">
<option selected>Choose...</option>
<option value="1">$0 - $500</option>
<option value="2">$501 - $1000</option>
<option value="3">$1001+</option>
</select>
</div>
<div class="col-12">
<button type="submit" class="btn btn-primary">Book Now</button>
</div>
</div>
</form>
</section>
</main>
<footer class="bg-light py-3 mt-5">
<div class="container text-center">
<p>© 2023 Romantic Getaway Planner. All rights reserved.</p>
</div>
</footer>
<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>