<script> // These are the only variables that need new values when creating/adjusting a category banner let imageUrl = "/media/wysiwyg/VINTAGE_3.2.jpg"; let headingText = "Moissanite Vintage </br> Engagement Rings"; let buttonUrl = "/engagement-rings"; let buttonText = "Learn More About Engagement Rings"; let subHeadingText = ""; let catBannertextColor = "darkText"; // or "lightText" // These variable just handle hiding the button and subheading as needed. No action is required here. let hideCategoruyBannerSubHeadingClass = !subHeadingText ? 'jb-displayNone' : ""; let hideCategoryButtonClass = !buttonText ? 'jb-displayNone' : ""; </script> <style> .module--categoryBannerModule { background-color: white; background-position: 0; background-repeat: no-repeat; background-size: cover; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; width: 100%; height: 0; padding: 150px 0; margin: 0 calc(-1*(100vw - 100%)/2); width: 100vw; max-width: unset; padding: 150px 0; margin-bottom: var(--moduleMargin); position: relative; } .module--categoryBannerModule.lightText { background-color: #354458; } .categoryBannerModuleContentWrap { text-align: right; margin: 0 auto; max-width: 1280px; padding: 0 10px; width: 100%; z-index: 9; } .categoryBannerModule__heading { font-size: 5.5rem; margin: var(----categoryBannerTextMargin) 0; font-family: "Cormorant Garamond",Arial,serif; } .categoryBannerModule__subbHeading { font-size: 2.8rem; margin: var(--categoryBannerTextMargin) 0; } .module--categoryBannerModule .buttonWrap { display: flex; width: 100%; justify-content: flex-end; margin: var(--categoryBannerTextMargin) 0; } .categoryBannerModule__button { color: inherit !important; text-transform: uppercase; border: solid transparent 1px; display: flex; align-items: center; letter-spacing: 1.2px; font-size: 14px; } .categoryBannerModule__button:hover { color: inherit; border: solid 1px; } .jb-overlay { display: none; position: absolute; width: 100%; height: 100%; background: rgba(22, 22, 22, 0.3); left: 0; top: 0; pointer-events: none; } .jb-displayNone { display: none !important; } #maincontent { padding: 0 10px; } @media only screen and (max-width: 1000px) { .jb-overlay { display: block; } .categoryBannerModuleContentWrap * { color: white !important; text-align: center; } .module--categoryBannerModule .buttonWrap { justify-content: center !important; } } </style> <div id="jb-categoryBanner"></div> <script> let catBannerHtml = `<div style="background-image: url(${imageUrl})" class="module module--categoryBannerModule ${catBannertextColor}"> <div class="jb-overlay"></div> <div class="categoryBannerModuleContentWrap"> <h1 class="categoryBannerModule__heading">${headingText}</h1> <p class="categoryBannerModule__subbHeading ${hideCategoruyBannerSubHeadingClass}">${subHeadingText}</p> <div class="buttonWrap ${hideCategoryButtonClass}"> <a class="button categoryBannerModule__button" href=${buttonUrl}>${buttonText} > </a> </div> </div> </div>`; document.getElementById("jb-categoryBanner").innerHTML = catBannerHtml; </script>

No Results Found