From c75d4611fd80c434a9a1ceea6dd9b5f84eb582b6 Mon Sep 17 00:00:00 2001 From: pashtepooja18 Date: Wed, 25 Sep 2024 12:36:59 +0530 Subject: [PATCH 1/2] embed carousel css added --- scripts/scripts.js | 1 + .../embed-carousel-wrapper.css | 198 ++++++++++++++++++ 2 files changed, 199 insertions(+) create mode 100644 styles/embed-carousel-wrapper/embed-carousel-wrapper.css diff --git a/scripts/scripts.js b/scripts/scripts.js index d3f0ce0c53..820e9f21b9 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -778,6 +778,7 @@ async function loadingCustomCss() { `${window.hlx.codeBasePath}/styles/support-contact-us/support-contact-popup.css`, `${window.hlx.codeBasePath}/styles/e-nach-registration/e-nach-registration.css`, `${window.hlx.codeBasePath}/styles/support-faq/support-faq.css`, + `${window.hlx.codeBasePath}/styles/embed-carousel-wrapper/embed-carousel-wrapper.css`, ]; loadCssArray.forEach(async (eachCss) => { diff --git a/styles/embed-carousel-wrapper/embed-carousel-wrapper.css b/styles/embed-carousel-wrapper/embed-carousel-wrapper.css new file mode 100644 index 0000000000..510d544905 --- /dev/null +++ b/styles/embed-carousel-wrapper/embed-carousel-wrapper.css @@ -0,0 +1,198 @@ +.section.embed-carousel-wrapper .carousel-wrapper { + position: relative; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel { + position: unset; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons { + display: block; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-prev { + padding: unset; + margin: unset; + position: absolute; + left: -5%; + top: 40%; + z-index: 1; + display: inline-block; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-next { + padding: unset; + margin: unset; + position: absolute; + right: -5%; + top: 40%; + z-index: 1; + display: inline-block; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-prev:hover, +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-next:hover { + background-color: unset; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-prev >div>div>picture>img, +.section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-next >div>div>picture>img{ + border: 1px solid #365069; + border-radius: 50%; + color: #365069; + height: 40px; + margin-top: unset; + width: 40px; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .button-container.glider-dots { + display: none; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser { + margin-right: 30px; + position: relative; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser .background .foreground .text .cta-image-wrapper .img-with-text-wrap:first-child .cta-image>a { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 2; +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser .background .foreground .text .cta { + background-color: #fff; + color: #fff; + box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1); + position: absolute; + left: 50%; + top: 50%; + box-sizing: border-box; + display: block; + transform: scale(3); + width: 50px; + height: 50px; + border: 2px solid; + border-radius: 50%; + padding: 0; + cursor: pointer; + transform: translate(-50%, -50%); +} + +.section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser .background .foreground .text .cta::before { + content: ""; + display: block; + box-sizing: border-box; + position: absolute; + width: 0; + height: 30px; + border-top: 16px solid transparent; + border-bottom: 16px solid transparent; + border-left: 21px solid; + top: 7px; + left: 16px; + color: var(--orange); +} + +dialog[open]:has(.modal-content .section.embed-carousel-youtube-video) { + max-width: 800px; + padding: 52px 0 0 0; + border: transparent; + border-radius: 5px 5px 0 0; +} + +dialog[open] .modal-content:has(.section.embed-carousel-youtube-video) { + overflow: hidden; +} + +dialog[open] .modal-content .section.embed-carousel-youtube-video .embed-wrapper .block.embed { + margin: 0; +} + +.modal dialog:has(.section.embed-carousel-youtube-video) .close-button { + top: 10px; + right: 8px; + width: auto; + height: auto; + padding: 0.5rem; +} + +@media screen and (max-width: 576px) { + dialog[open]:has(.modal-content .section.embed-carousel-youtube-video) { + width: 95%; + } +} + +@media screen and (max-width: 767px) { + .section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons { + display: none; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .button-container.glider-dots { + display: flex; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .button-container.glider-dots .glider-dot { + height: 4px; + width: 4px; + margin: 0 4px; + background: #000; + opacity: .2; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .button-container.glider-dots .glider-dot.glider-active { + background-color: #000; + border-radius: 4px; + height: 4px; + width: 16px; + opacity: 1; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser { + margin: 0 5px; + position: relative; + } +} + +@media screen and (max-width: 1024px) { + .section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser .background .foreground .text .cta { + width: 32px; + height: 32px; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser .background .foreground .text .cta::before { + height: 16px; + border-top: 9px solid transparent; + border-bottom: 9px solid transparent; + border-left: 13px solid; + top: 5px; + left: 10px; + } + + dialog[open]:has(.modal-content .section.embed-carousel-youtube-video) { + max-width: 500px; + } +} + +@media screen and (min-width: 768px) and (max-width: 1024px) { + .section.embed-carousel-wrapper .carousel-wrapper { + padding: 0 56px; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .panel-container .glider-track .teaser { + margin: 0 8px; + position: relative; + min-width: 310px; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-prev { + left: 2%; + } + + .section.embed-carousel-wrapper .carousel-wrapper .carousel .carousel-navigation-buttons .slide-next { + right: 2%; + } +} \ No newline at end of file From 53ca37993eecaf083580935d23f65d0e78ae6b57 Mon Sep 17 00:00:00 2001 From: Vaibhav sasulkar Date: Wed, 25 Sep 2024 12:46:20 +0530 Subject: [PATCH 2/2] add embed homepage banner --- blocks/carousel/carousel.css | 1 + blocks/carousel/embed-banner-carousel.css | 259 ++++++++++++++++++++++ 2 files changed, 260 insertions(+) create mode 100644 blocks/carousel/embed-banner-carousel.css diff --git a/blocks/carousel/carousel.css b/blocks/carousel/carousel.css index b7376fa86b..05af726056 100644 --- a/blocks/carousel/carousel.css +++ b/blocks/carousel/carousel.css @@ -1,6 +1,7 @@ @import "../teaser/teaser.css"; @import "../detailed-teaser/detailed-teaser.css"; @import "./glider.min.css"; +@import url("./embed-banner-carousel.css"); /* carousel wrapper stretches over complete width */ .section div.carousel-wrapper { diff --git a/blocks/carousel/embed-banner-carousel.css b/blocks/carousel/embed-banner-carousel.css new file mode 100644 index 0000000000..30faa1b80d --- /dev/null +++ b/blocks/carousel/embed-banner-carousel.css @@ -0,0 +1,259 @@ +/* carousel Banner video comp start*/ + +.section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background { + /* height: 440px; */ + background-size: 100%; + background-position: top; + background-repeat: no-repeat; + max-width: 100%; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground { + width: 100%; + height: 440px; + margin: 0 auto; + /* padding: 0px 12px; */ + max-width: 1240px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text { + display: flex; + height: inherit; + align-items: center; + justify-content: end; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description { + text-align: right; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description h1, + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description h2 { + font-size: 51px; + font-weight: 800; + line-height: 61px; + color: var(--white); + font-family: 'Nunito-Extrabold'; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p:first-child { + padding: 5px 5px 0 5px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p:first-child { + margin-bottom: 8px; + padding: 0px 5px 5px 5px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container { + margin-top: 1rem; + display: inline-block; + position: unset; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container a { + cursor: pointer; + font-size: 18px; + font-weight: 600; + margin-right: 8px; + line-height: 30px; + padding: 14px 24px; + border-radius: 8px; + color: var(--white); + font-family: 'Nunito-Semibold'; + background-color: var(--orange); + } + + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel .background .foreground .text .long-description p.button-container a sub { + color: var(--white); + font-family: 'Nunito-Semibold'; + font-size: 18px; + font-weight: 600; + } + + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel .background .foreground .text .long-description p.button-container a sub:hover { + color: var(--text-color); + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container a:not(.button-container:last-child a):hover { + color: var(--text-color); + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container:last-child { + line-height: 30px; + vertical-align: bottom; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container:last-child a.button { + cursor: pointer; + font-size: 18px; + margin-top: 32px; + font-weight: 700; + line-height: 30px; + padding: 14px 24px; + border-radius: 8px; + vertical-align: top; + display: inline-block; + color: var(--greyishblue); + font-family: 'Nunito-Bold'; + background-color: var(--white); + margin-right: 0; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text div.long-description p:last-child span.icon-play-circle-icon { + margin-left: 5px; + vertical-align: middle; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text div.long-description p:last-child span.icon-play-circle-icon img { + width: 30px; + height: 25px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .teaser.block.video-component-carousel .carousel.block>.button-container { + left: 24px; + bottom: 24px; + position: absolute; + } + + .section.banner-carousel-wrapper.banner-video-carousel .teaser.block.video-component-carousel .carousel.block>.button-container button { + width: 7px; + height: 7px; + opacity: 0.3; + background-color: var(--white); + } + + .section.banner-carousel-wrapper.banner-video-carousel .teaser.block.video-component-carousel .carousel.block>.button-container button.selected { + opacity: 1; + width: 24px; + background: var(--white); + } + + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel .carousel { + overflow: unset; + overflow-y: hidden; + overflow-x: auto; + } + + .section.banner-carousel-wrapper .carousel-wrapper .carousel.block .button-container>button.video-component-carousel.selected{ + background-color: var(--white); + } + + @media screen and (max-width: 1024px) { + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background { + /* height: 398px; */ + width: 100%; + background-size: 100% 100%; + object-fit: contain; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground { + margin: 0px; + height: 390px; + max-width: unset; + padding: 0 16px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p:not(p.button-container) { + font-size: 40px; + line-height: 48px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description h1, + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description h2 { + font-size: 24px; + line-height: 1.2; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container a, + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container:last-child a.button { + margin-top: 0px; + font-size: 14px; + font-weight: 700; + line-height: 28px; + padding: 6px 14px; + margin-bottom: 0px; + font-family: 'Nunito-Bold'; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container:last-child a.button { + margin-top: 17px; + } + } + + @media screen and (max-width: 767px) { + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background { + /* height: 250px; */ + object-fit: contain; + display: block; + background-position: top; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground { + margin: 0px; + height: 250px; + max-width: unset; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text { + width: 100%; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p:not(p.button-container) { + font-size: 24px; + line-height: 29px; + font-family: 'Nunito-Extrabold'; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container a, + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text .long-description p.button-container:last-child a.button { + margin-top: 0px; + font-size: 11px; + padding: 4px 5px; + line-height: 22px; + margin-bottom: 0px; + margin-right: 0; + } + + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel .background .foreground .text .long-description p.button-container a sub { + font-size: 11px; + line-height: 22px; + } + + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background .foreground .text div.long-description p:last-child span.icon-play-circle-icon img { + width: 22px; + height: 22px; + } + } + + @media (min-width:1025px) and (max-width:1300px) { + .section.banner-carousel-wrapper.banner-video-carousel .carousel-wrapper .teaser.block.video-component-carousel .background { + /* height: 380px; */ + background-size: cover; + background-position: center top; + } + + .section.page-container.neeyat-pg-con>div { + max-width: 90.25% !important; + padding: 0 14px; + } + + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel .background .foreground { + max-width: 90.25%; + padding: 0 14px + } + + .header-wrapper .nav-wrapper nav:has(.section.neeyat-header) { + margin-top: unset; + max-width: 90.25%; + padding: 0 14px; + } + + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel .background .foreground, + .sectio .carousel-wrapper .teaser.blockn.video-component-carousel { + min-height: 380px; + height: 380px; + } + } + + /* carosuel video End */ \ No newline at end of file