Skip to content

Commit df3e875

Browse files
committed
chore: move styles to css file
1 parent 32c0a48 commit df3e875

File tree

2 files changed

+382
-375
lines changed

2 files changed

+382
-375
lines changed

passkey-wallet-app/index.html

Lines changed: 4 additions & 375 deletions
Original file line numberDiff line numberDiff line change
@@ -12,381 +12,10 @@
1212
type="image/svg+xml"
1313
href="/favicon.svg"
1414
/>
15-
<style>
16-
* {
17-
box-sizing: border-box;
18-
margin: 0;
19-
padding: 0;
20-
}
21-
22-
body {
23-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
24-
background: #f5f7fa;
25-
min-height: 100vh;
26-
}
27-
28-
/* PayPal Header */
29-
.paypal-header {
30-
background: #ffffff;
31-
border-bottom: 1px solid #cbd2d9;
32-
padding: 16px 24px;
33-
display: flex;
34-
align-items: center;
35-
justify-content: space-between;
36-
}
37-
38-
.paypal-logo {
39-
font-size: 24px;
40-
font-weight: bold;
41-
color: #0070ba;
42-
letter-spacing: -0.5px;
43-
}
44-
45-
.header-right {
46-
display: flex;
47-
align-items: center;
48-
gap: 24px;
49-
}
50-
51-
.header-network {
52-
font-size: 13px;
53-
color: #6c7378;
54-
padding: 6px 12px;
55-
background: #f5f7fa;
56-
border-radius: 16px;
57-
border: 1px solid #cbd2d9;
58-
}
59-
60-
.header-network strong {
61-
color: #2c2e2f;
62-
font-weight: 600;
63-
}
64-
65-
.header-balance {
66-
font-size: 14px;
67-
color: #2c2e2f;
68-
}
69-
70-
.header-balance strong {
71-
color: #0070ba;
72-
font-size: 18px;
73-
}
74-
75-
/* Main Container */
76-
.container {
77-
max-width: 800px;
78-
margin: 0 auto;
79-
padding: 24px;
80-
}
81-
82-
/* Navigation Tabs */
83-
.nav-tabs {
84-
display: flex;
85-
background: white;
86-
border-radius: 8px;
87-
overflow: hidden;
88-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
89-
margin-bottom: 24px;
90-
}
91-
92-
.nav-tab {
93-
flex: 1;
94-
padding: 16px;
95-
text-align: center;
96-
background: white;
97-
border: none;
98-
border-right: 1px solid #cbd2d9;
99-
cursor: pointer;
100-
font-size: 14px;
101-
font-weight: 500;
102-
color: #6c7378;
103-
transition: all 0.2s;
104-
}
105-
106-
.nav-tab:last-child {
107-
border-right: none;
108-
}
109-
110-
.nav-tab:hover {
111-
color: #f5f7fa;
112-
}
113-
114-
.nav-tab.active {
115-
color: #0070ba !important;
116-
background: #f5f7fa !important;
117-
border-bottom: 3px solid #0070ba;
118-
}
119-
120-
.nav-left {
121-
display: flex;
122-
gap: 12px;
123-
}
124-
125-
.lang-label {
126-
margin: auto;
127-
}
128-
129-
/* Content Sections */
130-
.tab-content {
131-
display: none;
132-
}
133-
134-
.tab-content.active {
135-
display: block;
136-
}
137-
138-
/* Card Styling */
139-
.card {
140-
background: white;
141-
border-radius: 8px;
142-
padding: 24px;
143-
margin-bottom: 16px;
144-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
145-
}
146-
147-
.card-title {
148-
font-size: 20px;
149-
font-weight: 500;
150-
color: #2c2e2f;
151-
margin-bottom: 16px;
152-
}
153-
154-
.card-subtitle {
155-
font-size: 14px;
156-
color: #6c7378;
157-
margin-bottom: 20px;
158-
line-height: 1.5;
159-
}
160-
161-
/* Form Elements */
162-
.form-group {
163-
margin-bottom: 20px;
164-
}
165-
166-
label {
167-
display: block;
168-
margin-bottom: 8px;
169-
font-size: 14px;
170-
font-weight: 500;
171-
color: #2c2e2f;
172-
}
173-
174-
input {
175-
width: 100%;
176-
padding: 14px 16px;
177-
border: 1px solid #cbd2d9;
178-
border-radius: 4px;
179-
font-size: 15px;
180-
color: #2c2e2f;
181-
transition: border-color 0.2s;
182-
}
183-
184-
input:focus {
185-
outline: none;
186-
border-color: #0070ba;
187-
box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.1);
188-
}
189-
190-
/* PayPal Button Styles */
191-
button {
192-
width: 100%;
193-
padding: 14px 24px;
194-
background: #0070ba;
195-
color: white;
196-
border: none;
197-
border-radius: 24px;
198-
font-size: 15px;
199-
font-weight: 500;
200-
cursor: pointer;
201-
transition: background 0.2s;
202-
}
203-
204-
button:hover:not(:disabled) {
205-
background: #005ea6;
206-
}
207-
208-
button:disabled {
209-
background: #cbd2d9;
210-
cursor: not-allowed;
211-
}
212-
213-
button.secondary {
214-
background: white;
215-
color: #0070ba;
216-
border: 1px solid #cbd2d9;
217-
}
218-
219-
button.secondary:hover:not(:disabled) {
220-
background: #f5f7fa;
221-
border-color: #0070ba;
222-
}
223-
224-
button.small {
225-
width: auto;
226-
padding: 10px 20px;
227-
font-size: 13px;
228-
display: inline-block;
229-
margin-top: 12px;
230-
}
231-
232-
/* Alert Boxes */
233-
.alert {
234-
padding: 16px;
235-
border-radius: 4px;
236-
margin-bottom: 16px;
237-
font-size: 14px;
238-
}
239-
240-
.alert-success {
241-
background: #e8f5e9;
242-
border-left: 4px solid #4caf50;
243-
color: #2e7d32;
244-
}
245-
246-
.alert-error {
247-
background: #ffebee;
248-
border-left: 4px solid #f44336;
249-
color: #c62828;
250-
}
251-
252-
.alert-info {
253-
background: #e3f2fd;
254-
border-left: 4px solid #0070ba;
255-
color: #1565c0;
256-
}
257-
258-
.alert strong {
259-
display: block;
260-
margin-bottom: 8px;
261-
font-weight: 600;
262-
}
263-
264-
/* Info Display */
265-
.info-row {
266-
display: flex;
267-
justify-content: space-between;
268-
padding: 12px 0;
269-
border-bottom: 1px solid #f5f7fa;
270-
font-size: 14px;
271-
}
272-
273-
.info-row:last-child {
274-
border-bottom: none;
275-
}
276-
277-
.info-label {
278-
color: #6c7378;
279-
}
280-
281-
.info-value {
282-
color: #2c2e2f;
283-
font-weight: 500;
284-
font-family: monospace;
285-
font-size: 13px;
286-
}
287-
288-
.balance-display {
289-
text-align: center;
290-
padding: 32px;
291-
background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
292-
color: white;
293-
border-radius: 8px;
294-
margin-bottom: 24px;
295-
}
296-
297-
.balance-label {
298-
font-size: 14px;
299-
opacity: 0.9;
300-
margin-bottom: 8px;
301-
}
302-
303-
.balance-amount {
304-
font-size: 36px;
305-
font-weight: 300;
306-
letter-spacing: -1px;
307-
}
308-
309-
code {
310-
background: #f5f7fa;
311-
padding: 3px 6px;
312-
border-radius: 3px;
313-
font-family: "Courier New", monospace;
314-
font-size: 12px;
315-
word-break: break-all;
316-
}
317-
318-
.hidden {
319-
display: none;
320-
}
321-
322-
/* Footer */
323-
.footer {
324-
text-align: center;
325-
padding: 24px;
326-
font-size: 12px;
327-
color: #6c7378;
328-
border-top: 1px solid #cbd2d9;
329-
margin-top: 32px;
330-
}
331-
332-
/* Setup Flow */
333-
.setup-step {
334-
padding: 24px;
335-
background: white;
336-
border-radius: 8px;
337-
margin-bottom: 16px;
338-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
339-
}
340-
341-
.setup-step.completed {
342-
background: #f5f7fa;
343-
border-left: 4px solid #4caf50;
344-
}
345-
346-
.step-header {
347-
display: flex;
348-
align-items: center;
349-
margin-bottom: 16px;
350-
}
351-
352-
.step-icon {
353-
width: 32px;
354-
height: 32px;
355-
border-radius: 50%;
356-
background: #0070ba;
357-
color: white;
358-
display: flex;
359-
align-items: center;
360-
justify-content: center;
361-
margin-right: 12px;
362-
font-weight: 600;
363-
font-size: 14px;
364-
}
365-
366-
.step-icon.completed {
367-
background: #4caf50;
368-
}
369-
370-
.step-title {
371-
font-size: 16px;
372-
font-weight: 500;
373-
color: #2c2e2f;
374-
}
375-
376-
#token-transfer-form {
377-
padding-top: 20px;
378-
}
379-
380-
#token-info {
381-
background: #e3f2fd;
382-
padding: 20px;
383-
border-radius: 8px;
384-
}
385-
386-
input::placeholder {
387-
color: #bababa;
388-
}
389-
</style>
15+
<link
16+
rel="stylesheet"
17+
href="styles.css"
18+
/>
39019
</head>
39120
<body>
39221
<!-- PayPal Header -->

0 commit comments

Comments
 (0)