|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | | -<head> |
4 | | - <meta charset="UTF-8"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | | - <title>Podkey - Your Nostr Identity</title> |
7 | | - <link rel="stylesheet" href="popup.css"> |
8 | | -</head> |
9 | | -<body> |
10 | | - <!-- Setup Screen (shown when no key exists) --> |
11 | | - <div id="setupScreen" class="screen" style="display: none;"> |
12 | | - <div class="header"> |
13 | | - <div class="logo">🔑</div> |
14 | | - <h1>Welcome to Podkey</h1> |
15 | | - <p class="subtitle">did:nostr and Solid authentication for the decentralized web</p> |
16 | | - </div> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Podkey - Your Nostr Identity</title> |
| 7 | + <link rel="stylesheet" href="popup.css" /> |
| 8 | + </head> |
| 9 | + <body> |
| 10 | + <!-- Setup Screen (shown when no key exists) --> |
| 11 | + <div id="setupScreen" class="screen" style="display: none"> |
| 12 | + <div class="header"> |
| 13 | + <div class="logo">🔑</div> |
| 14 | + <h1>Welcome to Podkey</h1> |
| 15 | + <p class="subtitle"> |
| 16 | + did:nostr and Solid authentication for the decentralized web |
| 17 | + </p> |
| 18 | + </div> |
17 | 19 |
|
18 | | - <div class="section"> |
19 | | - <button id="generateBtn" class="btn btn-primary"> |
20 | | - ✨ Generate New Key |
21 | | - </button> |
22 | | - <button id="importBtn" class="btn btn-secondary"> |
23 | | - 📥 Import Existing Key |
24 | | - </button> |
25 | | - </div> |
| 20 | + <div class="section"> |
| 21 | + <button id="generateBtn" class="btn btn-primary"> |
| 22 | + ✨ Generate New Key |
| 23 | + </button> |
| 24 | + <button id="importBtn" class="btn btn-secondary"> |
| 25 | + 📥 Import Existing Key |
| 26 | + </button> |
| 27 | + </div> |
26 | 28 |
|
27 | | - <div class="info-box"> |
28 | | - <p><strong>What is Podkey?</strong></p> |
29 | | - <p>A browser extension for <strong>did:nostr</strong> and <strong>Solid</strong> authentication. Store your cryptographic identity and authenticate seamlessly to Solid pods using did:nostr identities.</p> |
| 29 | + <div class="info-box"> |
| 30 | + <p><strong>What is Podkey?</strong></p> |
| 31 | + <p> |
| 32 | + A browser extension for <strong>did:nostr</strong> and |
| 33 | + <strong>Solid</strong> authentication. Store your cryptographic |
| 34 | + identity and authenticate seamlessly to Solid pods using did:nostr |
| 35 | + identities. |
| 36 | + </p> |
| 37 | + </div> |
30 | 38 | </div> |
31 | | - </div> |
32 | 39 |
|
33 | | - <!-- Import Screen --> |
34 | | - <div id="importScreen" class="screen" style="display: none;"> |
35 | | - <div class="header"> |
36 | | - <h2>Import Private Key</h2> |
37 | | - <p class="subtitle">Enter your 64-character hex private key</p> |
38 | | - </div> |
| 40 | + <!-- Import Screen --> |
| 41 | + <div id="importScreen" class="screen" style="display: none"> |
| 42 | + <div class="header"> |
| 43 | + <h2>Import Private Key</h2> |
| 44 | + <p class="subtitle">Enter your 64-character hex private key</p> |
| 45 | + </div> |
39 | 46 |
|
40 | | - <div class="section"> |
41 | | - <label for="privateKeyInput">Private Key (hex)</label> |
42 | | - <textarea id="privateKeyInput" |
43 | | - placeholder="Enter 64-character hexadecimal private key..." |
44 | | - rows="3"></textarea> |
45 | | - <div class="hint">⚠️ Never share your private key with anyone!</div> |
| 47 | + <div class="section"> |
| 48 | + <label for="privateKeyInput">Private Key (hex)</label> |
| 49 | + <textarea |
| 50 | + id="privateKeyInput" |
| 51 | + placeholder="Enter 64-character hexadecimal private key..." |
| 52 | + rows="3" |
| 53 | + ></textarea> |
| 54 | + <div class="hint">⚠️ Never share your private key with anyone!</div> |
46 | 55 |
|
47 | | - <div class="actions"> |
48 | | - <button id="importConfirmBtn" class="btn btn-primary">Import</button> |
49 | | - <button id="importCancelBtn" class="btn btn-secondary">Cancel</button> |
| 56 | + <div class="actions"> |
| 57 | + <button id="importConfirmBtn" class="btn btn-primary">Import</button> |
| 58 | + <button id="importCancelBtn" class="btn btn-secondary">Cancel</button> |
| 59 | + </div> |
50 | 60 | </div> |
51 | 61 | </div> |
52 | | - </div> |
53 | 62 |
|
54 | | - <!-- Main Screen (shown when key exists) --> |
55 | | - <div id="mainScreen" class="screen" style="display: none;"> |
56 | | - <div class="header"> |
57 | | - <div class="logo-small">🔑</div> |
58 | | - <h1>Podkey</h1> |
59 | | - </div> |
| 63 | + <!-- Main Screen (shown when key exists) --> |
| 64 | + <div id="mainScreen" class="screen" style="display: none"> |
| 65 | + <div class="header"> |
| 66 | + <div class="logo-small">🔑</div> |
| 67 | + <h1>Podkey</h1> |
| 68 | + </div> |
60 | 69 |
|
61 | | - <div class="section identity-section"> |
62 | | - <div class="section-title">Your Identity</div> |
63 | | - <div class="identity-card"> |
64 | | - <div class="identity-label">Public Key</div> |
65 | | - <div class="identity-value" id="publicKey">Loading...</div> |
| 70 | + <div class="section identity-section"> |
| 71 | + <div class="section-title">Your Identity</div> |
| 72 | + <div class="identity-card"> |
| 73 | + <div class="identity-label">Public Key</div> |
| 74 | + <div class="identity-value" id="publicKey">Loading...</div> |
66 | 75 |
|
67 | | - <div class="identity-label">DID</div> |
68 | | - <div class="identity-value" id="did">Loading...</div> |
| 76 | + <div class="identity-label">DID</div> |
| 77 | + <div class="identity-value" id="did">Loading...</div> |
69 | 78 |
|
70 | | - <button id="copyBtn" class="btn-copy">📋 Copy Public Key</button> |
| 79 | + <button id="copyBtn" class="btn-copy">📋 Copy Public Key</button> |
| 80 | + </div> |
71 | 81 | </div> |
72 | | - </div> |
73 | 82 |
|
74 | | - <div class="section"> |
75 | | - <div class="section-title">Settings</div> |
76 | | - <div class="settings-item"> |
77 | | - <span>Auto-sign for Solid</span> |
78 | | - <label class="toggle"> |
79 | | - <input type="checkbox" id="autoSignToggle" checked> |
80 | | - <span class="slider"></span> |
81 | | - </label> |
| 83 | + <div class="section"> |
| 84 | + <div class="section-title">Settings</div> |
| 85 | + <div class="settings-item"> |
| 86 | + <span>Auto-sign for Solid</span> |
| 87 | + <label class="toggle"> |
| 88 | + <input type="checkbox" id="autoSignToggle" checked /> |
| 89 | + <span class="slider"></span> |
| 90 | + </label> |
| 91 | + </div> |
82 | 92 | </div> |
83 | | - </div> |
84 | 93 |
|
85 | | - <div class="section"> |
86 | | - <div class="section-title">Trusted Sites</div> |
87 | | - <div id="trustedList" class="trusted-list"> |
88 | | - <div class="empty-state">No trusted sites yet</div> |
| 94 | + <div class="section"> |
| 95 | + <div class="section-title">Trusted Sites</div> |
| 96 | + <div id="trustedList" class="trusted-list"> |
| 97 | + <div class="empty-state">No trusted sites yet</div> |
| 98 | + </div> |
89 | 99 | </div> |
90 | | - </div> |
91 | 100 |
|
92 | | - <div class="footer"> |
93 | | - <a href="#" id="exportBtn">Export Key</a> • |
94 | | - <a href="https://github.com/JavaScriptSolidServer/podkey" target="_blank">GitHub</a> |
| 101 | + <div class="footer"> |
| 102 | + <a href="#" id="exportBtn">Export Key</a> • |
| 103 | + <a |
| 104 | + href="https://github.com/JavaScriptSolidServer/podkey" |
| 105 | + target="_blank" |
| 106 | + >GitHub</a |
| 107 | + > |
| 108 | + </div> |
95 | 109 | </div> |
96 | | - </div> |
97 | 110 |
|
98 | | - <script src="popup.js"></script> |
99 | | -</body> |
| 111 | + <script src="popup.js"></script> |
| 112 | + </body> |
100 | 113 | </html> |
0 commit comments