-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
448 lines (389 loc) · 14.4 KB
/
Copy pathindex.html
File metadata and controls
448 lines (389 loc) · 14.4 KB
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weight Loss Study - Join Our Research</title>
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
:root {
--berkeley-blue: #003262;
--california-gold: #FDB515;
--light-blue: #3B7EA1;
--dark-gold: #C4820E;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #333;
overflow-x: hidden;
}
.hero {
background: linear-gradient(135deg, var(--berkeley-blue) 0%, var(--light-blue) 100%);
color: white;
padding: 100px 0;
text-align: center;
position: relative;
overflow: hidden;
min-height: 500px;
display: flex;
align-items: center;
}
.hero::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
background-size: 50px 50px;
animation: moveBackground 20s linear infinite;
z-index: 0;
}
@keyframes moveBackground {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(50px, 50px);
}
}
.hero-content {
position: relative;
z-index: 1;
}
h1 {
font-size: 3.5rem;
margin-bottom: 1.5rem;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
animation: fadeInDown 1s ease-out;
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero p {
font-size: 1.4rem;
margin-bottom: 2rem;
opacity: 0.95;
animation: fadeIn 1.5s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.btn-gold {
background: var(--california-gold);
color: var(--berkeley-blue);
padding: 18px 45px;
font-size: 1.2rem;
font-weight: 600;
border-radius: 50px;
border: none;
transition: all 0.3s ease;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
animation: fadeInUp 1.8s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.btn-gold:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
background: var(--dark-gold);
color: white;
}
.info-section {
padding: 80px 0;
background: white;
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: var(--berkeley-blue);
font-weight: 700;
}
.info-card {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
padding: 40px;
border-radius: 20px;
text-align: center;
transition: all 0.4s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
height: 100%;
border: 3px solid transparent;
}
.info-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
border-color: var(--california-gold);
}
.icon {
font-size: 3.5rem;
margin-bottom: 1.5rem;
display: block;
}
.info-card h3 {
font-size: 1.6rem;
margin-bottom: 1rem;
color: var(--berkeley-blue);
font-weight: 600;
}
.info-card p {
font-size: 1.1rem;
color: #555;
}
.details-section {
padding: 80px 0;
background: linear-gradient(135deg, var(--berkeley-blue) 0%, var(--light-blue) 100%);
color: white;
}
.commitment-box {
background: rgba(253, 181, 21, 0.15);
backdrop-filter: blur(10px);
padding: 40px;
border-radius: 20px;
margin-bottom: 40px;
border: 2px solid rgba(253, 181, 21, 0.3);
transition: all 0.3s ease;
}
.commitment-box:hover {
background: rgba(253, 181, 21, 0.25);
transform: scale(1.02);
border-color: var(--california-gold);
}
.commitment-box h3 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
text-align: center;
color: var(--california-gold);
}
.commitment-list {
font-size: 1.15rem;
line-height: 2;
list-style: none;
padding-left: 0;
}
.commitment-list li {
margin-bottom: 12px;
position: relative;
padding-left: 40px;
}
.commitment-list li::before {
content: '✓';
position: absolute;
left: 0;
font-weight: bold;
color: var(--california-gold);
font-size: 1.5rem;
}
.footer {
background: var(--berkeley-blue);
color: white;
padding: 60px 0;
text-align: center;
}
.footer p {
font-size: 1.1rem;
margin-bottom: 1rem;
}
.footer-gold {
color: var(--california-gold);
}
/* Animation classes for scroll */
.animate-on-scroll {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.animated {
opacity: 1;
transform: translateY(0);
}
@media (max-width: 768px) {
h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.1rem;
}
.hero {
padding: 60px 0;
}
}
</style>
</head>
<body>
<div class="hero">
<div class="container">
<div class="hero-content">
<h1>Join Our Weight Loss Study</h1>
<p>Help advance health research while tracking your wellness journey</p>
<button class="btn btn-gold" onclick="scrollToDetails()">Learn More & Participate</button>
</div>
</div>
</div>
<div class="info-section">
<div class="container">
<h2 class="section-title">Why Participate?</h2>
<div class="row g-4">
<div class="col-lg-4 col-md-6">
<div class="info-card animate-on-scroll">
<span class="icon">🔬</span>
<h3>Contribute to Science</h3>
<p>Your data helps researchers understand effective weight loss strategies</p>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="info-card animate-on-scroll">
<span class="icon">📊</span>
<h3>Track Your Progress</h3>
<p>Gain insights into your own habits and routines during the study</p>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="info-card animate-on-scroll">
<span class="icon">🤝</span>
<h3>Safe & Confidential</h3>
<p>Your privacy is our priority. All data is securely handled and anonymized</p>
</div>
</div>
</div>
</div>
</div>
<div class="details-section" id="details">
<div class="container">
<h2 class="section-title text-white">What's Involved?</h2>
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="commitment-box animate-on-scroll">
<h3>Study Duration: Up to 1 Month</h3>
<p class="text-center mt-3 mb-4" style="font-size: 1.1rem;">We'll ask you to share information
about:</p>
<ul class="commitment-list">
<li>Your current weight</li>
<li>Your current activity level</li>
<li>General health and wellness information</li>
<li>Progress updates throughout the month</li>
</ul>
</div>
<div class="commitment-box animate-on-scroll">
<h3>Time Commitment</h3>
<p class="text-center mb-0" style="font-size: 1.1rem; line-height: 1.8;">
<strong style="color: var(--california-gold);">10-15 minutes per weigh-in</strong> to log
your activities<br>
<strong style="color: var(--california-gold);">5-10 minutes</strong> for initial and final
surveys<br>
</p>
</div>
<div class="commitment-box animate-on-scroll" style="margin-bottom: 60px;">
<h3>Benefits of Participating</h3>
<ul class="commitment-list" style="margin-top: 25px;">
<li>Receive <strong style="color: var(--california-gold);">personalized progress messages</strong> throughout the study</li>
<li>Learn which <strong style="color: var(--california-gold);">daily habits and behaviors correlate with weight loss</strong></li>
<li>Automatically be entered for a chance to <strong style="color: var(--california-gold);">$50 gift card raffle</strong>
after completing the final check-in</li>
</ul>
</div>
<div class="text-center mt-5">
<button class="btn btn-gold" onclick="openSignUpForm()">Sign Up Now</button>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<p><strong>Questions?</strong> Contact us at <span class="footer-gold"><a
href="mailto:midsweightresearchstudy@gmail.com"
style="color: var(--california-gold);">midsweightresearchstudy@gmail.com</a></span></p>
<p style="margin-top: 1.5rem;">
<a href="privacy-policy.html"
style="color: var(--california-gold); text-decoration: none; font-weight: 600;">View Privacy
Policy</a>
</p>
<p style="font-size: 0.9rem; opacity: 0.8; margin-top: 2rem;">
This is an academic class project at University of California, Berkeley
</p>
<p style="font-size: 0.9rem; opacity: 0.8; margin-top: 1rem;">
<em>This project does not provide medical advice. Participants should consult a healthcare professional before making changes to diet, exercise, or weight-related habits.</em>
</p>
<p class="footer-gold"><strong>UC Berkeley School of Information</strong></p>
<p>MIDS 241: Experiments and Causality</p>
<p>© 2025 UC Berkeley I School</p>
</div>
</div>
<!-- Bootstrap 5 JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
function scrollToDetails() {
const detailsSection = document.getElementById('details');
detailsSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
// Open Interest form in new tab
function openSignUpForm() {
window.open('https://docs.google.com/forms/d/e/1FAIpQLScKV_RITDKMrSz_kvm4I9KeciEYz0tbzia3PujKg55vlwGF5g/viewform?usp=dialog', '_blank');
}
// Improved scroll animation with Intersection Observer
const observerOptions = {
threshold: 0.15,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry, index) => {
if (entry.isIntersecting) {
// Add staggered delay for multiple elements
setTimeout(() => {
entry.target.classList.add('animated');
}, index * 100);
observer.unobserve(entry.target);
}
});
}, observerOptions);
// Observe all elements with animate-on-scroll class
document.addEventListener('DOMContentLoaded', () => {
const animateElements = document.querySelectorAll('.animate-on-scroll');
animateElements.forEach(el => observer.observe(el));
});
// Parallax effect for hero section (optional, smooth)
let ticking = false;
window.addEventListener('scroll', () => {
if (!ticking) {
window.requestAnimationFrame(() => {
const scrolled = window.pageYOffset;
const hero = document.querySelector('.hero');
if (hero && scrolled < hero.offsetHeight) {
}
ticking = false;
});
ticking = true;
}
});
</script>
</body>
</html>