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

MWPW-163684 Show Social CTA on Upsell #940

Merged
merged 5 commits into from
Jan 13, 2025
Merged
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
67 changes: 38 additions & 29 deletions acrobat/blocks/verb-widget/verb-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@
color: #222;
display: flex;
flex-direction: column;
width: 774.75px;
height: 532px;
width: 100%;
height: 100%;
position: static;
justify-content: normal;
align-items: normal;
Expand Down Expand Up @@ -350,7 +350,36 @@
}
}

/* responsive design */
.verb-wrapper.verb-upsell-active {
cursor: default;
border: 3px solid #d5d5d5;
}

.verb-wrapper.verb-upsell-active:hover {
border: 3px solid #d5d5d5;
}

.verb-wrapper.verb-upsell-active.dragging {
background-color: #fff;
border: 3px solid #d5d5d5;
}

.verb-upsell-column {
flex: 1;
padding: 0 12px;
}

.verb-upsell-social-container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
margin: 0 20px;
background-color: #fdfdfd;
border: 1px solid #e6e6e6;
border-radius: 10px;
}

@media screen and (max-width: 768px) {
.verb-widget {
Expand All @@ -369,7 +398,6 @@
}

.verb-row {
display: flex;
flex-direction: column;
}

Expand Down Expand Up @@ -462,30 +490,11 @@
.verb-upsell-bullets li:last-child {
margin-bottom: 0;
}
}

.verb-wrapper.verb-upsell-active {
cursor: default;
border: 3px solid #d5d5d5;
}

.verb-wrapper.verb-upsell-active:hover {
border: 3px solid #d5d5d5;
}

.verb-wrapper.verb-upsell-active.dragging {
background-color: #fff;
border: 3px solid #d5d5d5;
}

.verb-upsell-column {
flex: 1;
padding-right: 24px;
}

.verb-upsell-social-container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
.verb-upsell-social-container {
width: 100%;
border: none;
background-color: transparent;
padding: 0;
}
}
7 changes: 6 additions & 1 deletion acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import verbAnalytics from '../../scripts/alloy/verb-widget.js';
import createSvgElement from './icons.js';

const miloLibs = setLibs('/libs');
const { createTag, getConfig } = await import(`${miloLibs}/utils/utils.js`);
const { createTag, getConfig, loadBlock } = await import(`${miloLibs}/utils/utils.js`);

const fallBack = 'https://www.adobe.com/go/acrobat-overview';
const EOLBrowserPage = 'https://acrobat.adobe.com/home/index-browser-eol.html';
Expand Down Expand Up @@ -92,9 +92,14 @@ async function showUpSell(verb, element) {

const upsell = createTag('div', { class: 'verb-upsell' });
const upsellColumn = createTag('div', { class: 'verb-upsell-column' });

const socialContainer = createTag('div', { class: 'verb-upsell-social-container' });
const socialCta = createTag('div', { class: 'susi-light' });
socialContainer.append(socialCta);
await loadBlock(socialCta);

const upsellRow = createTag('div', { class: 'verb-row' });

upsellRow.append(upsellColumn, socialContainer);

upsell.append(upsellRow);
Expand Down
2 changes: 2 additions & 0 deletions acrobat/scripts/contentSecurityPolicy/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const connectSrc = [
'*.adobe.com',
'stage.adobeccstatic.com',
'*.adobe.io',
'*.identity-stage.adobe.com',
'*.adobelogin.com',
'*.amazonaws.com',
'*.blob.core.windows.net',
Expand Down Expand Up @@ -108,6 +109,7 @@ const frameSrc = [
's.company-target.com',
'stage-ui.messaging.adobe.com/',
'acrobatservices.adobe.com',
'auth-light.identity-stage.adobe.com',
';',
];

Expand Down
2 changes: 2 additions & 0 deletions acrobat/scripts/contentSecurityPolicy/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const connectSrc = [
'prod.adobeccstatic.com',
'*.clicktale.net/',
'*.adobe.io',
'*.identity.adobe.com',
'*.adobelogin.com',
'*.amazonaws.com',
'*.blob.core.windows.net',
Expand Down Expand Up @@ -112,6 +113,7 @@ const frameSrc = [
's.company-target.com',
'ui.messaging.adobe.com/',
'acrobatservices.adobe.com',
'auth-light.identity.adobe.com',
';',
];

Expand Down
2 changes: 2 additions & 0 deletions acrobat/scripts/contentSecurityPolicy/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const connectSrc = [
'*.adobe.com',
'stage.adobeccstatic.com',
'*.adobe.io',
'*.identity-stage.adobe.com',
'*.adobelogin.com',
'*.amazonaws.com',
'*.blob.core.windows.net',
Expand Down Expand Up @@ -112,6 +113,7 @@ const frameSrc = [
's.company-target.com',
'stage-ui.messaging.adobe.com/',
'acrobatservices.adobe.com',
'auth-light.identity-stage.adobe.com',
';',
];

Expand Down
Loading