-
Notifications
You must be signed in to change notification settings - Fork 345
/
Travel-Itineraries.html
291 lines (270 loc) · 13.5 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!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>
<header>
<h2 class="logo">BuddyTrail</h2>
<nav class="navigation">
<a href="index.html" class="active">Home</a>
<a href="about.html">About</a>
<a href="index.html#itineraries">Travel Itineraries</a>
<a href="./contact.html">Contact</a>
</nav>
</header>
<section class="parallax">
<img src="img/hill1.png" id="hill1">
<img src="img/hill2.png" id="hill2">
<img src="img/hill3.png" id="hill3">
<img src="img/hill4.png" id="hill4">
<img src="img/hill5.png" id="hill5">
<img src="img/tree.png" id="tree">
<h2 id="text">Family Vacation</h2>
<img src="img/leaf.png" id="leaf">
<img src="img/plant.png" id="plant">
</section>
<div class="container-fluid py-4">
<div class="row">
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body" style="background-color:#E7F6FC; border-radius:5px;">
<h5 class="card-title"style="color:#0C1446; font-size:900">Explore Destinations </h5>
<select class="form-select mb-3" aria-label="Select destination">
<option selected>Where to Go?</option>
<option value="1">Orlando, Florida</option>
<option value="2">San Diego, California</option>
<option value="3">Yellowstone National Park</option>
</select>
<button type="submit" class="btn btn-primary">Select</button>
</div>
</div>
</div>
<div class="col-md-8 mb-3">
<div class="card">
<div class="card-body"style="background-color:#E7F6FC; border-radius:5px;">
<h5 class="card-title" style="color:#0C1446; font-size:x-large">Your Adventure Timeline</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">
<span>Day 1: Adventure Begins</span>
</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">
<span> Day 2: Exploration Day</span>
</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"style="background-color:#A5CFE3; border-radius:5px;">
<h5 class="card-title"style="color:#0C1446; font-size:x-large">Activity Guide</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" style="color: #003329;font-weight: 600;">
Explore the City 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" style="color: #003329;font-weight: 600;">
Lunchtime Picnic in 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-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"style="background-color:#DDFFE7; border-radius:5px;">
<h5 class="card-title" style="color:#0C1446; font-size:x-large">Make Memories Together</h5>
<p class="card-text" style="color:#167D7F;font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; font-style:italic">Take your loved ones along for the ride—share your itinerary! relive the best moments with family and friends!</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"style="background-color:#E7F6FC; border-radius:5px;">
<h5 class="card-title" style="color:#0C1446; font-size:x-large">Feedback & Suggestions</h5>
<form>
<div class="mb-3">
<label for="ratingInput" class="form-label">Rate Your Adventure</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 Best Tips</label>
<textarea class="form-control" id="feedbackText" rows="3" placeholder="Your feedback helps families make the most of their journeys!"></textarea>
</div>
<button type="submit" class="btn btn-primary">Share Experience</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
//parallax effect
let text = document.getElementById('text');
let leaf = document.getElementById('leaf');
let hill1 = document.getElementById('hill1');
let hill4 = document.getElementById('hill4');
let hill5 = document.getElementById('hill5');
let plant = document.getElementById('plant');
window.addEventListener('scroll', () => {
let value = window.scrollY;
text.style.marginTop = value * 2.5 + 'px';
leaf.style.top = value * -1.5 + 'px';
leaf.style.left = value * 1.5 + 'px';
hill5.style.left = value * 1.5 + 'px';
hill4.style.left = value * -1.5 + 'px';
hill1.style.top = value * 1 + 'px';
plant.style.top = value * 0.5 + 'px';
});
</script>
<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>