-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
347 lines (295 loc) · 8.69 KB
/
index.html
File metadata and controls
347 lines (295 loc) · 8.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LEX Scheduler Widget - Preview</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 0;
min-height: 100vh;
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}
.demo-header {
background: linear-gradient(135deg, #0e2a4a 0%, #133865 100%);
color: white;
padding: 60px 20px;
text-align: center;
}
.demo-header h1 {
margin: 0 0 10px;
font-size: 42px;
font-weight: 700;
}
.demo-header p {
margin: 0;
font-size: 18px;
opacity: 0.9;
}
.demo-content {
max-width: 800px;
margin: 0 auto;
padding: 60px 20px;
}
.demo-section {
background: white;
border-radius: 12px;
padding: 32px;
margin-bottom: 24px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.demo-section h2 {
margin: 0 0 16px;
font-size: 20px;
color: #0e2a4a;
}
.demo-section p {
color: #64748b;
line-height: 1.7;
margin: 0 0 16px;
}
.demo-section code {
display: block;
background: #1e293b;
color: #e2e8f0;
padding: 20px;
border-radius: 8px;
font-size: 13px;
overflow-x: auto;
white-space: pre;
}
.manual-trigger {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
background: #133865;
color: white;
border: none;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.manual-trigger:hover {
background: #0e2a4a;
}
.demo-footer {
text-align: center;
padding: 40px 20px;
color: #94a3b8;
font-size: 14px;
}
.demo-divider {
max-width: 800px;
margin: 20px auto 0;
padding: 0 20px;
}
.demo-divider hr {
border: none;
border-top: 2px solid #C9A14A;
opacity: 0.4;
}
.members-badge {
display: inline-block;
background: linear-gradient(135deg, #C9A14A 0%, #A6822F 100%);
color: #0e2a4a;
font-size: 11px;
font-weight: 700;
padding: 4px 10px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 8px;
}
.manual-trigger-gold {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
background: linear-gradient(135deg, #C9A14A 0%, #A6822F 100%);
color: #0e2a4a;
border: none;
border-radius: 8px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 4px 12px rgba(201, 161, 74, 0.3);
}
.manual-trigger-gold:hover {
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(201, 161, 74, 0.45);
}
</style>
</head>
<body>
<div class="demo-header">
<h1>LEX Air Conditioning</h1>
<p>Heating • Cooling • Plumbing • Electrical</p>
</div>
<div class="demo-content">
<div class="demo-section">
<h2>🗓️ Schedule Service Online</h2>
<p>
Need HVAC, plumbing, or electrical service? Click the floating button in the
bottom-right corner, or use the button below to schedule an appointment.
</p>
<button class="manual-trigger" onclick="LEXScheduler.open()">
Book Appointment Now
</button>
</div>
<div class="demo-section">
<h2>📋 WordPress Installation</h2>
<p>
Code for Wordpress installation:
</p>
<code><!-- LEX Scheduler Widget -->
<link rel="stylesheet" href="https://scheduler-mu-three.vercel.app/lex-scheduler.css">
<script>
window.LEXSchedulerConfig = {
apiEndpoint: 'https://scheduler-mu-three.vercel.app/api/lex-booking',
autoButton: true,
buttonText: 'Book Online',
position: 'bottom-right'
};
</script>
<script src="https://scheduler-mu-three.vercel.app/lex-scheduler.iife.js"></script></code>
</div>
<div class="demo-section">
<h2>⚙️ Configuration Options</h2>
<code>{
// URL to backend API that handles ServiceTitan integration
apiEndpoint: '/api/lex-booking',
// Show floating button automatically
autoButton: true,
// Text for the floating button
buttonText: 'Book Online',
// Button position: 'bottom-right' or 'bottom-left'
position: 'bottom-right',
// CSS selector for existing buttons to trigger the scheduler
// (use this if you have your own "Book Now" buttons)
buttonSelector: '.book-online-btn',
// ----- Customization Options -----
// Custom logo URL (defaults to LEX logo if not set)
logoUrl: 'https://example.com/your-logo.png',
// Header background color (default: '#133865')
headerColor: '#133865',
// Floating button color (default: '#0A5C8C')
buttonColor: '#0A5C8C',
// Footer tagline text
tagline: 'The Gold Standard of White Glove Service',
// Support phone number (shown in footer and confirmation)
phoneNumber: '(972) 466-1917'
}</code>
</div>
<div class="demo-section">
<h2>🔧 Manual Control</h2>
<p>
You can programmatically control the scheduler using JavaScript:
</p>
<code>// Open the scheduler
LEXScheduler.open();
// Close the scheduler
LEXScheduler.close();
// Toggle open/closed
LEXScheduler.toggle();</code>
</div>
</div>
<div class="demo-divider"><hr></div>
<div class="demo-content">
<div class="demo-section">
<span class="members-badge">Members</span>
<h2>🗓️ Members Scheduler</h2>
<p>
Exclusive scheduling for LEX membership plan holders. Seasonal tune-ups and inspections.
Click below to preview the members scheduler.
</p>
<button class="manual-trigger-gold" onclick="LEXMembersScheduler.open()">
Schedule Member Service
</button>
</div>
<div class="demo-section">
<span class="members-badge">Members</span>
<h2>📋 WordPress Installation</h2>
<p>
Embed code for your Members page:
</p>
<code><!-- LEX Members Scheduler Widget -->
<link rel="stylesheet" href="https://scheduler-mu-three.vercel.app/lex-members-scheduler.css">
<script>
window.LEXMembersSchedulerConfig = {
apiEndpoint: 'https://scheduler-mu-three.vercel.app/api/lex-booking',
autoButton: true,
buttonText: 'Schedule Member Service',
position: 'bottom-right'
};
</script>
<script src="https://scheduler-mu-three.vercel.app/lex-members-scheduler.iife.js"></script></code>
</div>
<div class="demo-section">
<span class="members-badge">Members</span>
<h2>⚙️ Configuration Options</h2>
<code>{
apiEndpoint: '/api/lex-booking',
autoButton: true,
buttonText: 'Schedule Member Service',
position: 'bottom-right',
// ----- Customization Options -----
// Custom logo URL (defaults to LEX logo if not set)
logoUrl: 'https://example.com/your-logo.png',
// Header background color (default: '#0e2a4a')
headerColor: '#0e2a4a',
// Floating button color (default: '#C9A14A')
buttonColor: '#C9A14A',
// Footer tagline text
tagline: 'Exclusive Service for LEX Members',
// Support phone number
phoneNumber: '(972) 466-1917',
// Header text
headerTitle: 'Member Scheduling',
headerSubtitle: 'Seasonal Tune-Ups • Inspections',
// Step 1 heading
step1Heading: 'Which service would you like to schedule?'
}</code>
</div>
<div class="demo-section">
<span class="members-badge">Members</span>
<h2>🔧 Manual Control</h2>
<p>
You can programmatically control the members scheduler using JavaScript:
</p>
<code>// Open the members scheduler
LEXMembersScheduler.open();
// Close the members scheduler
LEXMembersScheduler.close();
// Toggle open/closed
LEXMembersScheduler.toggle();</code>
</div>
</div>
<div class="demo-footer">
<p>LEX Air Conditioning • Serving the DFW Metroplex since 1970</p>
</div>
<!-- Load both widgets for development/preview -->
<script type="module">
import initLEXScheduler from './src/index.jsx';
import initLEXMembersScheduler from './src/members-index.jsx';
initLEXScheduler({
apiEndpoint: '/api/lex-booking',
autoButton: true,
buttonText: 'Book Online',
position: 'bottom-right'
});
initLEXMembersScheduler({
apiEndpoint: '/api/lex-booking',
autoButton: false,
});
</script>
</body>
</html>