Skip to content

Commit

Permalink
Merge branch 'main' into issue-964-long-urls-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-kaplan authored Aug 2, 2024
2 parents 41c30b5 + 43de6bd commit d87108f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 20 deletions.
13 changes: 6 additions & 7 deletions blocks/leadspace/leadspace.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Leadspace block styles */
.leadspace,
.leadspace,
.leadspace p {
font-family: var(--sans-serif-font-light);
font-size: var(--font-size-16);
Expand Down Expand Up @@ -217,7 +217,6 @@ main div.leadspace-wrapper {

.leadspace.brand-logo .button-group .button-container a {
font-weight: var(--font-weight-regular);
height: var(--spacer-element-10);
}

.leadspace.brand-logo .button-group .button-container:nth-child(3){
Expand Down Expand Up @@ -551,7 +550,7 @@ main div.leadspace-wrapper {
.home-video.leadspace-container .leadspace-wrapper {
padding-top: 0;
}

.leadspace.video > div:first-child {
align-items: flex-start;
}
Expand All @@ -565,7 +564,7 @@ main div.leadspace-wrapper {
}

.leadspace.brand-logo .button-group .button-container:nth-child(3){
margin-left: var(--spacer-element-05);
/* margin-left: var(--spacer-element-05); */
margin-top: unset;
}

Expand Down Expand Up @@ -610,7 +609,7 @@ main div.leadspace-wrapper {
.leadspace.half-circle > div > div:nth-child(2) picture {
margin-top: var(--spacer-layout-06);
}

/* Leadspace - Video */
.leadspace.video > div:first-child > div:nth-child(2) {
width: 45%;
Expand All @@ -624,7 +623,7 @@ main div.leadspace-wrapper {

.leadspace .button-group {
display: flex;
flex-flow: row nowrap;
flex-flow: row wrap;
align-items: baseline;
}

Expand All @@ -638,7 +637,7 @@ main div.leadspace-wrapper {
}

.leadspace.brand-logo .button-group .button-container a.tertiary {
margin-left: var(--spacer-element-05);
/* margin-left: var(--spacer-element-05); */
}

.leadspace.video .video-wrapper {
Expand Down
43 changes: 32 additions & 11 deletions blocks/marketo/marketo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,43 @@ const embedMarketoForm = (marketoId, formId, successUrl) => {
if (successUrl) {
window.MktoForms2.loadForm('//go.merative.com', `${marketoId}`, formId, (form) => {
// Add an onSuccess handler
// eslint-disable-next-line no-unused-vars
form.onSuccess((values, followUpUrl) => {
// Take the lead to a different page on successful submit,
// ignoring the form's configured followUpUrl
// location.href = successUrl;
form.onSuccess(() => {
location.href = successUrl;
if (window._satellite) {
_satellite.track('formSubmit', {
formName: document.title,
});
}
// Drift popup custom code
drift.api.collectFormData(values, {
campaignId: 2787244,
// followupUrl: 'https://www.merative.com/thank-you',
followupUrl: successUrl,
});
// Drift API call to commit form data immediately upon form submit
// if (typeof drift !== 'undefined') {
// drift.on('ready', (api) => {
// try {
// api.commitFormData({
// campaignId: 2787244,
// });

// if (location.href.includes('/contact')) {
// // Drift popup custom code
// drift.api.collectFormData(values, {
// campaignId: 2787244,
// followupUrl: successUrl,
// stageData: true,
// });
// }

// // Adobe Launch tracking for form submission
// if (window._satellite) {
// _satellite.track('formSubmit', {
// formName: document.title,
// });
// }
// } catch (error) {
// // console.error('Error with Drift API calls:', error);
// }
// });
// } else {
// // console.error('Drift is not defined');
// }
// Return false to prevent the submission handler continuing with its own processing
return false;
});
Expand Down
2 changes: 1 addition & 1 deletion blocks/solution-header/solution-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
flex-shrink: 0;
gap: var(--spacer-layout-04);
padding-top: 0;
padding-bottom: var(--spacer-element-08);
padding-bottom: 0;
}

.solution-header ul {
Expand Down
2 changes: 1 addition & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ button {
}

.button-container a.has-icon {
border-bottom: 0 !important;
/* border-bottom: 0 !important; */
}

.button-container a.has-icon.primary,
Expand Down

0 comments on commit d87108f

Please sign in to comment.