Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cellesce page #1240

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions blocks/header/header-megamenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ export async function buildLazyMegaMenus() {
export function buildNavbar(content, hideSearch, hideGlobalRFQ) {
// link section
const navMenuUl = ul({ class: 'nav-tabs' });
const isCellescePage = document.querySelector('meta[content="nav-cellesce-page"]');
if (isCellescePage) {
document.body.classList.add('cellesce-page');
}

[...content.querySelectorAll('h1')].forEach((menu) => {
const id = menu.getAttribute('id');
Expand Down
3 changes: 1 addition & 2 deletions blocks/header/header.css
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some format issues in the CSS

Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,7 @@ header .actionable-card-submenu.customercare-portal > div:nth-child(2) > div:nth
border: 1px solid var(--background-color-green);
}


/* PRODUCT/APPLICATION MENU */
header .products-right-submenu,
header .applications-right-submenu {
Expand Down Expand Up @@ -1555,8 +1556,6 @@ header .products-right-submenu > div > div:last-child p:first-child img{
height: auto;
right: 0;
z-index: 1;
}

/* cellesce-page */
.cellesce-menu header {
height: 100%;
Expand Down
43 changes: 43 additions & 0 deletions blocks/hero-carousel/hero-carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
main .hero-carousel-wrapper.carousel-wrapper {
padding-left: 0;
padding-right: 0;
}

main .carousel.hero-carousel .carousel-item {
position: relative;
padding-top: 80px;
padding-bottom: 80px;
}

main .carousel.hero-carousel .carousel-item-columns-container {
display: block;
}

main .carousel.hero-carousel .carousel-item-column:first-child {
width: 100%;
}

main .carousel.hero-carousel .carousel-item-column .carousel-item-text {
padding: 20px;
background-color: rgb(0 0 0 / 60%);
color: #fff;
}

main .carousel.hero-carousel .carousel-item-column .carousel-item-text h3 {
margin-top: 0;
}

main .carousel.hero-carousel .carousel-item-image {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: -1;
}

main .carousel.hero-carousel .carousel-item-image img {
max-height: 100%;
height: 100%;
object-fit: cover;
}
9 changes: 9 additions & 0 deletions blocks/hero-carousel/hero-carousel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createCarousel } from '../carousel/carousel.js';

export default async function decorate(block) {
createCarousel(block, [...block.children], {
defaultStyling: true,
navButtons: true,
autoScroll: false,
});
}
Loading