pokeweb commited on
Commit
6769e54
Β·
verified Β·
1 Parent(s): fbafef4

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. assets/css/styles.css +553 -0
  2. assets/js/app.js +1 -0
  3. index.html +173 -19
assets/css/styles.css ADDED
@@ -0,0 +1,553 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --primary-color: #6366f1;
3
+ --primary-hover: #4f46e5;
4
+ --secondary-color: #64748b;
5
+ --danger-color: #ef4444;
6
+ --success-color: #10b981;
7
+ --warning-color: #f59e0b;
8
+ --background: #f8fafc;
9
+ --surface: #ffffff;
10
+ --text-primary: #1e293b;
11
+ --text-secondary: #64748b;
12
+ --border-color: #e2e8f0;
13
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
14
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
15
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
16
+ --radius: 0.5rem;
17
+ --transition: all 0.3s ease;
18
+ }
19
+
20
+ * {
21
+ margin: 0;
22
+ padding: 0;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ body {
27
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
28
+ background: var(--background);
29
+ color: var(--text-primary);
30
+ line-height: 1.6;
31
+ min-height: 100vh;
32
+ display: flex;
33
+ flex-direction: column;
34
+ }
35
+
36
+ .container {
37
+ max-width: 1200px;
38
+ margin: 0 auto;
39
+ padding: 0 1rem;
40
+ }
41
+
42
+ /* Header */
43
+ .header {
44
+ background: var(--surface);
45
+ border-bottom: 1px solid var(--border-color);
46
+ padding: 1rem 0;
47
+ position: sticky;
48
+ top: 0;
49
+ z-index: 100;
50
+ box-shadow: var(--shadow-sm);
51
+ }
52
+
53
+ .header-content {
54
+ display: flex;
55
+ justify-content: space-between;
56
+ align-items: center;
57
+ }
58
+
59
+ .logo {
60
+ font-size: 1.5rem;
61
+ font-weight: 700;
62
+ color: var(--primary-color);
63
+ }
64
+
65
+ .header-actions {
66
+ display: flex;
67
+ gap: 1rem;
68
+ align-items: center;
69
+ }
70
+
71
+ .built-with {
72
+ font-size: 0.875rem;
73
+ color: var(--text-secondary);
74
+ text-decoration: none;
75
+ transition: var(--transition);
76
+ }
77
+
78
+ .built-with:hover {
79
+ color: var(--primary-color);
80
+ }
81
+
82
+ /* Main Content */
83
+ .main {
84
+ flex: 1;
85
+ padding: 2rem 0;
86
+ }
87
+
88
+ .view {
89
+ animation: fadeIn 0.3s ease;
90
+ }
91
+
92
+ @keyframes fadeIn {
93
+ from { opacity: 0; transform: translateY(10px); }
94
+ to { opacity: 1; transform: translateY(0); }
95
+ }
96
+
97
+ .hidden {
98
+ display: none !important;
99
+ }
100
+
101
+ /* Welcome View */
102
+ .welcome-card {
103
+ text-align: center;
104
+ max-width: 600px;
105
+ margin: 0 auto;
106
+ padding: 3rem 1rem;
107
+ }
108
+
109
+ .welcome-card h1 {
110
+ font-size: 2.5rem;
111
+ margin-bottom: 1rem;
112
+ background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
113
+ -webkit-background-clip: text;
114
+ -webkit-text-fill-color: transparent;
115
+ }
116
+
117
+ .subtitle {
118
+ color: var(--text-secondary);
119
+ font-size: 1.125rem;
120
+ margin-bottom: 3rem;
121
+ }
122
+
123
+ .action-cards {
124
+ display: grid;
125
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
126
+ gap: 1.5rem;
127
+ margin-top: 2rem;
128
+ }
129
+
130
+ .action-card {
131
+ background: var(--surface);
132
+ padding: 2rem;
133
+ border-radius: var(--radius);
134
+ box-shadow: var(--shadow-md);
135
+ cursor: pointer;
136
+ transition: var(--transition);
137
+ border: 2px solid transparent;
138
+ }
139
+
140
+ .action-card:hover {
141
+ transform: translateY(-4px);
142
+ box-shadow: var(--shadow-lg);
143
+ border-color: var(--primary-color);
144
+ }
145
+
146
+ .card-icon {
147
+ font-size: 3rem;
148
+ margin-bottom: 1rem;
149
+ }
150
+
151
+ .action-card h3 {
152
+ margin-bottom: 0.5rem;
153
+ color: var(--text-primary);
154
+ }
155
+
156
+ .action-card p {
157
+ color: var(--text-secondary);
158
+ font-size: 0.875rem;
159
+ }
160
+
161
+ /* Forms */
162
+ .form-card {
163
+ background: var(--surface);
164
+ padding: 2rem;
165
+ border-radius: var(--radius);
166
+ box-shadow: var(--shadow-md);
167
+ max-width: 500px;
168
+ margin: 0 auto;
169
+ }
170
+
171
+ .form-card h2 {
172
+ margin-bottom: 1.5rem;
173
+ color: var(--text-primary);
174
+ }
175
+
176
+ .form-group {
177
+ margin-bottom: 1.5rem;
178
+ }
179
+
180
+ .form-group label {
181
+ display: block;
182
+ margin-bottom: 0.5rem;
183
+ font-weight: 500;
184
+ color: var(--text-primary);
185
+ }
186
+
187
+ .form-group input,
188
+ .form-group select,
189
+ .form-group textarea {
190
+ width: 100%;
191
+ padding: 0.75rem;
192
+ border: 1px solid var(--border-color);
193
+ border-radius: var(--radius);
194
+ font-size: 1rem;
195
+ transition: var(--transition);
196
+ }
197
+
198
+ .form-group input:focus,
199
+ .form-group select:focus,
200
+ .form-group textarea:focus {
201
+ outline: none;
202
+ border-color: var(--primary-color);
203
+ box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
204
+ }
205
+
206
+ .form-group small {
207
+ display: block;
208
+ margin-top: 0.25rem;
209
+ color: var(--text-secondary);
210
+ font-size: 0.875rem;
211
+ }
212
+
213
+ .form-actions {
214
+ display: flex;
215
+ gap: 1rem;
216
+ justify-content: flex-end;
217
+ }
218
+
219
+ /* Buttons */
220
+ .btn {
221
+ padding: 0.75rem 1.5rem;
222
+ border: none;
223
+ border-radius: var(--radius);
224
+ font-size: 1rem;
225
+ font-weight: 500;
226
+ cursor: pointer;
227
+ transition: var(--transition);
228
+ text-decoration: none;
229
+ display: inline-flex;
230
+ align-items: center;
231
+ gap: 0.5rem;
232
+ }
233
+
234
+ .btn-primary {
235
+ background: var(--primary-color);
236
+ color: white;
237
+ }
238
+
239
+ .btn-primary:hover {
240
+ background: var(--primary-hover);
241
+ transform: translateY(-1px);
242
+ box-shadow: var(--shadow-md);
243
+ }
244
+
245
+ .btn-secondary {
246
+ background: var(--secondary-color);
247
+ color: white;
248
+ }
249
+
250
+ .btn-secondary:hover {
251
+ background: #475569;
252
+ }
253
+
254
+ .btn-danger {
255
+ background: var(--danger-color);
256
+ color: white;
257
+ }
258
+
259
+ .btn-danger:hover {
260
+ background: #dc2626;
261
+ }
262
+
263
+ .btn-icon {
264
+ background: transparent;
265
+ border: none;
266
+ cursor: pointer;
267
+ padding: 0.5rem;
268
+ border-radius: var(--radius);
269
+ transition: var(--transition);
270
+ }
271
+
272
+ .btn-icon:hover {
273
+ background: var(--background);
274
+ }
275
+
276
+ /* Dashboard */
277
+ .dashboard-header {
278
+ display: flex;
279
+ justify-content: space-between;
280
+ align-items: center;
281
+ margin-bottom: 2rem;
282
+ flex-wrap: wrap;
283
+ gap: 1rem;
284
+ }
285
+
286
+ .dashboard-actions {
287
+ display: flex;
288
+ gap: 0.75rem;
289
+ flex-wrap: wrap;
290
+ }
291
+
292
+ .family-info {
293
+ margin-bottom: 2rem;
294
+ }
295
+
296
+ .family-code-display {
297
+ background: var(--surface);
298
+ padding: 1rem;
299
+ border-radius: var(--radius);
300
+ border: 2px solid var(--primary-color);
301
+ display: inline-flex;
302
+ align-items: center;
303
+ gap: 1rem;
304
+ }
305
+
306
+ .family-code-display span {
307
+ font-family: monospace;
308
+ font-size: 1.25rem;
309
+ font-weight: 600;
310
+ color: var(--primary-color);
311
+ }
312
+
313
+ /* Members Grid */
314
+ .members-grid {
315
+ display: grid;
316
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
317
+ gap: 1.5rem;
318
+ }
319
+
320
+ .member-card {
321
+ background: var(--surface);
322
+ border-radius: var(--radius);
323
+ box-shadow: var(--shadow-md);
324
+ overflow: hidden;
325
+ transition: var(--transition);
326
+ }
327
+
328
+ .member-card:hover {
329
+ transform: translateY(-2px);
330
+ box-shadow: var(--shadow-lg);
331
+ }
332
+
333
+ .member-header {
334
+ background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
335
+ color: white;
336
+ padding: 1.25rem;
337
+ display: flex;
338
+ justify-content: space-between;
339
+ align-items: center;
340
+ }
341
+
342
+ .member-name {
343
+ font-size: 1.25rem;
344
+ font-weight: 600;
345
+ }
346
+
347
+ .member-gifts {
348
+ padding: 1.25rem;
349
+ }
350
+
351
+ .gift-item {
352
+ background: var(--background);
353
+ padding: 1rem;
354
+ border-radius: var(--radius);
355
+ margin-bottom: 0.75rem;
356
+ position: relative;
357
+ transition: var(--transition);
358
+ }
359
+
360
+ .gift-item:hover {
361
+ background: #f1f5f9;
362
+ }
363
+
364
+ .gift-item:last-child {
365
+ margin-bottom: 0;
366
+ }
367
+
368
+ .gift-header {
369
+ display: flex;
370
+ justify-content: space-between;
371
+ align-items: start;
372
+ margin-bottom: 0.5rem;
373
+ }
374
+
375
+ .gift-name {
376
+ font-weight: 600;
377
+ color: var(--text-primary);
378
+ flex: 1;
379
+ }
380
+
381
+ .gift-price {
382
+ color: var(--primary-color);
383
+ font-weight: 500;
384
+ margin-left: 1rem;
385
+ }
386
+
387
+ .gift-description {
388
+ color: var(--text-secondary);
389
+ font-size: 0.875rem;
390
+ margin-bottom: 0.5rem;
391
+ }
392
+
393
+ .gift-link {
394
+ color: var(--primary-color);
395
+ font-size: 0.875rem;
396
+ text-decoration: none;
397
+ display: inline-flex;
398
+ align-items: center;
399
+ gap: 0.25rem;
400
+ }
401
+
402
+ .gift-link:hover {
403
+ text-decoration: underline;
404
+ }
405
+
406
+ .claimed-badge {
407
+ background: var(--success-color);
408
+ color: white;
409
+ padding: 0.25rem 0.75rem;
410
+ border-radius: 9999px;
411
+ font-size: 0.75rem;
412
+ font-weight: 600;
413
+ text-transform: uppercase;
414
+ margin-left: 0.5rem;
415
+ }
416
+
417
+ .claim-btn {
418
+ background: var(--warning-color);
419
+ color: white;
420
+ border: none;
421
+ padding: 0.5rem 1rem;
422
+ border-radius: var(--radius);
423
+ cursor: pointer;
424
+ font-size: 0.875rem;
425
+ font-weight: 500;
426
+ transition: var(--transition);
427
+ }
428
+
429
+ .claim-btn:hover {
430
+ background: #d97706;
431
+ }
432
+
433
+ .no-gifts {
434
+ color: var(--text-secondary);
435
+ text-align: center;
436
+ padding: 2rem;
437
+ font-style: italic;
438
+ }
439
+
440
+ /* Modal */
441
+ .modal {
442
+ position: fixed;
443
+ top: 0;
444
+ left: 0;
445
+ right: 0;
446
+ bottom: 0;
447
+ background: rgba(0, 0, 0, 0.5);
448
+ display: flex;
449
+ align-items: center;
450
+ justify-content: center;
451
+ z-index: 1000;
452
+ padding: 1rem;
453
+ }
454
+
455
+ .modal-content {
456
+ background: var(--surface);
457
+ border-radius: var(--radius);
458
+ max-width: 500px;
459
+ width: 100%;
460
+ max-height: 90vh;
461
+ overflow-y: auto;
462
+ animation: slideUp 0.3s ease;
463
+ }
464
+
465
+ @keyframes slideUp {
466
+ from { transform: translateY(20px); opacity: 0; }
467
+ to { transform: translateY(0); opacity: 1; }
468
+ }
469
+
470
+ .modal-header {
471
+ display: flex;
472
+ justify-content: space-between;
473
+ align-items: center;
474
+ padding: 1.5rem;
475
+ border-bottom: 1px solid var(--border-color);
476
+ }
477
+
478
+ .modal-close {
479
+ background: transparent;
480
+ border: none;
481
+ font-size: 1.5rem;
482
+ cursor: pointer;
483
+ color: var(--text-secondary);
484
+ padding: 0.25rem;
485
+ line-height: 1;
486
+ }
487
+
488
+ .modal-close:hover {
489
+ color: var(--text-primary);
490
+ }
491
+
492
+ .modal-body {
493
+ padding: 1.5rem;
494
+ }
495
+
496
+ /* Toast */
497
+ .toast {
498
+ position: fixed;
499
+ bottom: 2rem;
500
+ right: 2rem;
501
+ background: var(--text-primary);
502
+ color: white;
503
+ padding: 1rem 1.5rem;
504
+ border-radius: var(--radius);
505
+ box-shadow: var(--shadow-lg);
506
+ z-index: 2000;
507
+ animation: slideInRight 0.3s ease;
508
+ }
509
+
510
+ @keyframes slideInRight {
511
+ from { transform: translateX(100%); }
512
+ to { transform: translateX(0); }
513
+ }
514
+
515
+ /* Footer */
516
+ .footer {
517
+ background: var(--surface);
518
+ border-top: 1px solid var(--border-color);
519
+ padding: 1.5rem 0;
520
+ text-align: center;
521
+ color: var(--text-secondary);
522
+ margin-top: auto;
523
+ }
524
+
525
+ /* Responsive */
526
+ @media (max-width: 768px) {
527
+ .welcome-card h1 {
528
+ font-size: 2rem;
529
+ }
530
+
531
+ .dashboard-header {
532
+ flex-direction: column;
533
+ align-items: stretch;
534
+ }
535
+
536
+ .dashboard-actions {
537
+ justify-content: center;
538
+ }
539
+
540
+ .members-grid {
541
+ grid-template-columns: 1fr;
542
+ }
543
+
544
+ .header-content {
545
+ flex-direction: column;
546
+ gap: 1rem;
547
+ }
548
+
549
+ .toast {
550
+ right: 1rem;
551
+ left: 1rem;
552
+ }
553
+ }
assets/js/app.js ADDED
@@ -0,0 +1 @@
 
 
1
+ // generated stub
index.html CHANGED
@@ -1,19 +1,173 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Family Gift Registry - Organize and share gift wishes with your loved ones">
7
+ <title>Family Gift Registry</title>
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
11
+ <link rel="stylesheet" href="assets/css/styles.css">
12
+ </head>
13
+ <body>
14
+ <header class="header">
15
+ <div class="container">
16
+ <div class="header-content">
17
+ <div class="logo">
18
+ 🎁 Family Gift Registry
19
+ </div>
20
+ <div class="header-actions">
21
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">Built with anycoder</a>
22
+ <button id="currentFamilyBtn" class="btn btn-secondary" style="display: none;">
23
+ <span id="currentFamilyName"></span>
24
+ </button>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ </header>
29
+
30
+ <main class="main">
31
+ <div class="container">
32
+ <!-- Welcome View -->
33
+ <div id="welcomeView" class="view">
34
+ <div class="welcome-card">
35
+ <h1>Welcome to Family Gift Registry</h1>
36
+ <p class="subtitle">Organize gift wishes and surprises for your loved ones</p>
37
+
38
+ <div class="action-cards">
39
+ <div class="action-card" id="createFamilyCard">
40
+ <div class="card-icon">βž•</div>
41
+ <h3>Create New Family</h3>
42
+ <p>Start a new gift registry for your family</p>
43
+ </div>
44
+
45
+ <div class="action-card" id="joinFamilyCard">
46
+ <div class="card-icon">πŸ‘₯</div>
47
+ <h3>Join Existing Family</h3>
48
+ <p>Connect with your family's gift registry</p>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <!-- Create Family View -->
55
+ <div id="createView" class="view hidden">
56
+ <div class="form-card">
57
+ <h2>Create New Family Registry</h2>
58
+ <form id="createFamilyForm">
59
+ <div class="form-group">
60
+ <label for="familyName">Family Name</label>
61
+ <input type="text" id="familyName" required placeholder="The Johnson Family">
62
+ </div>
63
+ <div class="form-group">
64
+ <label for="yourName">Your Name</label>
65
+ <input type="text" id="yourName" required placeholder="John">
66
+ </div>
67
+ <div class="form-actions">
68
+ <button type="button" class="btn btn-secondary" id="cancelCreate">Cancel</button>
69
+ <button type="submit" class="btn btn-primary">Create Family</button>
70
+ </div>
71
+ </form>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- Join Family View -->
76
+ <div id="joinView" class="view hidden">
77
+ <div class="form-card">
78
+ <h2>Join Family Registry</h2>
79
+ <form id="joinFamilyForm">
80
+ <div class="form-group">
81
+ <label for="familyCode">Family Code</label>
82
+ <input type="text" id="familyCode" required placeholder="Enter 6-digit code">
83
+ <small>Ask your family member for the code</small>
84
+ </div>
85
+ <div class="form-group">
86
+ <label for="joinName">Your Name</label>
87
+ <input type="text" id="joinName" required placeholder="Your name">
88
+ </div>
89
+ <div class="form-actions">
90
+ <button type="button" class="btn btn-secondary" id="cancelJoin">Cancel</button>
91
+ <button type="submit" class="btn btn-primary">Join Family</button>
92
+ </div>
93
+ </form>
94
+ </div>
95
+ </div>
96
+
97
+ <!-- Family Dashboard View -->
98
+ <div id="dashboardView" class="view hidden">
99
+ <div class="dashboard-header">
100
+ <h2 id="dashboardTitle">Family Dashboard</h2>
101
+ <div class="dashboard-actions">
102
+ <button class="btn btn-primary" id="addGiftBtn">+ Add Gift</button>
103
+ <button class="btn btn-secondary" id="showFamilyCode">Show Code</button>
104
+ <button class="btn btn-danger" id="leaveFamily">Leave Family</button>
105
+ </div>
106
+ </div>
107
+
108
+ <div class="family-info">
109
+ <div class="family-code-display hidden" id="familyCodeDisplay">
110
+ <strong>Family Code:</strong> <span id="familyCode"></span>
111
+ <button class="btn-icon" id="copyCode">πŸ“‹</button>
112
+ </div>
113
+ </div>
114
+
115
+ <div class="members-grid" id="membersGrid">
116
+ <!-- Members will be populated here -->
117
+ </div>
118
+ </div>
119
+
120
+ <!-- Add Gift Modal -->
121
+ <div id="addGiftModal" class="modal hidden">
122
+ <div class="modal-content">
123
+ <div class="modal-header">
124
+ <h3>Add New Gift</h3>
125
+ <button class="modal-close" id="closeAddGift">&times;</button>
126
+ </div>
127
+ <form id="addGiftForm">
128
+ <div class="form-group">
129
+ <label for="giftRecipient">For</label>
130
+ <select id="giftRecipient" required>
131
+ <option value="">Select person</option>
132
+ </select>
133
+ </div>
134
+ <div class="form-group">
135
+ <label for="giftName">Gift Name</label>
136
+ <input type="text" id="giftName" required placeholder="e.g., Wireless Headphones">
137
+ </div>
138
+ <div class="form-group">
139
+ <label for="giftDescription">Description (optional)</label>
140
+ <textarea id="giftDescription" rows="3" placeholder="Additional details, size, color, etc."></textarea>
141
+ </div>
142
+ <div class="form-group">
143
+ <label for="giftPrice">Price (optional)</label>
144
+ <input type="text" id="giftPrice" placeholder="e.g., $50-100">
145
+ </div>
146
+ <div class="form-group">
147
+ <label for="giftLink">Link (optional)</label>
148
+ <input type="url" id="giftLink" placeholder="https://example.com/product">
149
+ </div>
150
+ <div class="form-actions">
151
+ <button type="button" class="btn btn-secondary" id="cancelAddGift">Cancel</button>
152
+ <button type="submit" class="btn btn-primary">Add Gift</button>
153
+ </div>
154
+ </form>
155
+ </div>
156
+ </div>
157
+
158
+ <!-- Toast Notification -->
159
+ <div id="toast" class="toast hidden">
160
+ <span id="toastMessage"></span>
161
+ </div>
162
+ </div>
163
+ </main>
164
+
165
+ <footer class="footer">
166
+ <div class="container">
167
+ <p>&copy; 2024 Family Gift Registry. Made with ❀️ for families everywhere.</p>
168
+ </div>
169
+ </footer>
170
+
171
+ <script src="assets/js/app.js"></script>
172
+ </body>
173
+ </html>