diff options
Diffstat (limited to 'services.html')
| -rw-r--r-- | services.html | 1064 |
1 files changed, 459 insertions, 605 deletions
diff --git a/services.html b/services.html index a05a975..2c5da8f 100644 --- a/services.html +++ b/services.html @@ -13,156 +13,159 @@ <link href="css/hamburger.css" rel="stylesheet" /> <style> - section { - max-width: 75%; - width: 75%; - gap: 2rem; - margin-top: 1rem; + html { scroll-behavior: smooth; } + + main { + gap: 12rem; } - .book-button { - background-color: var(--black); - color: var(--gold); - width: 50%; - height: 4rem; - - border: 1px solid white; - border-radius: 5rem; + h1 { + margin-top: 12rem; + } - padding: .5rem 1rem; + /** landings are used to jump slightly above categories */ + .landing { top: 3rem; position: relative; } - font-size: 1rem; - font-weight: bold; + #categoryLinks { + display: flex; + flex-wrap: wrap; + justify-content: space-evenly; + align-items: center; + gap: 5rem; + + margin-top: 5rem; + } + + .jumpLink { + display: flex; + align-items: center;; + + height: 8rem; + padding: 0 5rem; + text-decoration: none; - transition: 0.5s ease; + color: var(--black); + + background-color: var(--gold); + + border-radius: 1rem; + + transition: 0.3s ease; } - .book-button:hover { - cursor: pointer; - box-shadow: 0px 0px 15px var(--gold); + .jumpLink:hover { + color: white; } - .book-button:active { + .jumpLink a, .jumpLink h2 { + color: var(--black); background-color: var(--gold); } - - .book-link { - user-select: none; - } - - /** Dropdown Menu Style Overrides */ - .dropdown { - width: 100%; - border: 1px solid var(--light-gold); - border-radius: 1.25rem; - transition: 0.5s; - user-select: none; + #categoryContainer { + width: 90%; + height: 100%; } - .dropdown:hover { - border: 1px solid white; + + .serviceContainer { + display: flex; + align-items: flex-start; + justify-content: space-evenly; + flex-wrap: wrap; + margin: 3rem 0; } - /** Prevent nested dropdowns from having borders */ - .dropdown .dropdown { - border-left: none; - border-right: none; - border-bottom: none; - border-radius: 1.25rem 1.25rem 0 0; + #tableOfContents { + width: 90%; + margin-bottom: 25vh; } - .dropdown-header { - align-items: center; - justify-content: flex-start; - gap: 1rem; - text-align: left; - background-color: var(--black); - color: var(--gold); - width: 100%; - height: 100%; + /** Services */ + a.service { text-decoration: none;} + .service { + display: flex; + flex-direction: column; - padding: 1.5rem 4rem 2rem 4rem; - border: none; - border-radius: 1.25rem; + height: 100%; - transition: 2s; + width: 45%; } - .dropdown-header:hover { - border: none; - } - - .dropdown-arrow { - transform: rotate(-90deg); + + .card { + padding: 3rem; + border: 2px solid var(--gold); + border-radius: 1rem; + + transition: 0.5s ease; + color: white; + width: 100%; } - .dropdown-arrow.open { - transform: rotate(0deg); + .card:hover { + border: 2px solid white; } - .dropdown-header:hover span { - transform: rotate(-65deg); /** arrow hover effect */ + .card-head { + margin-bottom: 2rem; } - .dropdown-header div { + .card-body { display: flex; flex-direction: column; - align-items: flex-start; + justify-content: center; + align-items: center; + gap: 2rem; + text-align: left; + width: 100%; } - hr { - border-color: var(--gold); - } + /** .card-body span { + display: flex; + flex-direction: column; + align-self: stretch; - .dropdown-content { - visibility: hidden; - text-align: left; - border: none; - /** closing speed */ - transition: max-height .3s ease; - } - /** service section dropdowns that are v long */ - .dropdown-content.open-longest { - visibility: visible; - max-height: 1100px; - /** opening speed */ - transition: max-height 1s ease; - } - /** service section dropdowns */ - .dropdown-content.open-long { - visibility: visible; - max-height: 1100px; - /** opening speed */ - transition: max-height 1s ease; + width: 50%; + }*/ + .card-body span { + display: flex; + flex-direction: column; + align-self: stretch; + + width: 100%; } - /** dropdowns holding specific service info */ - .dropdown-content.open { - visibility: visible; - max-height: 400px; - /** opening speed */ - transition: max-height .5s ease; + .card-body span h3 { + text-align: center; } - .dropdown-body { - display: flex; - flex-direction: row; - justify-items: space-around; - align-items: flex-start; - flex-wrap: wrap; - margin: 1rem 1rem 0rem 6rem; - user-select: text; - } + /** Booking Button */ + .book-button { + background-color: var(--black); + color: var(--gold); + width: 50%; + height: 4rem; + + border: 1px solid white; + border-radius: 5rem; - .dropdown-body p { - padding-right: 4rem; + padding: .5rem 1rem; + + font-size: 1rem; + font-weight: bold; + text-decoration: none; + transition: 0.5s ease; } - .dropdown-body-half { - flex-basis: 50%; + .book-button:hover { + cursor: pointer; + box-shadow: 0px 0px 15px var(--gold); } - .dropdown-button { - width: 100%; - margin: 2rem 1rem 2.5rem 6rem; + .book-button:active { + background-color: var(--gold); } - + + .book-link { + user-select: none; + } + /** mobile rules */ /** MOBILE */ @media screen and (max-width: 850px) { @@ -176,41 +179,6 @@ h2 { font-size: 1.5rem; } - - .dropdown-header { - padding: 1.5rem 1rem 2rem 1rem; - } - - /** service section dropdowns that are v long */ - .dropdown-content.open-longest { - max-height: 1700px; - /** opening speed */ - transition: max-height 1s ease; - } - /** service section dropdowns */ - .dropdown-content.open-long { - max-height: 1450px; - /** opening speed */ - transition: max-height 1s ease; - } - /** dropdowns holding specific service info */ - .dropdown-content.open { - max-height: 600px; - /** opening speed */ - transition: max-height .5s ease; - } - - .dropdown-body { - margin: 1rem 1rem 0rem 3rem; - flex-direction: column; - } - .dropdown-body span:not(:first-child) { - margin-top: 1.5rem; - } - .dropdown-body p { - padding-right: 0rem; - } - } </style> </head> @@ -243,457 +211,43 @@ <main id="main-content"> - <!-- SERVICE PACKAGE SECTION --> - <section id="packages"> - <div class="dropdown long" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <h1>Service Packages</h1> - </button> - <div class="dropdown-content"> - - <!-- LEVEL ONE PACKAGE --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Level One</h2> - <p>Give your car the time, love, and care it deserves.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <span class="dropdown-body-half"> - <h3>Interior</h3> - <ul> - <li>Vacuum & light carpet shampooing</li> - <li>Plastics, leather, and vinyls cleaning</li> - <li>Light seat shampooing</li> - <li>Interior & exterior window cleaning</li> - <li>Crack & crevice cleaning</li> - </ul> - </span> - - <span class="dropdown-body-half"> - <h3>Exterior</h3> - <ul> - <li>Hand wash & dry</li> - <li>Bug gut removal</li> - <li>Tire, wheel, and wheel well cleaning + tire shine</li> - <li>Window cleaning</li> - <li>Light door jam cleaning</li> - </ul> - </span> - </div> - - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=sIUtLBqGS4mjAQNwHtI4&sku=rH37oV6muKqDXStXhH3k" - > - <button class="book-button">Book Level One Package Now</button> - </a> - </div> - </div> - </div> - - <!-- LEVEL TWO PACKAGE --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Level Two</h2> - <p>Tell the world you're proud of your car.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <span class="dropdown-body-half"> - <h3>Interior</h3> - <ul> - <li>Vacuum & light carpet shampooing</li> - <li>Plastics, leather, and vinyls cleaning</li> - <li>Light seat shampooing</li> - <li>Interior & exterior window cleaning</li> - <li>Crack & crevice cleaning</li> - </ul> - </span> - - <span class="dropdown-body-half"> - <h3>Exterior</h3> - <ul> - <li>Hand wash & dry</li> - <li>Bug gut removal</li> - <li>Tire, wheel, and wheel well cleaning + tire shine</li> - <li><em>Clay service to remove embedded contamination</em></li> - <li><em>3 to 6 month ceramic paint sealant: gloss, protection, hydrophobic & self-cleaning properties</em></li> - </ul> - </span> - </div> - - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=ZUyqKhnZtS3uAT9Auo2I&sku=EsEnqIEVcVedKRDITk7e" - > - <button class="book-button">Book Level Two Package Now</button> - </a> - </div> - </div> - </div> + <div id="tableOfContents"> + <h1>Our Services</h1> + <div id="categoryLinks"> + <a href="#packagesJump" class="jumpLink"><h2>Service Packages</h2></a> + <a href="#ceramicJump" class="jumpLink"><h2>Ceramic Coating</h2></a> + <a href="#paintJump" class="jumpLink"><h2>Polish &<br/>Paint Correction</h2></a> + <a href="#exteriorJump" class="jumpLink"><h2>Exterior Detailing</h2></a> + <a href="#interiorJump" class="jumpLink"><h2>Interior Detailing</h2></a> </div> </div> - </section> - - <!-- CERAMIC COATING SECTION --> - <section id="ceramic"> - <div class="dropdown longest" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <h1>Ceramic Coating</h1> - </button> - <div class="dropdown-content"> - question for aden: should clicking this just bring user to "ceramic coating" page? - - <!-- ELITE COATING --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Elite Ceramic Coating</h2> - <p>Bring out and protect your car's shine for years to come.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - - <span class="dropdown-body-half"> - <h3>Description</h3> - <p> - A protective layer on your vehicle's surface that repels water, - dirt, and contaminants, making cleaning easier and enhancing the - paint's durability and shine for 3-5 years. - </p> - </span> - - <span class="dropdown-body-half"> - <h3>Includes</h3> - <ul> - <li>Hand wash</li> - <li>Decontamination of paint & glass</li> - <li>1 Step polish to remove light swirls and enhance gloss</li> - </ul> - </span> - </div> - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596"> - <button class="book-button">Book Elite Coating</button> - </a> - </div> - </div> - </div> - - <!-- COMPLETE COATING --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Complete Ceramic Coating</h2> - <p>Like a factory reset on your cars exterior, but 10x better.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <span class="dropdown-body-half"> - <h3>Description</h3> - <p> - A protective layer on your vehicle's surface that repels water, - dirt, and contaminants, and UV rays, with insane gloss and shine - for 3-5 years.<br /> - (Paint + Glass) - </p> - </span> - - <span class="dropdown-body-half"> - <h3>Includes</h3> - <ul> - <li>Hand wash & dry</li> - <li>Wheel cleaning</li> - <li>1 stage paint correction on all paint & glass</li> - <li> - <em>Free quarterly washes</em> - </li> - <li> - <em>Free annual decontamination and topper</em> - </li> - </ul> - </span> - </div> - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596"> - <button class="book-button">Book Complete Coating</button> - </a> - </div> - </div> - </div> - - <!-- WHEEL WASH --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Wheel Wash</h2> - <p>Make your wheels glow and shine.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <span> - <h3>Disclaimer</h3> - <p> - Only available if the entire car receives a ceramic coating. - </p> - </span> - </div> - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=jFgdX1fB0AoMVmIhSSmP&sku=lCUwUjNUHf4NYqqKYRNS"> - <button class="book-button">Book Wheel Wash</button> - </a> - </div> - </div> - </div> + <div id="categoryContainer"> + <span id="packagesJump" class="landing"></span> + <h1>Service Packages</h1> + <div id="packages" class="serviceContainer"> </div> - </div> - </section> - - <!-- POLISHING + PAINT CORRECTION SECTION --> - <section id="polish"> - <div class="dropdown long" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <h1>Polishing & Paint Correction</h1> - </button> - <div class="dropdown-content"> - - <!-- PAINT ENHANCEMENT --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Paint Enhancement</h2> - <p>Bring back that gloss you know and love.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <span class="dropdown-body-half"> - <h3>Disclaimer</h3> - <p>Must include an exterior wash & decontamination (price included).</p> - </span> - <span class="dropdown-body-half"> - <h3>Includes</h3> - <ul> - <li>1-step polish to enhance gloss & reduce minor defects</li> - <li>Ceramic coating, sealant, or wax required after</li> - </ul> - </span> - </div> - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=CvJ0v88LfLS9De7I04qu&sku=EyZfDYm9fPEgr3FRl24h"> - <button class="book-button">Book Paint Enhancement</button> - </a> - </div> - </div> - </div> - - <!-- PAINT CORRECTION --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Paint Correction</h2> - <p>Give your paint a breath of fresh air.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <span class="dropdown-body-half"> - <h3>Disclaimer</h3> - <p>Must include an exterior wash & decontamination (price included).</p> - </span> - - <span class="dropdown-body-half"> - <h3>Includes</h3> - <ul> - <li>2-step polish to eliminate 80-85% of defects </li> - <li>Restore shine and gloss</li> - <li>Ceramic coating, sealant, or wax required after</li> - </ul> - </span> - </div> - <div class="dropdown-button"> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=EDLsm6ynRPi4sKV0ajh1&sku=s1VcPPUMz3Y5n9B99e2F"> - <button class="book-button">Book Paint Correction</button> - </a> - </div> - </div> - </div> + <span id="ceramicJump" class="landing"></span> + <h1>Ceramic Coating</h1> + <div id="ceramic" class="serviceContainer"> </div> - </div> - </section> - - wip below - - <!-- EXTERIOR DETAILING SECTION --> - <section id="exterior"> - <div class="dropdown long" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <h1>Exterior Detailing</h1> - </button> - <div class="dropdown-content"> - - <!-- LEVEL ONE EXTERIOR --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Level One Exterior</h2> - <p>A safe and meticulous hand wash to reveal the true shine of your car.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <ul> - <li>Hand wash & dry</li> - <li>Bug gut removal</li> - <li>Tire, wheel, wheel well cleaning, and tire shine</li> - <li>Window cleaning</li> - <li>Light door jam cleaning</li> - </ul></br> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=TFqzf6t8BKh7vTGxfNBy&sku=Czg1xQxpwwf5ninBF6xq"> - <button class="book-button">Book Level One Exterior</button> - </a> - </div> - </div> - </div> - - <!-- LEVEL TWO EXTERIOR --> - <div class="dropdown" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Level Two Exterior</h2> - <p>Most popular.</p> - </div> - </button> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <p> - For those who want their car to shine, be safe and protected - from harsh elements, self clean, and be a breeze to wash. - (Previously 'Wash, Clay, Seal') - </p><br /> - <ul> - <li>Hand wash & dry</li> - <li>Bug gut removal</li> - <li>Tire, wheel, wheel well cleaning, and tire shine</li> - <li>Clay mitt to remove embedded contamination</li> - <li>3 to 6 month ceramic paint sealant: gloss, protection, hydrophobic & self-cleaning properties</li> - </ul></br> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI"> - <button class="book-button">Book Level Two Exterior</button> - </a> - </div> - </div> - </div> + <span id="paintJump" class="landing"></span> + <h1>Paint & Polish Correction</h1> + <div id="paint" class="serviceContainer"> + </div> + + <span id="exteriorJump" class="landing"></span> + <h1>Exterior Detailing</h1> + <div id="exterior" class="serviceContainer"> </div> - </div> - </section> - - <!-- INTERIOR DETAILING SECTION --> - <section id="interior"> - <div class="dropdown long" aria-expanded="false"> - <button class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <h1>Interior Detailing</h1> - </button> - <div class="dropdown-content"> - - <!-- LEVEL ONE INTERIOR --> - <div class="dropdown" aria-expanded="false"> - <div class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Level One Interior</h2> - <p>Clean as a whistle!</p> - </div> - </div> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <ul> - <li>Vacuum & light carpet shampooing</li> - <li>Plastics, leather, and vinyls cleaning</li> - <li>Light seat shampooing</li> - <li>Interior & exterior window cleaning</li> - <li>Crack & crevice cleaning</li> - </ul></br> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/iy5yKtAhm0O0w0P05acA?productServiceId=3LCNMgeB58hjFwhg58BU&sku=MuCpgSMV0hU4sUdjAPBi"> - <button class="book-button">Book Level One Interior</button> - </a> - </div> - </div> - </div> - <!-- LEVEL TWO INTERIOR --> - <div class="dropdown" aria-expanded="false"> - <div class="dropdown-header" onclick="toggleDropdown(this)"> - <span class="dropdown-arrow">▼</span> - <div> - <h2>Level Two Interior</h2> - <p>Bring back the interior you love & protect it for months.</p> - </div> - </div> - <div class="dropdown-content"> - <hr> - <div class="dropdown-body"> - <ul> - <li>Vacuum & carpet shampooing</li> - <li>Plastics, leather, and vinyls scrubbed</li> - <li>Leather conditioning for protection and suppleness</li> - <li>Upholstery shampooing</li> - <li>Crack & crevice cleaning</li> - <li>6 month interior protection (Spills, UV, less dust, less cleaning, and plastic rejuvenation)</li> - </ul></br> - <a target="_blank" class="book-link" tabindex="-1" - href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI"> - <button class="book-button">Book Level Two Interior</button> - </a> - </div> - </div> - </div> + <span id="interiorJump" class="landing"></span> + <h1>Interior Detailing</h1> + <div id="interior" class="serviceContainer"> </div> </div> - </section> </main> @@ -713,34 +267,334 @@ > </div> </footer> + <script src="js/hamburger.js"></script> + <script> - function toggleDropdown(headerClicked) { - let dropdown = headerClicked.parentElement; - let body = headerClicked.nextElementSibling; - let arrow = headerClicked.children[0]; + // these categories must match the IDs of the serviceContainer <div>s above + const categories = ["packages", "ceramic", "paint", "exterior", "interior"]; + const serviceData = { + "packages" : [ + /** SERVICE PACKAGE ONE */ + { + "title" : "Service Package One", + "subtitle" : "Give your car the time, love, and care it deserves.", + "left" : { + "header" : "Interior", + "paragraph" : "", + "bullets" : [ + "Vacuum & light carpet shampooing", + "Plastics, leather, and vinyls cleaning", + "Light seat shampooing", + "Interior & exterior window cleaning", + "Crack & crevice cleaning" + ] + }, + "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" : "Service Package Two", + "subtitle" : "Tell the world you're proud of your car.", + "left" : { + "header" : "Interior", + "paragraph" : "", + "bullets" : [ + "Vacuum & light carpet shampooing", + "Plastics, leather, and vinyls cleaning", + "Light seat shampooing", + "Interior & exterior window cleaning", + "Crack & crevice cleaning" + ] + }, + "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" + } + ], + "ceramic" : [ + /** ELITE COATING */ + { + "title" : "Elite Ceramic Coating", + "subtitle" : "Bring out and protect your car's shine for years to come.", + "left" : { + "header" : "Description", + "paragraph" : "A protective layer on your vehicle's surface that repels water, dirt, and contaminants, making cleaning easier and enhancing the paint's durability and shine for 3-5 years.", + "bullets" : [] + }, + "right" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "Hand wash", + "Decontamination of paint & glass", + "1 Step polish to remove light swirls and enhance gloss" + ] + }, + "url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596" + }, + /** COMPLETE COATING */ + { + "title" : "Complete Ceramic Coating", + "subtitle" : "Like a factory reset on your cars exterior, but 10x better.", + "left" : { + "header" : "Description", + "paragraph" : "A protective layer on your vehicle's surface that repels water, dirt, and contaminants, and UV rays, with insane gloss and shine for 3-5 years. (Paint + Glass)", + "bullets" : [] + }, + "right" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "Hand wash & dry", + "Wheel cleaning", + "1 stage paint correction on all paint & glass", + "Free quarterly washes", + "Free annual decontamination and topper" + ] + }, + "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" + } + ], + "paint" : [ + /** PAINT ENHANCEMENT */ + { + "title" : "Paint Enhancement", + "subtitle" : "Bring back that gloss you know and love.", + "left" : { + "header" : "Disclaimer", + "paragraph" : "Must include an exterior wash & decontamination (price included).", + "bullets" : [] + }, + "right" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "1-step polish to enhance gloss & reduce minor defects", + "Ceramic coating, sealant, or wax required after" + ] + }, + "url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=CvJ0v88LfLS9De7I04qu&sku=EyZfDYm9fPEgr3FRl24h" + }, + /** PAINT CORRECTION */ + { + "title" : "Paint Correction", + "subtitle" : "Give your paint a breath of fresh air.", + "left" : { + "header" : "Disclaimer", + "paragraph" : "Ceramic coating, sealant, or wax required after", + "bullets" : [] + }, + "right" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "Exterior wash and decontaminaion", + "2-step polish to eliminate 80-85% of defects", + ] + }, + "url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=EDLsm6ynRPi4sKV0ajh1&sku=s1VcPPUMz3Y5n9B99e2F" + } + ], + "exterior" : [ + /** LEVEL ONE EXTERIOR */ + { + "title" : "Level One Exterior", + "subtitle" : "Refresh your shine!", + "left" : { + "header" : "Description", + "paragraph" : "A safe and meticulous hand wash to reveal the true shine of your car.", + "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 Two Exterior", + "subtitle" : "Most Popular.", + "left" : { + "header" : "Description", + "paragraph" : "For those who want their car to shine, be safe and protected from harsh elements, self clean, and be a breeze to wash. (Previously 'Wash, Clay, Seal')", + "bullets" : [] + }, + "right" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "Hand wash & dry", + "Bug gut removal", + "Tire, wheel, wheel well cleaning, and tire shine", + "Clay mitt 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/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI" + } + ], + "interior" : [ + /** LEVEL ONE INTERIOR */ + { + "title" : "Level One Interior", + "subtitle" : "A deep clean of your car's interior.", + "left" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "Vacuum & light carpet shampooing", + "Plastics, leather, and vinyls cleaning", + "Light seat shampooing", + "Interior & exterior window cleaning", + "Crack & crevice cleaning" + ] + }, + "right" : { + "header" : "", + "paragraph" : "", + "bullets" : [] + }, + "url" : "https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/iy5yKtAhm0O0w0P05acA?productServiceId=3LCNMgeB58hjFwhg58BU&sku=MuCpgSMV0hU4sUdjAPBi" + }, + /** LEVEL TWO INTERIOR */ + { + "title" : "Level Two Interior", + "subtitle" : "Bring back the interior you love & protect it for months.", + "left" : { + "header" : "Includes", + "paragraph" : "", + "bullets" : [ + "Upholstery shampooing", + "Crack & crevice cleaning", + "6 month interior protection (Spills, UV, less dust, less cleaning, and plastic rejuvenation)", + "Vacuum & carpet shampooing", + "Plastics, leather, and vinyls scrubbed", + "Leather conditioning for protection and suppleness" + ] + }, + "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", + ` + <a class="service" href=${service.url} target="_blank"> + <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> + `); + } + } + } - if (dropdown.classList.contains("longest")) { - dropdown.classList.toggle("open-longest"); - body.classList.toggle("open-longest"); - arrow.classList.toggle("open"); + // helper for constructing service cards + function buildCardColumn(data) { + let html = "<span>"; + if (data.header) { + html += "<h3 style='text-align:left;'>" + data.header + "</h3>"; } - else if (dropdown.classList.contains("long")) { - dropdown.classList.toggle("open-long"); - body.classList.toggle("open-long"); - arrow.classList.toggle("open"); + if (data.paragraph) { + html += "<p>" + data.paragraph + "</p>"; } - else { - dropdown.classList.toggle("open"); - body.classList.toggle("open"); - arrow.classList.toggle("open"); + 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); - let isOpen = dropdown.className.includes("open"); - dropdown.setAttribute('aria-expanded', isOpen); + // 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> |
