Files
design-themes/theme_treehouse/static/src/js/tour.js
T
Cocographique 0cdb391954 [IMP] theme_treehouse: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2542281

X-original-commit: e18a0ff128
Part-of: odoo/design-themes#501
2021-09-24 11:09:52 +00:00

40 lines
896 B
JavaScript

/** @odoo-module */
import wTourUtils from 'website.tour_utils';
const snippets = [
{
id: 's_cover',
name: 'Cover',
},
{
id: 's_text_image',
name: 'Text - Image',
},
{
id: 's_title',
name: 'Title',
},
{
id: 's_three_columns',
name: 'Columns',
},
{
id: 's_call_to_action',
name: 'Call to Action',
},
];
wTourUtils.registerThemeHomepageTour("treehouse_tour", [
wTourUtils.dragNDrop(snippets[0]),
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[1]),
wTourUtils.dragNDrop(snippets[2]),
wTourUtils.dragNDrop(snippets[3]),
wTourUtils.dragNDrop(snippets[4]),
wTourUtils.clickOnSnippet(snippets[4], 'top'),
wTourUtils.changeBackgroundColor(),
wTourUtils.selectColorPalette(),
]);