Skip to content

Commit

Permalink
feat: add hero2 block
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin committed Feb 7, 2024
1 parent b990e8a commit ad6369f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solutions/blocks/hero2/hero2.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function buildHeroBlock(element) {
document.querySelector('div.hero2 div div:first-child').prepend(breadcrumb);

const pictureEl = document.createElement('div');
pictureEl.classList.add('hero-picture');
pictureEl.classList.add('hero2-picture');
pictureEl.append(picture);

section.prepend(pictureEl);
Expand Down Expand Up @@ -77,7 +77,7 @@ export default async function decorate(block) {
const ulsWithPicture = Array.from(document.querySelectorAll('ul')).filter((ul) => ul.querySelector('picture'));

// Apply a CSS class to each selected <ul> element
ulsWithPicture.forEach((ul) => ul.classList.add('hero-awards'));
ulsWithPicture.forEach((ul) => ul.classList.add('hero2-awards'));

renderNanoBlocks(block);

Expand Down

0 comments on commit ad6369f

Please sign in to comment.