Skip to content

Commit

Permalink
Added Request a meeting button
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS committed Jul 9, 2024
1 parent 504a34d commit 3be842b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/event-summary/event-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ export default async function decorate(block) {
registerButtonLink = a({ href: registerButton, title }, 'Register Today');
}
const registerButtonContainer = p({ class: 'button-container find-out-more' }, strong(registerButtonLink));
const talkButtonContainer = p({ class: 'button-container' }, strong(a({ href: '/about-us/contact-us', title }, 'Request a Meeting/Contact Us')));

// Append elements to block
block.appendChild(imageContainer);
block.appendChild(div({ class: 'event-details' }, eventDate, eventSubtitle, div({ class: 'event-keywords' }, keywordList), div({ class: 'event-description' }, eventDescription, registerButtonContainer)));
block.appendChild(div({ class: 'event-details' }, eventDate, eventSubtitle, div({ class: 'event-keywords' }, keywordList), div({ class: 'event-description' }, eventDescription, registerButtonContainer, talkButtonContainer)));

// Add event listener to the 'Register Today' button
registerButtonLink.addEventListener('click', (event) => {
Expand Down

0 comments on commit 3be842b

Please sign in to comment.