42
42
--gray-60 : # 313131 ;
43
43
--gray-70 : # 222222 ;
44
44
--gray-80 : # 181818 ;
45
-
45
+
46
46
--orange-10 : # ffeec2 ;
47
47
--orange-20 : # fcb73e ;
48
48
--orange-30 : # ef8b17 ;
56
56
--border-color-500 : # 15151566 ;
57
57
58
58
/* Legacy variables for compatibility */
59
- --background-default-color : # 0a0a0a ;
59
+ --background-default-color : # 181818 ;
60
60
--background-primary-color : var (--blue-50-base );
61
61
--text-primary-color : var (--button-primary-text );
62
62
--text-inverted-color : var (--button-primary-text );
82
82
}
83
83
84
84
.container {
85
- max-width : 900 px ;
85
+ max-width : 1024 px ;
86
86
width : 100% ;
87
87
padding : 20px ;
88
88
}
102
102
font-size : 36px ;
103
103
line-height : 42px ;
104
104
font-weight : 700 ;
105
+ margin-bottom : 16px ;
105
106
}
106
107
107
108
h5 {
201
202
outline-offset : -2px ;
202
203
border : 1px solid var (--gray-0 );
203
204
}
205
+
206
+ .button .fullwidth {
207
+ width : 100% ;
208
+ }
204
209
205
210
.status {
206
- margin : 40px 0 ;
211
+ margin : 40px 0 16 px ;
207
212
padding : 20px ;
208
213
background-color : rgba (255 , 255 , 255 , 0.05 );
209
214
border : 1px solid var (--border-color );
210
- border-radius : 4px ;
211
- min-height : 300px ;
215
+ min-height : 104px ;
212
216
white-space : pre-wrap;
213
217
overflow-y : auto;
214
218
max-height : 400px ;
227
231
228
232
.wallet-field {
229
233
margin : 20px 0 ;
230
- padding : 20px ;
231
- background-color : rgba (255 , 255 , 255 , 0.05 );
232
- border : 1px solid var (--border-color );
233
- border-radius : 4px ;
234
- word-break : break-all;
234
+ display : flex;
235
+ flex-direction : row;
236
+ box-sizing : border-box;
237
+ gap : 24px ;
235
238
}
236
239
237
240
.field-label {
238
241
font-family : 'National' , sans-serif;
239
- font-size : 14 px ;
242
+ font-size : 16 px ;
240
243
line-height : 20px ;
241
244
font-weight : 400 ;
242
- color : var (--text-inverted-color );
243
- margin-bottom : 10px ;
244
- text-transform : uppercase;
245
- letter-spacing : 0.05em ;
245
+ flex-basis : 200px ;
246
246
}
247
247
248
248
.field-value {
249
249
font-family : source-code-pro, Menlo, Monaco, Consolas, 'Courier New' , monospace;
250
250
font-size : 14px ;
251
251
line-height : 18px ;
252
252
font-weight : 400 ;
253
+ word-break : break-all;
254
+ width : 100% ;
255
+ }
256
+
257
+ .field-value .inputs {
258
+ margin-top : -12px ;
253
259
}
254
260
255
261
.warning {
256
- background-color : var (--orange-10 );
257
- color : var (--orange-80 );
258
- padding : 20px ;
259
- border : 1px solid var (--orange-30 );
260
- border-radius : 0 ;
262
+ background-color : var (--gray-60 );
263
+ color : var (--text-inverted-color );
264
+ padding : 12px 16px 12px 36px ;
261
265
margin : 20px 0 ;
262
- text-align : center;
263
266
font-family : 'National' , sans-serif;
264
- font-size : 14px ;
267
+ position : relative;
268
+ font-size : 16px ;
265
269
line-height : 20px ;
266
- font-weight : 400 ;
267
- text-transform : uppercase;
268
- letter-spacing : 0.05em ;
270
+ }
271
+
272
+ .warning ::before {
273
+ content : '' ;
274
+ position : absolute;
275
+ background : url ('assets/icon-warning.svg' ) 0 0 no-repeat;
276
+ width : 16px ;
277
+ height : 16px ;
278
+ left : 12px ;
279
+ top : 14px ;
269
280
}
270
281
271
282
.address-info {
303
314
padding : 6px 12px ;
304
315
font-size : 16px ;
305
316
line-height : 24px ;
306
- margin-left : 10 px ;
317
+ margin-left : 4 px ;
307
318
min-height : 36px ;
308
319
}
309
320
374
385
# derivedAddress {
375
386
margin-top : 15px ;
376
387
padding : 10px ;
377
- background-color : rgba (0 , 51 , 255 , 0.1 );
378
- border : 1px solid var (--background-primary-color );
379
- border-radius : 4px ;
388
+ background-color : var (--gray-60 );
389
+ width : 100% ;
380
390
}
381
391
</ style >
382
392
</ head >
383
393
< body >
384
394
< div class ="container ">
385
- < h1 > OCTRA WALLET GENERATOR</ h1 >
386
-
387
- < div style ="text-align: center; ">
388
- < button id ="generateBtn " class ="button " onclick ="generateWallet() "> GENERATE NEW WALLET</ button >
389
- </ div >
390
-
391
- < div class ="status " id ="status "> Ready to generate wallet...</ div >
395
+ < h1 > octra wallet generation</ h1 >
396
+
397
+ < div class ="main ">
398
+ < div >
399
+ < div class ="status " id ="status "> Ready to generate wallet...</ div >
400
+
401
+ < div style ="text-align: center; ">
402
+ < button id ="generateBtn " class ="button size-large fullwidth " onclick ="generateWallet() "> generate new wallet</ button >
403
+ </ div >
404
+ </ div >
392
405
393
406
< div class ="wallet-info " id ="walletInfo ">
407
+ < h3 > your wallet</ h3 >
394
408
< div class ="warning ">
395
- WARNING: DO NOT STORE THIS FILE ONLINE OR ON CLOUD SERVICES< br >
396
- KEEP YOUR PRIVATE KEY SECURE AND NEVER SHARE IT
409
+ do not store this file online or on cloud services, keep your private key secure and never share it!
397
410
</ div >
398
411
399
412
< div class ="wallet-field ">
400
- < div class ="field-label "> MNEMONIC (12 WORDS )</ div >
413
+ < div class ="field-label "> mnemonic (12 words )</ div >
401
414
< div class ="field-value " id ="mnemonic "> </ div >
402
415
</ div >
403
416
404
417
< div class ="wallet-field ">
405
- < div class ="field-label "> PRIVATE KEY </ div >
418
+ < div class ="field-label "> private key </ div >
406
419
< div class ="field-value ">
407
420
Raw: < span id ="privateKeyRaw "> </ span > < br >
408
421
B64: < span id ="privateKeyB64 "> </ span >
409
422
</ div >
410
423
</ div >
411
424
412
425
< div class ="wallet-field ">
413
- < div class ="field-label "> PUBLIC KEY </ div >
426
+ < div class ="field-label "> public key </ div >
414
427
< div class ="field-value ">
415
428
Raw: < span id ="publicKeyRaw "> </ span > < br >
416
429
B64: < span id ="publicKeyB64 "> </ span >
417
430
</ div >
418
431
</ div >
419
432
420
433
< div class ="wallet-field ">
421
- < div class ="field-label "> OCTRA ADDRESS </ div >
434
+ < div class ="field-label "> octra addres </ div >
422
435
< div class ="field-value " id ="address "> </ div >
423
436
</ div >
424
437
425
438
< div class ="wallet-field ">
426
- < div class ="field-label "> TECHNICAL INFORMATION </ div >
439
+ < div class ="field-label "> technical information </ div >
427
440
< div class ="field-value ">
428
441
Entropy: < span id ="entropy "> </ span > < br >
429
442
Seed: < span id ="seed "> </ span > < br >
@@ -432,7 +445,7 @@ <h1>OCTRA WALLET GENERATOR</h1>
432
445
</ div >
433
446
434
447
< div class ="wallet-field ">
435
- < div class ="field-label "> SIGNATURE TEST </ div >
448
+ < div class ="field-label "> signature test </ div >
436
449
< div class ="field-value ">
437
450
Message: < span id ="testMessage "> </ span > < br >
438
451
Signature: < span id ="testSignature "> </ span > < br >
@@ -441,8 +454,8 @@ <h1>OCTRA WALLET GENERATOR</h1>
441
454
</ div >
442
455
443
456
< div class ="wallet-field ">
444
- < div class ="field-label "> HD DERIVATION </ div >
445
- < div class ="field-value ">
457
+ < div class ="field-label "> HD derivation </ div >
458
+ < div class ="field-value inputs ">
446
459
< label > Network Type:
447
460
< select id ="networkType ">
448
461
< option value ="0 "> MainCoin</ option >
@@ -455,7 +468,7 @@ <h1>OCTRA WALLET GENERATOR</h1>
455
468
< label style ="margin-left: 10px; "> Index:
456
469
< input type ="number " id ="derivationIndex " value ="0 " min ="0 " max ="100 " style ="width: 60px; ">
457
470
</ label >
458
- < button class ="button derive-button " onclick ="derivePath() "> DERIVE </ button >
471
+ < button class ="button derive-button " onclick ="derivePath() "> derive </ button >
459
472
< div id ="derivedAddress " style ="display: none; ">
460
473
Derived Address: < span id ="derivedAddressValue "> </ span > < br >
461
474
Path: < span id ="derivedPath "> </ span >
@@ -464,13 +477,14 @@ <h1>OCTRA WALLET GENERATOR</h1>
464
477
</ div >
465
478
466
479
< div class ="wallet-field " id ="saveInfo " style ="display: none; ">
467
- < div class ="field-label "> FILE SAVED </ div >
480
+ < div class ="field-label "> file saved </ div >
468
481
< div class ="field-value ">
469
482
Filename: < span id ="savedFilename "> </ span > < br >
470
483
Location: In the same directory as this script
471
484
</ div >
472
485
</ div >
473
486
</ div >
487
+ </ div >
474
488
</ div >
475
489
476
490
< script >
@@ -603,7 +617,7 @@ <h1>OCTRA WALLET GENERATOR</h1>
603
617
updateStatus ( 'Wallet saved to: ' + result . filename ) ;
604
618
605
619
document . getElementById ( 'savedFilename' ) . textContent = result . filename ;
606
- document . getElementById ( 'saveInfo' ) . style . display = 'block ' ;
620
+ document . getElementById ( 'saveInfo' ) . style . display = 'flex ' ;
607
621
} else {
608
622
updateStatus ( 'ERROR: Failed to save wallet' ) ;
609
623
}
0 commit comments