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-151885 - [LocUI] messaging for auth redirect #2463

Merged
merged 2 commits into from
Jun 13, 2024
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
8 changes: 8 additions & 0 deletions libs/blocks/locui/locui.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.locui.container {
margin: 0 auto;
margin-top: 10vh;
max-width: 700px;
border-radius: 10px;
border: 10px solid #eee;
padding: 10px 30px 30px;
}
16 changes: 16 additions & 0 deletions libs/blocks/locui/locui.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { createTag } from '../../utils/utils.js';

export default function init(el) {
el.classList.add('container');
const heading = createTag('h2', null, 'Missing project details');
const paragraph = createTag('p', null, 'The project details were removed after you logged in. To resolve this:');
const steps = createTag('ol', null);
const stepList = ['Close this window or tab.', 'Open your project Excel file.', 'Click "Localize..." in Sidekick again.'];
stepList.forEach((step) => steps.append(createTag('li', null, step)));
const learnmore = createTag('a', {
class: 'con-button',
href: 'https://milo.adobe.com/docs/authoring/localization#:~:text=at%20render%20time.-,Troubleshooting,-Error%20matrix',
target: '_blank',
}, 'Learn More');
el.append(heading, paragraph, steps, learnmore);
}
1 change: 1 addition & 0 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const MILO_BLOCKS = [
'icon-block',
'iframe',
'instagram',
'locui',
'marketo',
'marquee',
'marquee-anchors',
Expand Down
Loading