forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Travel-Itineraries.html
249 lines (231 loc) · 11.2 KB
/
Travel-Itineraries.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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Family Vacation Explorer</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="index.css">
<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-4">
<h1 class="text-center mb-4">Family Vacation Explorer</h1>
<div class="row">
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">Destination Selector</h5>
<select class="form-select mb-3" aria-label="Select destination">
<option selected>Choose your family-friendly destination</option>
<option value="1">Orlando, Florida</option>
<option value="2">San Diego, California</option>
<option value="3">Yellowstone National Park</option>
</select>
</div>
</div>
</div>
<div class="col-md-8 mb-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">Day-by-Day Guides</h5>
<div class="accordion" id="dayGuides">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Day 1: Adventure Begins
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#dayGuides">
<div class="accordion-body">
<ul>
<li>Morning: Visit the local zoo</li>
<li>Afternoon: Picnic at Central Park</li>
<li>Evening: Family-friendly dinner show</li>
</ul>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Day 2: Exploration Day
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" data-bs-parent="#dayGuides">
<div class="accordion-body">
<ul>
<li>Morning: Interactive science museum</li>
<li>Afternoon: Guided nature walk</li>
<li>Evening: Stargazing at the observatory</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Interactive Itinerary</h5>
<div class="row">
<div class="col-md-6">
<ul class="list-group" id="itineraryList">
<li class="list-group-item d-flex justify-content-between align-items-center">
Visit the local zoo
<button class="btn btn-sm btn-danger delete-btn" aria-label="Remove item"><i class="bi bi-trash"></i></button>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Picnic at Central Park
<button class="btn btn-sm btn-danger delete-btn" aria-label="Remove item"><i class="bi bi-trash"></i></button>
</li>
</ul>
</div>
<div class="col-md-6">
<div class="input-group mb-3">
<input type="text" class="form-control" id="activityInput" placeholder="Add new activity" aria-label="Add new activity">
<button class="btn btn-outline-secondary" id="addBtn" type="button">Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-md-6 mb-3">
<div class="card">
<img src="https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" class="card-img-top" alt="Family vacation">
<div class="card-body">
<h5 class="card-title">Share Your Adventure</h5>
<p class="card-text">Spread the joy of your family vacation! Share your itinerary with friends and family.</p>
<div class="d-flex justify-content-around">
<button class="btn btn-primary"><i class="bi bi-facebook"></i> Share</button>
<button class="btn btn-info"><i class="bi bi-twitter"></i> Tweet</button>
<button class="btn btn-success"><i class="bi bi-whatsapp"></i> Send</button>
</div>
</div>
</div>
</div>
<div class="col-md-6 mb-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">Feedback & Tips</h5>
<form>
<div class="mb-3">
<label for="ratingInput" class="form-label">Rate your experience</label>
<input type="range" class="form-range" min="0" max="5" step="0.5" id="ratingInput">
</div>
<div class="mb-3">
<label for="feedbackText" class="form-label">Share your tips</label>
<textarea class="form-control" id="feedbackText" rows="3" placeholder="Your valuable feedback helps other families!"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit Feedback</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const addButton = document.getElementById('addBtn');
const activityInput = document.getElementById('activityInput');
const itineraryList = document.getElementById('itineraryList');
addButton.addEventListener('click', () => {
const activityName = activityInput.value.trim();
if (activityName) {
const li = document.createElement('li');
li.className = 'list-group-item d-flex justify-content-between align-items-center';
li.innerHTML = `${activityName} <button class="btn btn-sm btn-danger delete-btn" aria-label="Remove item"><i class="bi bi-trash"></i></button>`;
itineraryList.appendChild(li);
activityInput.value = '';
}
});
itineraryList.addEventListener('click', (e) => {
if (e.target.closest('.delete-btn')) {
const li = e.target.closest('li');
if (li) {
li.remove();
}
}
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/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>