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
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="./assets/img/favicon.ico">
<meta
name="description"
content="Luxury Detailing Maine provides mobile professional car cleaning services in the Portland Area"
/>
<title>SERVICES - Luxury Detailing Maine</title>
<link href="css/style.css" rel="stylesheet" />
<link href="css/dropdown.css" rel="stylesheet" />
<link href="css/hamburger.css" rel="stylesheet" />
<style>
html { scroll-behavior: smooth; }
main {
gap: 8rem;
}
h1 { line-height: 1.05; }
h2, h3 { color: var(--gold); }
h1, h2, h3 { text-transform: uppercase; }
/** landings are used to jump slightly above categories */
.landing { top: 10rem; position: relative; }
#categoryLinks {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
gap: 2rem;
margin-top: 1rem;
}
.jumpLink {
width: 48%;
padding: 2rem;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
color: var(--white);
font-size: 3rem;
border-radius: 1rem;
border: 1px solid var(--white);
transition: ease 0.2s;
line-height: 1.05;
background-color: rgba(25, 25, 25, .2);
}
.jumpLink:hover {
transform: scale(1.01);
color: var(--gold);
border-color: var(--gold);
}
.jumpLink:active {
transform: scaleX(98%);
}
#upArrowWrapper {
display: flex;
justify-content: center;
margin-top: 2rem;
}
#upArrow {
margin-top: 20rem;
margin-bottom: 2rem;
transform: rotate(135deg);
height: 60px;
width: 60px;
border-left: solid 5px var(--gold);
border-bottom: solid 5px var(--gold);
transition: .25s ease;
}
#upArrow:hover {
/** border-left: solid 3px var(--gold);
border-bottom: solid 3px var(--gold);*/
transform: rotate(135deg) scaleX(110%) scaleY(110%);
}
#downArrowWrapper {
display: flex;
justify-content: center;
margin-top: 2rem;
}
#downArrow {
transform: rotate(-45deg);
height: 30px;
width: 30px;
border-left: solid 3px var(--gold);
border-bottom: solid 3px var(--gold);
transition: .25s ease;
}
#downArrow:hover {
/** border-left: solid 3px var(--gold);
border-bottom: solid 3px var(--gold);*/
transform: rotate(-45deg) scaleX(110%) scaleY(110%);
}
.categoryContainer {
width: 90%;
}
.serviceHeader, .card-head {
line-height: 1.05;
}
.serviceContainer {
display: flex;
align-items: flex-start;
justify-content: space-evenly;
flex-wrap: wrap;
gap: 5rem;
margin: 3rem 0;
}
#tableOfContents {
width: 100%;
padding-left: 5%;
padding-right: 5%;
padding-top: 5rem;
height: 100rem;
background-image: url('assets/img/soap-hose-fade.png');
background-position: center 50%;
background-repeat: no-repeat;
}
.hero-image {
width: 100%;
border-top: 1px solid var(--gold);
}
/** Services */
a.service { text-decoration: none;}
.service {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
width: 40rem;
}
/** "BOOK NOW" buttons */
.service button {
height: 5rem;
min-width: 100%;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--gold);
color: var(--black);
border: 1px solid var(--dark-gold);
border-radius: 2rem;
padding: 2rem 1rem;
margin: 2rem 0;
font-size: 1.5rem;
font-weight: bold;
text-decoration: none;
transition: 0.3s ease;
}
.service button:hover {
background-color: var(--dark-gold);
cursor: pointer;
}
.service button:active {
transform: scaleX(98%);
}
/** booking link */
.book-link {
display: block;
width: 50%;
text-decoration: none;
}
.card {
padding: 3rem;
border: 2px solid var(--dark-gold);
border-radius: 1rem;
background: linear-gradient(var(--black), var(--dark-black), var(--black));
transition: 2s ease;
color: white;
width: 100%;
}
.card:hover {
border: 2px solid var(--gold);
}
/** TODO implement these classes to make consistent service card sizes */
.tall { height: 30rem; }
.medium { height: 20rem; }
.short { height: 10rem; }
.card-head {
margin-bottom: 2rem;
}
.card-head h2 {
font-size: 2.5rem;
}
.card-head p {
font-style: italic;
margin-top: 1rem;
}
.card-body {
display: flex;
padding: 0 3rem;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2rem;
text-align: left;
width: 100%;
}
/** .card-body span {
display: flex;
flex-direction: column;
align-self: stretch;
width: 50%;
}*/
.card-body span {
display: flex;
flex-direction: column;
align-self: stretch;
width: 100%;
}
.card-body span h3 {
text-align: center;
}
.card-body ul {
padding-left: 1rem;
}
/** mobile rules */
/** MOBILE */
@media screen and (max-width: 850px) {
main { gap: 4rem; }
section {
width: 100%;
}
#tableOfContents {
background-position: 60% center;
padding-top: 4rem;
}
.serviceHeader {
font-size: 3.25rem;
}
.jumpLink {
min-width: 80%;
max-width: 80%;
font-size: 1.75rem;
}
.card {
padding: 2rem;
}
.card-head h2 {
font-size: 2.15rem;
}
}
</style>
</head>
<body>
<a href="#main-content" class="skipLink">Skip to main content</a>
<header>
<div class="navBanner" role="banner">
<a href="index.html" class="navLogo" aria-label="Company Logo">
<img class="navLogo" src="assets/img/logo.png"></img>
</a>
<button
id="hamburger"
aria-label="Toggle mobile navigation menu"
aria-expanded="false"
>
<span></span>
<span></span>
<span></span>
</button>
<nav>
<a id="navBookingButton" href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5">
<span>SCHEDULE SERVICE</span>
</a>
<a class="navLink" role="navigation" href="services.html">Services</a>
<a class="navLink" role="navigation" href="ceramic-coating.html">Ceramic Coatings</a>
<a class="navLink" role="navigation" href="reviews.html">Reviews</a>
<a class="navLink" role="navigation" href="about.html">About</a>
</nav>
</div>
</header>
<main id="main-content">
<div id="tableOfContents">
<h1 class="emphasis">SCHEDULE ONLINE</h1>
<div id="categoryLinks">
<a href="#packagesJump" class="jumpLink">SERVICE PACKAGES</a>
<a href="#interiorJump" class="jumpLink">INTERIOR DETAILING</a>
<a href="#exteriorJump" class="jumpLink">EXTERIOR DETAILING</a>
<a href="#ceramicJump" class="jumpLink">CERAMIC COATINGS</a>
<a href="#correctionJump" class="jumpLink">POLISHING & CORRECTION</a>
</div>
</div>
<div class="categoryContainer">
<span id="packagesJump" class="landing"></span>
<div id="upArrowWrapper">
<a id="upArrow" href="#main-content"></a>
</div>
<h1 class="serviceHeader">Service Packages</h1>
<div id="packages" class="serviceContainer">
</div>
</div>
<div>
<span id="interiorJump" class="landing"></span>
<div id="upArrowWrapper">
<a id="upArrow" href="#main-content"></a>
</div>
<h1 class="serviceHeader">Interior Detailing</h1>
</div>
<img class="hero-image" src="assets/img/seat-wipe-fade.png" />
<div class="categoryContainer">
<div id="interior" class="serviceContainer">
</div>
</div>
<div>
<span id="exteriorJump" class="landing"></span>
<div id="upArrowWrapper">
<a id="upArrow" href="#main-content"></a>
</div>
<h1 class="serviceHeader">Exterior Detailing</h1>
</div>
<img class="hero-image" src="assets/img/wheel-wash-fade.png" />
<div class="categoryContainer">
<div id="exterior" class="serviceContainer">
</div>
</div>
<div>
<span id="ceramicJump" class="landing"></span>
<div id="upArrowWrapper">
<a id="upArrow" href="#main-content"></a>
</div>
<h1 class="serviceHeader">Ceramic Coatings</h1>
</div>
<img class="hero-image" src="assets/img/ceramic-fade.png" />
<div class="categoryContainer">
<div id="ceramic" class="serviceContainer">
</div>
</div>
<div>
<span id="correctionJump" class="landing"></span>
<div id="upArrowWrapper">
<a id="upArrow" href="#main-content"></a>
</div>
<h1 class="serviceHeader">Polish & Correction</h1>
</div>
<img class="hero-image" src="assets/img/towels-brushes-fade.png" />
<div class="categoryContainer">
<div id="correction" class="serviceContainer">
</div>
</div>
</main>
<footer>
<div id="footer-left">
<span>©Luxury Detailing Maine 2025</span>
<span>All rights reserved</span>
<span>Portland, ME</span>
</div>
<div id="footer-right">
<span><a href="tel:+12078076770">(207) 807-6770</a></span>
<span><a href="mailto:luxurydetailingmaine@gmail.com">
luxurydetailingmaine@gmail.com
</a></span>
<span><a
href="https://www.instagram.com/luxurydetailingmaine/"
target="_blank"
>@luxurydetailingmaine</a
></span>
</div>
</footer>
<script src="js/hamburger.js"></script>
<script>
// these categories must match the IDs of the serviceContainer <div>s above
const categories = ["packages", "ceramic", "correction", "exterior", "interior"];
const serviceData = {
"packages" : [
/** SERVICE PACKAGE ONE */
{
"title" : "Level 1 Package",
"subtitle" : "A detailed interior & exterior cleaning.",
"left" : {
"header" : "Interior",
"paragraph" : "",
"bullets" : [
"Vacuuming",
"Plastics, leather, and vinyls cleaning",
"Light scrubbing of seats",
"Crack & crevice cleaning",
"Floor mat cleaning & rejuvenation"
]
},
"right" : {
"header" : "Exterior",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Bug gut removal",
"Tire, wheel, and wheel well cleaning + tire shine",
"Window cleaning",
"Light door jam cleaning"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=sIUtLBqGS4mjAQNwHtI4&sku=rH37oV6muKqDXStXhH3k"
},
/** SERVICE PACKAGE TWO */
{
"title" : "Level 2 Package",
"subtitle" : "Tell the world you're proud of your vehicle.",
"left" : {
"header" : "Interior",
"paragraph" : "",
"bullets" : [
"Vacuuming",
"Plastics, leather, and vinyls cleaning",
"Light scrubbing of seats",
"Interior window cleaning",
"Crack & crevice cleaning",
"Floor mat cleaning & rejuvenation"
]
},
"right" : {
"header" : "Exterior",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Bug gut removal",
"Tire, wheel, and wheel well cleaning + tire shine",
"Clay service to remove embedded contamination",
"3 to 6 month ceramic paint sealant: gloss, protection, hydrophobic & self-cleaning properties"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=ZUyqKhnZtS3uAT9Auo2I&sku=EsEnqIEVcVedKRDITk7e"
},
/** LUXURY PACKAGE */
{
"title" : "Luxury",
"subtitle" : "Our most thorough interior and exterior package. Designed for vehicles that need a deeper reset to bring back that off-the-lot feeling.",
"left" : {
"header" : "Interior",
"paragraph" : "",
"bullets" : [
"Thorough vacuum & carpet shampooing",
"Plastics, leather, and vinyls scrubbed thoroughly",
"Upholstery shampooing (Headliner, seats)",
"Leather scrubbed & stains treated",
"Crack & crevice cleaning",
"Interior window cleaning",
"Crack & crevice deep cleaning",
"Floor mats scrubbed heavily & rejuvenated",
"6 month interior protection on all vinyls, rubbers, and plastics (Stain & spill resistance, less dusting, UV protection, and helps restore the original look of the plastics)"
]
},
"right" : {
"header" : "Exterior",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Bug gut removal",
"Tire, wheel, wheel well cleaning, and tire shine",
"Clay service to remove embedded contamination",
"1 to 3 month ceramic paint sealant: gloss, protection, hydrophobics & self-cleaning properties"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=uelrEIadvSGMjjiHwTdL&sku=9PIhg4Nqlq4J2XI4JQyd"
},
],
"ceramic" : [
/** LEVEL 1 COATING */
{
"title" : "Level 1 Ceramic Coating",
"subtitle" : "Our entry level coating to protect painted surfaces, the most valuable part of your exterior.",
"left" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Triple decontamination of paint & glass (minerals, iron, and contamination)",
"Enhancement polish to bring out gloss and depth",
"3-5 year ceramic coating on all painted surfaces",
"1 year guarantee"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596"
},
/** COMPLETE COATING */
{
"title" : "Level 2 Ceramic Coating",
"subtitle" : "If you can see it on the exterior, it's coated.",
"left" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Triple decontamination of paint & glass (minerals, iron, and contamination)",
"1 step polish to remove swirls and enhance gloss",
"Extra correction on deeper scratches on particular areas",
"Glass polishing to deep clean windows",
"A ceramic coating on your vehicle's paint, glass, and wheel faces",
"Repels water, dust, dirt, UV rays, bird droppings, acid rain, tree sap, road salt, bug guts, etc.",
"3 year guarantee"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596"
},
/** LUXURY CERAMIC COATING */
{
"title" : "Luxury Ceramic Coating",
"subtitle" : "The ultimate gloss and protection.",
"left" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Triple decontamination of paint & glass (minerals, iron, and contamination)",
"2 step correction to remove swirls, heavy defects, and chase the best results",
"Extra correction on deeper scratches on particular areas",
"Wet sanding if needed",
"Glass polishing to deep clean windows",
"A ceramic coating on your vehicle's paint, glass, and wheel faces",
"Repels water, dust, dirt, UV rays, bird droppings, acid rain, tree sap, road salt, bug guts, etc.",
"5 year guarantee"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596"
}
/** WHEEL WASH {
"title" : "Wheel Wash",
"subtitle" : "Make your wheels glow and shine.",
"left" : {
"header" : "Disclaimer",
"paragraph" : "Only available if the entire car receives a ceramic coating.",
"bullets" : []
},
"right" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=jFgdX1fB0AoMVmIhSSmP&sku=lCUwUjNUHf4NYqqKYRNS"
}*/
],
"correction" : [
/** PAINT ENHANCEMENT */
{
"title" : "Paint Enhancement",
"subtitle" : "Bring back that gloss you know and love.",
"left" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Exterior hand wash & triple decontamination",
"1-step polish to enhance gloss & reduce minor defects",
"6 month sealant to protect fresh paint"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=CvJ0v88LfLS9De7I04qu&sku=EyZfDYm9fPEgr3FRl24h"
},
/** PAINT CORRECTION */
{
"title" : "Paint Correction",
"subtitle" : "Chase heavy scratches, remove oxidation, and bring back a near flawless shine.",
"left" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Exterior hand wash & triple decontamination",
"2-step polish to eliminate 90-95% of defects",
"Restore shine and gloss",
"6 month sealant to protect fresh paint"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=EDLsm6ynRPi4sKV0ajh1&sku=s1VcPPUMz3Y5n9B99e2F"
}
],
"exterior" : [
/** LEVEL ONE EXTERIOR */
{
"title" : "Level 1 Exterior",
"subtitle" : "A safe and meticulous hand wash to reveal the true shine of your car.",
"left" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Bug gut removal",
"Tire, wheel, wheel well cleaning, and tire shine",
"Window cleaning",
"Light door jam cleaning"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=TFqzf6t8BKh7vTGxfNBy&sku=Czg1xQxpwwf5ninBF6xq"
},
/** LEVEL TWO INTERIOR */
{
"title" : "Level 2 Exterior",
"subtitle" : "Our most popular exterior.",
"left" : {
"header" : "",
"paragraph" : "Protect against everyday environmental hazards like road salt, bugs, and the elements- all while keeping your vehicle cleaner longer and making maintenance washes a breeze.",
"bullets" : []
},
"right" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Hand wash & dry",
"Bug gut removal",
"Tire, wheel, wheel well cleaning, and tire shine",
"Triple decontamination",
"1 to 3 month paint sealant: gloss, protection, hydrophobic & self-cleaning properties"
]
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI"
}
],
"interior" : [
/** LEVEL ONE INTERIOR */
{
"title" : "Level 1 Interior",
"subtitle" : "A solid clean for well-maintained vehicles",
"left" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Vacuuming",
"Plastics, leather, and vinyls cleaning",
"Light scrubbing of seats",
"Interior window cleaning",
"Floor mat cleaning & rejuvenation"
]
},
"right" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/iy5yKtAhm0O0w0P05acA?productServiceId=3LCNMgeB58hjFwhg58BU&sku=MuCpgSMV0hU4sUdjAPBi"
},
/** LEVEL TWO INTERIOR */
{
"title" : "Level 2 Interior",
"subtitle" : "A deep clean for the vehicle that needs a reset.",
"left" : {
"header" : "Includes",
"paragraph" : "",
"bullets" : [
"Thorough vacuum & carpet shampooing",
"Plastics, leather, and vinyls thoroughly scrubbed",
"Upholstery shampooing including headliner & seats",
"Leather scrubbed & stains treated",
"Interior window cleaning",
"Crack & crevice deep cleaning",
"Floor mats heavily scrubbed & rejuvenated"
]
},
"right" : {
"header" : "",
"paragraph" : "",
"bullets" : []
},
"url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI"
}
]
};
// renders service data as cards when page loads
function insertServices(serviceData) {
for (const category of categories) {
let categoryData = serviceData[category];
console.log(category);
console.log(categoryData);
let target = document.getElementById(category);
for (const service of categoryData) {
let leftSide = buildCardColumn(service.left);
let rightSide = buildCardColumn(service.right);
target.insertAdjacentHTML(
"beforeend",
`
<div class="service">
<div class="card">
<div class="card-head">
<h2>${service.title}</h2>
<p>${service.subtitle}</p>
</div>
<div class="card-body">
${leftSide ? leftSide : ""}
${rightSide ? rightSide : ""}
</div>
</div>
<a href=${service.url} target="_blank" class="book-link">
<button>BOOK NOW</button>
</a>
</div>
`);
}
}
}
// helper for constructing service cards
function buildCardColumn(data) {
let html = "<span>";
if (data.header) {
html += "<h3 style='text-align:left;'>" + data.header + "</h3>";
}
if (data.paragraph) {
html += "<p>" + data.paragraph + "</p>";
}
if (data.bullets.length > 0) {
html += "<ul>";
for (point of data.bullets) {
html += "<li>" + point + "</li>";
}
html += "</ul>";
}
html += "</span>";
if (html == "<span></span>") return null;
return html;
}
window.onload = (event) => {
insertServices(serviceData);
// jump to category if coming from index/home page
let params = new URLSearchParams(document.location.search);
handleJump(params.get("jumpTarget"));
}
function handleJump(target) {
if (!target || !categories.includes(target)) return;
let destination = document.getElementById(target).getBoundingClientRect().top - 250;
window.scrollTo({ top: destination, left: 0, behavior: "smooth"});
}
</script>
</body>
</html>
|