-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvault.html
More file actions
640 lines (600 loc) · 34 KB
/
vault.html
File metadata and controls
640 lines (600 loc) · 34 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
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="CroVault is a privacy vault for your sensitive data. Store credentials, notes, and wallet addresses securely.">
<meta name="keywords" content="CroVault, privacy vault, secure storage, credentials, notes, wallet addresses">
<meta name="author" content="CroVault Team">
<meta name="theme-color" content="#051126">
<script>
// Fallback for browsers that do not support meta[name=theme-color]
if (!('theme-color' in document.createElement('meta'))) {
document.documentElement.style.backgroundColor = '#051126';
}
</script>
<meta name="robots" content="index, follow">
<title>CroVault - Your privacy data safely stored on the blockchain in your own vault</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="stylesheet" href="assets/fontawesome/css/all.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/vault.css">
<link rel="canonical" href="https://crovault.com/vault" />
<!-- Ethers + Web3Modal JS -->
<script src="js/ethers.umd.min.js"></script>
<script src="js/web3modal.js"></script>
<script src="js/vault.js"></script>
</head>
<body>
<div class="page-container">
<!-- Header with menu -->
<header>
<div id="headerDiv" class="header-content">
<a href="/" title="CroVault homepage">
<img src="assets/images/Icon Transparent/CroVault 480.png" alt="CroVault Logo" title="CroVault Logo"/>
</a>
<div>
<span class="title">CroVault</h1>
</div>
</div>
</header>
<!-- Main content -->
<div class="py-3 content">
<section id="intro" class="section">
<h1>Your personal, secure privacy data vault</h1>
</section>
<section id="connectBtns" class="section connectBtns">
<div>
<div class="mb-3 text-center">
<button id="connectWalletBtn" class="btn-custom small maxwidth" title="Connect Wallet">
<span id="connectBtnText">Connect Wallet</span>
</button>
<button id="unlockBtn" class="btn-custom small your-vault-buttons displayNone lockBtn">
<i class="fas fa-unlock"></i> Unlock
</button>
<button id="lockBtn" class="btn-custom small your-vault-buttons displayNone lockBtn">
<i class="fas fa-lock"></i> Lock
</button>
<p id="balance" class="mt-2"></p>
<p id="vaultAddress" class="mt-2"></p>
</div>
</div>
</section>
<!-- NEW: Create Vault section -->
<section id="createVaultSection" class="section hidden">
<div class="mb-3 text-center">
<h2>Create a Vault</h2>
<!-- This button is disabled unless a wallet is connected -->
<button id="createVaultBtn" class="btn-custom small maxwidth">
Create
</button>
<p id="createVaultPrice" class="gold mt-2"></p>
<div id="deployLoader" class="btn-spinner displayNone">
<span class="loader"></span>
</div>
<div id="deployResult"></div>
</div>
</section>
<section id="vaultDataSection" class="section displayNone">
<div class="flex-between" id="Save buttons">
<h3 class="vault-section-title">Your Vault</h3>
<div>
<button id="estimateSaveBtn" class="btn-custom small your-vault-buttons displayNone">
<i class="fas fa-calculator"></i> Estimate Fees
</button>
<button id="globalSaveAllBtn" class="btn-custom small your-vault-buttons displayNone">
<i class="fas fa-save"></i> Save All
</button>
</div>
</div>
<!-- === Credentials Section === -->
<div class="vault-section" id="credentialSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="credentialList"><i class="fas fa-lock"></i> Credentials (<span id="credCount">0</span>)</h4>
<button id="addCredentialBtn" class="icon-only-btn" title="Add Credential" data-default-title="Add Credential"><i class="fas fa-plus"></i></button>
</div>
<div id="credentialList" class="vault-content displayNone">
<!-- New Credential Form -->
<div id="newCredentialForm" class="vault-card vault-credentials slide-hidden">
<div>
<h4 id="credentialFormTitle"><i class="fas fa-lock"></i> New Credential</h4>
<p id="upsertCredentialPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="credName" placeholder="Name (max 32 chars)" maxlength="32">
<input type="text" id="credUsername" placeholder="Username (max 256 chars)" maxlength="256">
<input type="text" id="credPassword" placeholder="Password (max 256 chars)" maxlength="256">
<input type="text" id="credRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveCredentialBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelCredentialBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<!-- The list of Credentials comes here -->
<div id="credentialReadItems"></div>
<div id="credentialPendingItems"></div>
</div>
</div>
<!-- === Notes Section === -->
<div class="vault-section" id="noteSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="noteList"><i class="fas fa-note-sticky"></i> Notes (<span id="noteCount">0</span>)</h4>
<button id="addNoteBtn" class="icon-only-btn" title="Add Note" data-default-title="Add Note"><i class="fas fa-plus"></i></button>
</div>
<div id="noteList" class="vault-content displayNone">
<!-- New Note Form -->
<div id="newNoteForm" class="vault-card vault-notes slide-hidden">
<div>
<h4 id="noteFormTitle"><i class="fas fa-note-sticky"></i> New Note</h4>
<p id="upsertNotePrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="noteName" placeholder="Note title (max 64 chars)" maxlength="64">
<textarea id="noteContent" rows="5" maxlength="1024" placeholder="Note content (max 1024 chars)"></textarea>
</div>
<div class="buttonDiv">
<button id="saveNoteBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelNoteBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<!-- The list of Notes comes here -->
<div id="noteReadItems"></div>
<div id="notePendingItems"></div>
</div>
</div>
<!-- === Wallet Addresses Section === -->
<div class="vault-section" id="walletSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="walletList"><i class="fas fa-wallet"></i> Wallet Addresses (<span id="walletCount">0</span>)</h4>
<button id="addWalletBtn" class="icon-only-btn" title="Add Wallet Address" data-default-title="Add Wallet Address"><i class="fas fa-plus"></i></button>
</div>
<div id="walletList" class="vault-content displayNone">
<!-- New Wallet Form -->
<div id="newWalletForm" class="vault-card vault-wallets slide-hidden">
<div>
<h4 id="walletFormTitle"><i class="fas fa-wallet"></i> New Wallet Address</h4>
<p id="upsertWalletPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="walletName" placeholder="Name (max 32 chars)" maxlength="32">
<input type="text" id="walletAddress" placeholder="Wallet Address (0x...)">
<input type="text" id="walletPrivateKey" placeholder="Private Key">
<input type="text" id="walletSeedPhrase" placeholder="Seed Phrase (12/24 words)">
<input type="text" id="walletRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveWalletBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelWalletBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="walletReadItems"></div>
<div id="walletPendingItems"></div>
</div>
</div>
<!-- === TOTP Section === -->
<div class="vault-section" id="totpSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="totpList"><i class="fas fa-key"></i> TOTP Secrets (<span id="totpCount">0</span>)</h4>
<button id="addTotpBtn" class="icon-only-btn" title="Add TOTP" data-default-title="Add TOTP"><i class="fas fa-plus"></i></button>
</div>
<div id="totpList" class="vault-content displayNone">
<!-- New TOTP Form -->
<div id="newTotpForm" class="vault-card vault-totp slide-hidden">
<div>
<h4 id="totpFormTitle"><i class="fas fa-key"></i> New TOTP Secret</h4>
<p id="upsertTotpPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="totpName" placeholder="Name (max 64 chars)" maxlength="64">
<input type="text" id="totpKey" placeholder="Secret Key (Base32)" maxlength="256">
<input type="text" id="totpAlgorithm" placeholder="Algorithm (e.g., SHA1 (default 99%), SHA256)" maxlength="16">
<input type="number" id="totpInterval" placeholder="Interval (e.g., 30)" min="1" max="600">
</div>
<div class="buttonDiv">
<button id="saveTotpBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelTotpBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<!-- The list of saved and pending TOTP secrets -->
<div id="totpReadItems"></div>
<div id="totpPendingItems"></div>
</div>
</div>
<!-- === PIN Section === -->
<div class="vault-section" id="pinSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="pinList"><i class="fas fa-key"></i> PINs (<span id="pinCount">0</span>)</h4>
<button id="addPinBtn" class="icon-only-btn" title="Add PIN" data-default-title="Add PIN"><i class="fas fa-plus"></i></button>
</div>
<div id="pinList" class="vault-content displayNone">
<!-- New PIN Form -->
<div id="newPinForm" class="vault-card vault-pin slide-hidden">
<div>
<h4 id="pinFormTitle"><i class="fas fa-key"></i> New PIN</h4>
<p id="upsertPinPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="pinName" placeholder="Name (max 64 chars)" maxlength="64">
<input type="text" id="pinLinkedTo" placeholder="Linked To (max 64 chars)" maxlength="64">
<input type="text" id="pinValue" placeholder="PIN Code (max 32 chars)" maxlength="32">
<input type="text" id="pinRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="savePinBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelPinBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="pinReadItems"></div>
<div id="pinPendingItems"></div>
</div>
</div>
<!-- === Bank Accounts Section === -->
<div class="vault-section" id="bankSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="bankList"><i class="fas fa-university"></i> Bank Accounts (<span id="bankCount">0</span>)</h4>
<button id="addBankBtn" class="icon-only-btn" title="Add Bank Account" data-default-title="Add Bank Account"><i class="fas fa-plus"></i></button>
</div>
<div id="bankList" class="vault-content displayNone">
<!-- New Bank Account Form -->
<div id="newBankForm" class="vault-card vault-bank slide-hidden">
<div>
<h4 id="bankFormTitle"><i class="fas fa-university"></i> New Bank Account</h4>
<p id="upsertBankPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="bankName" placeholder="Bank Account Name (max 64 chars)" maxlength="64">
<input type="text" id="bankAccountNumber" placeholder="Account Number (max 64 chars)" maxlength="64">
<input type="text" id="bankIban" placeholder="IBAN (max 64 chars)" maxlength="64">
<input type="text" id="bankSwift" placeholder="SWIFT (max 64 chars)" maxlength="64">
<input type="text" id="bankBankName" placeholder="Bank Name (max 64 chars)" maxlength="64">
<input type="text" id="bankCountry" placeholder="Country (max 64 chars)" maxlength="64">
<input type="text" id="bankRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveBankBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelBankBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="bankReadItems"></div>
<div id="bankPendingItems"></div>
</div>
</div>
<!-- === Credit Cards Section === -->
<div class="vault-section" id="cardSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="cardList"><i class="fas fa-credit-card"></i> Credit Cards (<span id="cardCount">0</span>)</h4>
<button id="addCardBtn" class="icon-only-btn" title="Add Credit Card" data-default-title="Add Credit Card"><i class="fas fa-plus"></i></button>
</div>
<div id="cardList" class="vault-content displayNone">
<!-- New Credit Card Form -->
<div id="newCardForm" class="vault-card vault-card-entry slide-hidden">
<div>
<h4 id="cardFormTitle"><i class="fas fa-credit-card"></i> New Credit Card</h4>
<p id="upsertCardPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="cardName" placeholder="Card Name (max 64 chars)" maxlength="64">
<input type="text" id="cardNumber" placeholder="Card Number (max 64 chars)" maxlength="64">
<input type="text" id="cardHolder" placeholder="Card Holder (max 64 chars)" maxlength="64">
<input type="text" id="cardExpiration" placeholder="Expiration Date (MM/YY)" maxlength="8">
<input type="text" id="cardCVV" placeholder="CVV" maxlength="6">
<input type="text" id="cardLinkedTo" placeholder="Linked To (max 64 chars)" maxlength="64">
<input type="text" id="cardRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveCardBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelCardBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="cardReadItems"></div>
<div id="cardPendingItems"></div>
</div>
</div>
<!-- === Insurances Section === -->
<div class="vault-section" id="insuranceSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="insuranceList"><i class="fas fa-file-medical"></i> Insurances (<span id="insuranceCount">0</span>)</h4>
<button id="addInsuranceBtn" class="icon-only-btn" title="Add Insurance" data-default-title="Add Insurance"><i class="fas fa-plus"></i></button>
</div>
<div id="insuranceList" class="vault-content displayNone">
<!-- New Insurance Form -->
<div id="newInsuranceForm" class="vault-card vault-insurance slide-hidden">
<div>
<h4 id="insuranceFormTitle"><i class="fas fa-file-medical"></i> New Insurance</h4>
<p id="upsertInsurancePrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="insuranceName" placeholder="Insurance Name (max 64 chars)" maxlength="64">
<input type="text" id="insuranceProvider" placeholder="Provider (max 64 chars)" maxlength="64">
<input type="text" id="insurancePolicyNumber" placeholder="Policy Number (max 64 chars)" maxlength="64">
<input type="text" id="insuranceExpiryDate" placeholder="Expiry Date (YYYY-MM-DD)" maxlength="16">
<input type="text" id="insuranceLinkedTo" placeholder="Linked To (max 64 chars)" maxlength="64">
<input type="text" id="insuranceRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveInsuranceBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelInsuranceBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="insuranceReadItems"></div>
<div id="insurancePendingItems"></div>
</div>
</div>
<!-- === Identities Section === -->
<div class="vault-section" id="identitySection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="identityList"><i class="fas fa-id-card"></i> Identities (<span id="identityCount">0</span>)</h4>
<button id="addIdentityBtn" class="icon-only-btn" title="Add Identity Document" data-default-title="Add Identity Document"><i class="fas fa-plus"></i></button>
</div>
<div id="identityList" class="vault-content displayNone">
<!-- New Identity Form -->
<div id="newIdentityForm" class="vault-card vault-identity slide-hidden">
<div>
<h4 id="identityFormTitle"><i class="fas fa-id-card"></i> New Identity</h4>
<p id="upsertIdentityPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="identityName" placeholder="Document Name (max 64 chars)" maxlength="64">
<input type="text" id="identityDocumentType" placeholder="Document Type (Passport, ID, etc.)" maxlength="64">
<input type="text" id="identityDocumentNumber" placeholder="Document Number" maxlength="64">
<input type="text" id="identityCountry" placeholder="Issuing Country" maxlength="64">
<input type="text" id="identityExpiryDate" placeholder="Expiry Date (YYYY-MM-DD)" maxlength="16">
<input type="text" id="identityRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveIdentityBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelIdentityBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="identityReadItems"></div>
<div id="identityPendingItems"></div>
</div>
</div>
<!-- === Legal Documents Section === -->
<div class="vault-section" id="legalSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="legalList"><i class="fas fa-file-contract"></i> Legal Documents (<span id="legalCount">0</span>)</h4>
<button id="addLegalBtn" class="icon-only-btn" title="Add Legal Document" data-default-title="Add Legal Document"><i class="fas fa-plus"></i></button>
</div>
<div id="legalList" class="vault-content displayNone">
<!-- New Legal Document Form -->
<div id="newLegalForm" class="vault-card vault-legal slide-hidden">
<div>
<h4 id="legalFormTitle"><i class="fas fa-file-contract"></i> New Legal Document</h4>
<p id="upsertLegalPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="legalName" placeholder="Document Name (max 64 chars)" maxlength="64">
<input type="text" id="legalDocumentType" placeholder="Document Type (Will, Contract, etc.)" maxlength="64">
<input type="text" id="legalStorageLocation" placeholder="Storage Location (e.g., Safe, IPFS)" maxlength="128">
<input type="text" id="legalLinkedTo" placeholder="Linked To (Person/Asset)" maxlength="64">
<input type="text" id="legalRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveLegalBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelLegalBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="legalReadItems"></div>
<div id="legalPendingItems"></div>
</div>
</div>
<!-- === Assets Section === -->
<div class="vault-section" id="assetSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="assetList"><i class="fas fa-building"></i> Assets (<span id="assetCount">0</span>)</h4>
<button id="addAssetBtn" class="icon-only-btn" title="Add Asset" data-default-title="Add Asset"><i class="fas fa-plus"></i></button>
</div>
<div id="assetList" class="vault-content displayNone">
<!-- New Asset Form -->
<div id="newAssetForm" class="vault-card vault-asset slide-hidden">
<div>
<h4 id="assetFormTitle"><i class="fas fa-building"></i> New Asset</h4>
<p id="upsertAssetPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="assetType" placeholder="Asset Type (House, Car, etc.)" maxlength="64">
<input type="text" id="assetOwnershipId" placeholder="Ownership ID (VIN, Deed, etc.)" maxlength="64">
<input type="text" id="assetValueEstimate" placeholder="Value Estimate (optional)" maxlength="64">
<input type="text" id="assetLinkedTo" placeholder="Linked To (Owner, Company, etc.)" maxlength="64">
<input type="text" id="assetRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveAssetBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelAssetBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="assetReadItems"></div>
<div id="assetPendingItems"></div>
</div>
</div>
<!-- === Contacts Section === -->
<div class="vault-section" id="contactSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="contactList"><i class="fas fa-address-book"></i> Contacts (<span id="contactCount">0</span>)</h4>
<button id="addContactBtn" class="icon-only-btn" title="Add Contact" data-default-title="Add Contact"><i class="fas fa-plus"></i></button>
</div>
<div id="contactList" class="vault-content displayNone">
<!-- New Contact Form -->
<div id="newContactForm" class="vault-card vault-contact slide-hidden">
<div>
<h4 id="contactFormTitle"><i class="fas fa-address-book"></i> New Contact</h4>
<p id="upsertContactPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="contactName" placeholder="Full Name (max 64 chars)" maxlength="64">
<input type="text" id="contactRelation" placeholder="Relation (e.g., Lawyer, Spouse)" maxlength="64">
<input type="email" id="contactEmail" placeholder="Email Address" maxlength="64">
<input type="text" id="contactPhone" placeholder="Phone Number" maxlength="32">
<input type="text" id="contactRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveContactBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelContactBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="contactReadItems"></div>
<div id="contactPendingItems"></div>
</div>
</div>
<!-- === Subscriptions Section === -->
<div class="vault-section" id="subscriptionSection">
<div class="vault-section-header">
<h4 class="vault-toggle" data-target="subscriptionList"><i class="fas fa-sync-alt"></i> Subscriptions (<span id="subscriptionCount">0</span>)</h4>
<button id="addSubscriptionBtn" class="icon-only-btn" title="Add Subscription" data-default-title="Add Subscription"><i class="fas fa-plus"></i></button>
</div>
<div id="subscriptionList" class="vault-content displayNone">
<!-- New Subscription Form -->
<div id="newSubscriptionForm" class="vault-card vault-subscription slide-hidden">
<div>
<h4 id="subscriptionFormTitle"><i class="fas fa-sync-alt"></i> New Subscription</h4>
<p id="upsertSubscriptionPrice" class="gold mt-2"></p>
</div>
<div class="dataDiv">
<input type="text" id="subscriptionServiceName" placeholder="Service Name (Netflix, AWS, etc.)" maxlength="64">
<input type="text" id="subscriptionBillingAccount" placeholder="Billing Account Used" maxlength="64">
<input type="text" id="subscriptionFrequency" placeholder="Frequency (Monthly, Yearly)" maxlength="32">
<input type="text" id="subscriptionLinkedTo" placeholder="Linked To (Card or Bank Account)" maxlength="64">
<input type="text" id="subscriptionRemarks" placeholder="Remarks (max 256 chars)" maxlength="256">
</div>
<div class="buttonDiv">
<button id="saveSubscriptionBtn" class="btn-custom green"><i class="fas fa-plus"></i> Add</button>
<button id="cancelSubscriptionBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
<div id="subscriptionReadItems"></div>
<div id="subscriptionPendingItems"></div>
</div>
</div>
</section>
<footer>
<p>
<strong>© <span id="year"></span> CroVault. All Rights Reserved.</strong>
|
<a href="/privacy.html" class="text-light">Privacy Policy</a>
|
<a href="/terms.html" class="text-light">Terms and Conditions</a>
|
<a href="/LICENSE.html" class="text-light">MIT License</a>
</p>
<p>
⚠️ Disclaimer: CroVault is a decentralized application. You are solely responsible for your data, wallet, and password. We cannot recover lost vaults.
</p>
<div>
<a href="https://x.com/Swerfter" title="Twitter/X" class="social-link sl-style">
<i class="fab fa-x-twitter"></i>
</a>
</div>
</footer>
</div>
<!-- Password Setup Modal -->
<div id="passwordModal" class="modal hidden">
<div class="modal-content">
<h3><i class="fas fa-lock"></i> Set Your Vault Password</h3>
<div class="text-start">
<p>
<br>
This password will be used to encrypt and decrypt your vault data.
</p>
<p>
<strong>Keep it safe! If you loose this password, you won't be able to unlock your vault!</strong>
</p>
<p class="red">
<strong>This is a one time action. You can't change your password ever!</strong>
</p>
</div>
<div class="password-field">
<input type="password" id="vaultPassword" placeholder="Enter password">
</div>
<div class="password-field ">
<input type="password" id="vaultPasswordConfirm" placeholder="Confirm password">
<div id="invalidPasswordStrength" class="text-start mt-2 invalid-password"> </div>
</div>
<div class="buttonDiv">
<button id="confirmVaultPasswordBtn" class="btn-custom green"><i class="fas fa-check"></i> Confirm</button>
<button id="cancelVaultPasswordBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
</div>
<!-- Vault Unlock Modal -->
<div id="unlockModal" class="modal hidden">
<div class="modal-content">
<h3><i class="fas fa-unlock"></i> Unlock Your Vault</h3>
<p>Enter your password to view and decrypt your data.</p>
<div class="password-field">
<input type="password" id="unlockPassword" placeholder="Vault password">
</div>
<div class="buttonDiv">
<button id="confirmUnlockBtn" class="btn-custom green"><i class="fas fa-check"></i> Unlock</button>
<button id="cancelUnlockBtn" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
</div>
<!-- Wrong password modal -->
<div id="wrongPasswordModal" class="modal hidden">
<div class="modal-content">
<h3><i class="fas fa-times"></i> Wrong Password</h3>
<p>The password you entered is incorrect. Please try again.</p>
<div class="buttonDiv">
<button id="retryUnlockBtnModal" class="btn-custom green"><i class="fas fa-rotate-right"></i> Retry</button>
<button id="cancelUnlockBtn2" class="btn-custom red"><i class="fas fa-times"></i> Cancel</button>
</div>
</div>
</div>
<!-- Cost information modal -->
<div id="costInfoModal" class="modal hidden">
<div class="modal-content">
<h3><i class="fas fa-coins"></i> CroVault Fees</h3>
<p><strong>Vault Creation Fee:</strong> <span id="feeCreate">…</span> CRO</p>
<p><strong>Data Save/Update Fee:</strong> <span id="feeUpsert">…</span> CRO</p>
<div class="buttonDiv">
<button onclick="document.getElementById('costInfoModal').classList.add('hidden')" class="btn-custom green">
<i class="fas fa-check"></i> Close
</button>
</div>
</div>
</div>
<!-- Alert Modal -->
<div id="alertModal" class="modal hidden">
<div class="modal-content">
<h3 id="alertModalTitle"><i class="fas fa-info-circle"></i> Alert</h3>
<p id="alertModalText"></p>
<div class="buttonDiv">
<button id="alertModalCloseBtn" class="btn-custom green"><i class="fas fa-check"></i> OK</button>
</div>
</div>
</div>
<!-- Confirm Modal -->
<div id="confirmModal" class="modal hidden">
<div class="modal-content">
<h3 id="confirmModalTitle"><i class="fas fa-question-circle"></i> Confirm</h3>
<p id="confirmModalText"></p>
<div class="buttonDiv">
<button id="confirmModalYesBtn" class="btn-custom green"><i class="fas fa-check"></i> Yes</button>
<button id="confirmModalNoBtn" class="btn-custom red"><i class="fas fa-times"></i> No</button>
</div>
</div>
</div>
<div id="newVaultsBanner" class="modal hidden">
<div class="modal-content">
<h3><i class="fas fa-vault"></i> New vault types available!</h3>
<p>The following vault types are available to add:</p>
<div id="missingVaultTypes" class="text-start"></div>
<div id="newVaultsButtonDiv" class="buttonDiv">
<button class="btn-custom green" onclick="createNewVault()">
<i class="fas fa-plus"></i> Create New Vaults
</button>
</div>
</div>
</div>
<div id="modalOverlay" class="modal-overlay hidden"></div>
<div id="stickySaveBar" class="hidden">
<button id="stickySaveBtn" class="btn-custom small"><i class="fas fa-save"></i> Save All</button>
<button id="stickyEstimateBtn" class="btn-custom small"><i class="fas fa-calculator"></i> Estimate</button>
</div>
</body>
</html>